@spytecgps/nova-orm 1.2.35 → 1.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
let Region = class Region {
|
|
12
|
+
id;
|
|
13
|
+
countryCode;
|
|
14
|
+
countryName;
|
|
15
|
+
regionName;
|
|
16
|
+
regionCode;
|
|
17
|
+
regionType;
|
|
18
|
+
regionLat;
|
|
19
|
+
regionLong;
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
PrimaryGeneratedColumn({ type: 'int', name: 'id', unsigned: true }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Region.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column('varchar', { name: 'countryCode', nullable: true, length: 255 }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Region.prototype, "countryCode", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column('varchar', { name: 'countryName', nullable: true, length: 255 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Region.prototype, "countryName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column('varchar', { name: 'regionName', nullable: true, length: 255 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Region.prototype, "regionName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column('varchar', { name: 'regionCode', nullable: true, length: 255 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Region.prototype, "regionCode", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column('varchar', { name: 'regionType', nullable: true, length: 255 }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Region.prototype, "regionType", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Column('decimal', {
|
|
47
|
+
name: 'regionLat',
|
|
48
|
+
nullable: true,
|
|
49
|
+
precision: 19,
|
|
50
|
+
scale: 10,
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], Region.prototype, "regionLat", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column('decimal', {
|
|
56
|
+
name: 'regionLong',
|
|
57
|
+
nullable: true,
|
|
58
|
+
precision: 19,
|
|
59
|
+
scale: 10,
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], Region.prototype, "regionLong", void 0);
|
|
63
|
+
Region = __decorate([
|
|
64
|
+
Index('ix_countryName_regionName', ['countryName', 'regionName']),
|
|
65
|
+
Index('ix_countryCode_regionCode', ['countryCode', 'regionCode']),
|
|
66
|
+
Index('ix_countryName_regionCode', ['countryName', 'regionCode']),
|
|
67
|
+
Entity('region', { schema: 'nova' })
|
|
68
|
+
], Region);
|
|
69
|
+
export { Region };
|
|
70
|
+
//# sourceMappingURL=region.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"region.js","sourceRoot":"","sources":["../../src/entities/region.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,M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