@ooneex/typeorm 0.12.0 → 0.14.0
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.
- package/dist/shared/chunk-19qhst35.js +5 -0
- package/dist/shared/{chunk-tqd6ek7s.js.map → chunk-19qhst35.js.map} +2 -2
- package/dist/shared/{chunk-trhrh4e1.js → chunk-31y260d6.js} +24 -89
- package/dist/shared/{chunk-trhrh4e1.js.map → chunk-31y260d6.js.map} +2 -2
- package/dist/shared/chunk-59vwmfpm.js +5 -0
- package/dist/shared/{chunk-r9hsk9fk.js.map → chunk-59vwmfpm.js.map} +1 -1
- package/dist/shared/chunk-5tnqjb3n.js +5 -0
- package/dist/shared/{chunk-2wdazj26.js.map → chunk-5tnqjb3n.js.map} +2 -2
- package/dist/shared/chunk-5ybg5hda.js +5 -0
- package/dist/shared/{chunk-m4mpkr4n.js.map → chunk-5ybg5hda.js.map} +2 -2
- package/dist/shared/chunk-6jnj2pfx.js +5 -0
- package/dist/shared/{chunk-p12g6e7b.js.map → chunk-6jnj2pfx.js.map} +2 -2
- package/dist/shared/chunk-6kdkyjbn.js +5 -0
- package/dist/shared/{chunk-mssxq87m.js.map → chunk-6kdkyjbn.js.map} +2 -2
- package/dist/shared/{chunk-jap9t59k.js → chunk-aj0aak90.js} +14 -52
- package/dist/shared/{chunk-jap9t59k.js.map → chunk-aj0aak90.js.map} +2 -2
- package/dist/shared/chunk-e51ktjsq.js +5 -0
- package/dist/shared/{chunk-efmap3y3.js.map → chunk-e51ktjsq.js.map} +2 -2
- package/dist/shared/{chunk-yszvxhf3.js → chunk-jr0xys18.js} +11 -41
- package/dist/shared/{chunk-yszvxhf3.js.map → chunk-jr0xys18.js.map} +2 -2
- package/dist/shared/chunk-kw4t1san.js +5 -0
- package/dist/shared/{chunk-m9wkjs7v.js.map → chunk-kw4t1san.js.map} +2 -2
- package/dist/shared/chunk-nfv9ce7v.js +5 -0
- package/dist/shared/{chunk-qbn9p4vj.js.map → chunk-nfv9ce7v.js.map} +2 -2
- package/dist/shared/chunk-p22keb3y.js +5 -0
- package/dist/shared/{chunk-bkdccdhn.js.map → chunk-p22keb3y.js.map} +2 -2
- package/dist/shared/chunk-pbns711f.js +5 -0
- package/dist/shared/{chunk-hkfj9j6w.js.map → chunk-pbns711f.js.map} +2 -2
- package/dist/shared/{chunk-6vmvyg0q.js → chunk-qrs0g3m9.js} +17 -58
- package/dist/shared/{chunk-6vmvyg0q.js.map → chunk-qrs0g3m9.js.map} +2 -2
- package/dist/shared/{chunk-eets3mef.js → chunk-qyf32qsz.js} +22 -75
- package/dist/shared/{chunk-eets3mef.js.map → chunk-qyf32qsz.js.map} +2 -2
- package/dist/shared/chunk-t1jad451.js +5 -0
- package/dist/shared/{chunk-cv6xa6qy.js.map → chunk-t1jad451.js.map} +2 -2
- package/dist/shared/chunk-t5cy307m.js +5 -0
- package/dist/shared/{chunk-wg7xcq50.js.map → chunk-t5cy307m.js.map} +2 -2
- package/dist/shared/chunk-x2d798hg.js +5 -0
- package/dist/shared/{chunk-sk8z5zmk.js.map → chunk-x2d798hg.js.map} +2 -2
- package/dist/shared/chunk-x3pmm3na.js +5 -0
- package/dist/shared/{chunk-cwxhwya1.js.map → chunk-x3pmm3na.js.map} +2 -2
- package/dist/shared/chunk-xrqhqgen.js +5 -0
- package/dist/shared/{chunk-chan1evn.js.map → chunk-xrqhqgen.js.map} +2 -2
- package/dist/shared/chunk-xwe8m6av.js +5 -0
- package/dist/shared/{chunk-0swb1h0m.js.map → chunk-xwe8m6av.js.map} +2 -2
- package/dist/shared/chunk-yrwsqc6r.js +5 -0
- package/dist/shared/{chunk-6m3p1ht9.js.map → chunk-yrwsqc6r.js.map} +2 -2
- package/dist/src/entities/book/index.js +2 -34
- package/dist/src/entities/book/index.js.map +1 -1
- package/dist/src/entities/common/index.js +2 -26
- package/dist/src/entities/common/index.js.map +1 -1
- package/dist/src/entities/country/index.js +2 -9
- package/dist/src/entities/country/index.js.map +1 -1
- package/dist/src/entities/currency/index.js +2 -9
- package/dist/src/entities/currency/index.js.map +1 -1
- package/dist/src/entities/folder/index.js +2 -394
- package/dist/src/entities/folder/index.js.map +2 -2
- package/dist/src/entities/gamification/flashcard/index.js +2 -26
- package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
- package/dist/src/entities/gamification/index.js +2 -9
- package/dist/src/entities/gamification/index.js.map +1 -1
- package/dist/src/entities/gamification/mcq/index.js +2 -36
- package/dist/src/entities/gamification/mcq/index.js.map +1 -1
- package/dist/src/entities/image/index.js +2 -31
- package/dist/src/entities/image/index.js.map +1 -1
- package/dist/src/entities/medecine/index.js +2 -13
- package/dist/src/entities/medecine/index.js.map +1 -1
- package/dist/src/entities/payment/index.js +2 -23
- package/dist/src/entities/payment/index.js.map +1 -1
- package/dist/src/entities/user/index.js +2 -30
- package/dist/src/entities/user/index.js.map +1 -1
- package/dist/src/entities/video/index.js +2 -34
- package/dist/src/entities/video/index.js.map +1 -1
- package/dist/src/migrations/book/index.js +137 -541
- package/dist/src/migrations/book/index.js.map +2 -2
- package/dist/src/migrations/common/index.js +14 -63
- package/dist/src/migrations/common/index.js.map +2 -2
- package/dist/src/migrations/country/index.js +13 -48
- package/dist/src/migrations/country/index.js.map +2 -2
- package/dist/src/migrations/currency/index.js +14 -50
- package/dist/src/migrations/currency/index.js.map +2 -2
- package/dist/src/migrations/folder/index.js +104 -426
- package/dist/src/migrations/folder/index.js.map +2 -2
- package/dist/src/migrations/gamification/flashcard/index.js +96 -356
- package/dist/src/migrations/gamification/flashcard/index.js.map +2 -2
- package/dist/src/migrations/gamification/index.js +2 -8
- package/dist/src/migrations/gamification/index.js.map +1 -1
- package/dist/src/migrations/gamification/mcq/index.js +139 -553
- package/dist/src/migrations/gamification/mcq/index.js.map +2 -2
- package/dist/src/migrations/image/index.js +85 -353
- package/dist/src/migrations/image/index.js.map +2 -2
- package/dist/src/migrations/medecine/index.js +36 -132
- package/dist/src/migrations/medecine/index.js.map +2 -2
- package/dist/src/migrations/payment/index.js +94 -339
- package/dist/src/migrations/payment/index.js.map +2 -2
- package/dist/src/migrations/user/index.js +39 -331
- package/dist/src/migrations/user/index.js.map +2 -2
- package/dist/src/migrations/video/index.js +17 -345
- package/dist/src/migrations/video/index.js.map +2 -2
- package/dist/src/repositories/book/index.js +2 -997
- package/dist/src/repositories/book/index.js.map +2 -2
- package/dist/src/repositories/common/index.js +2 -439
- package/dist/src/repositories/common/index.js.map +2 -2
- package/dist/src/repositories/country/index.js +2 -89
- package/dist/src/repositories/country/index.js.map +2 -2
- package/dist/src/repositories/currency/index.js +2 -89
- package/dist/src/repositories/currency/index.js.map +2 -2
- package/dist/src/repositories/gamification/flashcard/index.js +2 -632
- package/dist/src/repositories/gamification/flashcard/index.js.map +2 -2
- package/dist/src/repositories/gamification/index.js +2 -160
- package/dist/src/repositories/gamification/index.js.map +2 -2
- package/dist/src/repositories/gamification/mcq/index.js +2 -1017
- package/dist/src/repositories/gamification/mcq/index.js.map +2 -2
- package/dist/src/repositories/image/index.js +2 -800
- package/dist/src/repositories/image/index.js.map +2 -2
- package/dist/src/repositories/medecine/index.js +2 -243
- package/dist/src/repositories/medecine/index.js.map +2 -2
- package/dist/src/repositories/payment/index.js +2 -560
- package/dist/src/repositories/payment/index.js.map +2 -2
- package/dist/src/repositories/user/index.js +2 -999
- package/dist/src/repositories/user/index.js.map +2 -2
- package/dist/src/repositories/video/index.js +2 -975
- package/dist/src/repositories/video/index.js.map +2 -2
- package/package.json +21 -21
- package/dist/shared/chunk-0swb1h0m.js +0 -51
- package/dist/shared/chunk-2wdazj26.js +0 -371
- package/dist/shared/chunk-6m3p1ht9.js +0 -606
- package/dist/shared/chunk-bkdccdhn.js +0 -105
- package/dist/shared/chunk-chan1evn.js +0 -72
- package/dist/shared/chunk-cv6xa6qy.js +0 -621
- package/dist/shared/chunk-cwxhwya1.js +0 -548
- package/dist/shared/chunk-efmap3y3.js +0 -345
- package/dist/shared/chunk-hkfj9j6w.js +0 -30
- package/dist/shared/chunk-m4mpkr4n.js +0 -34
- package/dist/shared/chunk-m9wkjs7v.js +0 -639
- package/dist/shared/chunk-mssxq87m.js +0 -195
- package/dist/shared/chunk-p12g6e7b.js +0 -38
- package/dist/shared/chunk-qbn9p4vj.js +0 -835
- package/dist/shared/chunk-r9hsk9fk.js +0 -20
- package/dist/shared/chunk-sk8z5zmk.js +0 -112
- package/dist/shared/chunk-tqd6ek7s.js +0 -86
- package/dist/shared/chunk-wg7xcq50.js +0 -38
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
-
else
|
|
7
|
-
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
-
if (d = decorators[i])
|
|
9
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
-
};
|
|
12
|
-
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
-
var __legacyMetadataTS = (k, v) => {
|
|
14
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
-
return Reflect.metadata(k, v);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { __legacyDecorateClassTS, __legacyDecorateParamTS, __legacyMetadataTS };
|
|
19
|
-
|
|
20
|
-
//# debugId=D9DF57124E08CA2A64756E2164756E21
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
BaseEntity
|
|
4
|
-
} from "./chunk-chan1evn.js";
|
|
5
|
-
import {
|
|
6
|
-
__legacyDecorateClassTS,
|
|
7
|
-
__legacyMetadataTS
|
|
8
|
-
} from "./chunk-r9hsk9fk.js";
|
|
9
|
-
|
|
10
|
-
// src/entities/common/ColorEntity.ts
|
|
11
|
-
import { Column, Entity } from "typeorm";
|
|
12
|
-
class ColorEntity extends BaseEntity {
|
|
13
|
-
}
|
|
14
|
-
__legacyDecorateClassTS([
|
|
15
|
-
Column({ name: "hex", type: "varchar", length: 7, nullable: true }),
|
|
16
|
-
__legacyMetadataTS("design:type", typeof HexaType === "undefined" ? Object : HexaType)
|
|
17
|
-
], ColorEntity.prototype, "hex", undefined);
|
|
18
|
-
__legacyDecorateClassTS([
|
|
19
|
-
Column({ name: "rgb", type: "varchar", length: 50, nullable: true }),
|
|
20
|
-
__legacyMetadataTS("design:type", typeof RGBType === "undefined" ? Object : RGBType)
|
|
21
|
-
], ColorEntity.prototype, "rgb", undefined);
|
|
22
|
-
__legacyDecorateClassTS([
|
|
23
|
-
Column({ name: "rgba", type: "varchar", length: 60, nullable: true }),
|
|
24
|
-
__legacyMetadataTS("design:type", typeof RGBAType === "undefined" ? Object : RGBAType)
|
|
25
|
-
], ColorEntity.prototype, "rgba", undefined);
|
|
26
|
-
__legacyDecorateClassTS([
|
|
27
|
-
Column({ name: "hsl", type: "varchar", length: 50, nullable: true }),
|
|
28
|
-
__legacyMetadataTS("design:type", typeof HSLType === "undefined" ? Object : HSLType)
|
|
29
|
-
], ColorEntity.prototype, "hsl", undefined);
|
|
30
|
-
__legacyDecorateClassTS([
|
|
31
|
-
Column({ name: "hsla", type: "varchar", length: 60, nullable: true }),
|
|
32
|
-
__legacyMetadataTS("design:type", typeof HSLAType === "undefined" ? Object : HSLAType)
|
|
33
|
-
], ColorEntity.prototype, "hsla", undefined);
|
|
34
|
-
__legacyDecorateClassTS([
|
|
35
|
-
Column({
|
|
36
|
-
name: "alpha",
|
|
37
|
-
type: "decimal",
|
|
38
|
-
precision: 3,
|
|
39
|
-
scale: 2,
|
|
40
|
-
nullable: true
|
|
41
|
-
}),
|
|
42
|
-
__legacyMetadataTS("design:type", Number)
|
|
43
|
-
], ColorEntity.prototype, "alpha", undefined);
|
|
44
|
-
__legacyDecorateClassTS([
|
|
45
|
-
Column({ name: "red", type: "int", nullable: true }),
|
|
46
|
-
__legacyMetadataTS("design:type", Number)
|
|
47
|
-
], ColorEntity.prototype, "red", undefined);
|
|
48
|
-
__legacyDecorateClassTS([
|
|
49
|
-
Column({ name: "green", type: "int", nullable: true }),
|
|
50
|
-
__legacyMetadataTS("design:type", Number)
|
|
51
|
-
], ColorEntity.prototype, "green", undefined);
|
|
52
|
-
__legacyDecorateClassTS([
|
|
53
|
-
Column({ name: "blue", type: "int", nullable: true }),
|
|
54
|
-
__legacyMetadataTS("design:type", Number)
|
|
55
|
-
], ColorEntity.prototype, "blue", undefined);
|
|
56
|
-
__legacyDecorateClassTS([
|
|
57
|
-
Column({ name: "hue", type: "int", nullable: true }),
|
|
58
|
-
__legacyMetadataTS("design:type", Number)
|
|
59
|
-
], ColorEntity.prototype, "hue", undefined);
|
|
60
|
-
__legacyDecorateClassTS([
|
|
61
|
-
Column({ name: "saturation", type: "int", nullable: true }),
|
|
62
|
-
__legacyMetadataTS("design:type", Number)
|
|
63
|
-
], ColorEntity.prototype, "saturation", undefined);
|
|
64
|
-
__legacyDecorateClassTS([
|
|
65
|
-
Column({ name: "lightness", type: "int", nullable: true }),
|
|
66
|
-
__legacyMetadataTS("design:type", Number)
|
|
67
|
-
], ColorEntity.prototype, "lightness", undefined);
|
|
68
|
-
ColorEntity = __legacyDecorateClassTS([
|
|
69
|
-
Entity({
|
|
70
|
-
name: "colors"
|
|
71
|
-
})
|
|
72
|
-
], ColorEntity);
|
|
73
|
-
|
|
74
|
-
// src/entities/common/StatusEntity.ts
|
|
75
|
-
import { EStatus } from "@ooneex/status";
|
|
76
|
-
import { Column as Column2, Entity as Entity2, JoinColumn, ManyToOne } from "typeorm";
|
|
77
|
-
class StatusEntity extends BaseEntity {
|
|
78
|
-
}
|
|
79
|
-
__legacyDecorateClassTS([
|
|
80
|
-
Column2({
|
|
81
|
-
name: "status",
|
|
82
|
-
type: "enum",
|
|
83
|
-
enum: EStatus
|
|
84
|
-
}),
|
|
85
|
-
__legacyMetadataTS("design:type", typeof EStatus === "undefined" ? Object : EStatus)
|
|
86
|
-
], StatusEntity.prototype, "status", undefined);
|
|
87
|
-
__legacyDecorateClassTS([
|
|
88
|
-
ManyToOne(() => ColorEntity, {
|
|
89
|
-
nullable: true,
|
|
90
|
-
eager: false,
|
|
91
|
-
cascade: ["insert", "update"]
|
|
92
|
-
}),
|
|
93
|
-
JoinColumn({ name: "color_id" }),
|
|
94
|
-
__legacyMetadataTS("design:type", typeof IColor === "undefined" ? Object : IColor)
|
|
95
|
-
], StatusEntity.prototype, "color", undefined);
|
|
96
|
-
__legacyDecorateClassTS([
|
|
97
|
-
Column2({ name: "description", type: "text", nullable: true }),
|
|
98
|
-
__legacyMetadataTS("design:type", String)
|
|
99
|
-
], StatusEntity.prototype, "description", undefined);
|
|
100
|
-
__legacyDecorateClassTS([
|
|
101
|
-
Column2({ name: "reason", type: "text", nullable: true }),
|
|
102
|
-
__legacyMetadataTS("design:type", String)
|
|
103
|
-
], StatusEntity.prototype, "reason", undefined);
|
|
104
|
-
StatusEntity = __legacyDecorateClassTS([
|
|
105
|
-
Entity2({
|
|
106
|
-
name: "statuses"
|
|
107
|
-
})
|
|
108
|
-
], StatusEntity);
|
|
109
|
-
|
|
110
|
-
export { ColorEntity, StatusEntity };
|
|
111
|
-
|
|
112
|
-
//# debugId=633AB0FAE0684EB564756E2164756E21
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
BaseEntity
|
|
4
|
-
} from "./chunk-chan1evn.js";
|
|
5
|
-
import {
|
|
6
|
-
__legacyDecorateClassTS,
|
|
7
|
-
__legacyMetadataTS
|
|
8
|
-
} from "./chunk-r9hsk9fk.js";
|
|
9
|
-
|
|
10
|
-
// src/entities/medecine/MedecineDisciplineEntity.ts
|
|
11
|
-
import { Column, Entity } from "typeorm";
|
|
12
|
-
class MedecineDisciplineEntity extends BaseEntity {
|
|
13
|
-
}
|
|
14
|
-
__legacyDecorateClassTS([
|
|
15
|
-
Column({ name: "code", type: "varchar", length: 50, unique: true }),
|
|
16
|
-
__legacyMetadataTS("design:type", String)
|
|
17
|
-
], MedecineDisciplineEntity.prototype, "code", undefined);
|
|
18
|
-
__legacyDecorateClassTS([
|
|
19
|
-
Column({ name: "name", type: "varchar", length: 200 }),
|
|
20
|
-
__legacyMetadataTS("design:type", String)
|
|
21
|
-
], MedecineDisciplineEntity.prototype, "name", undefined);
|
|
22
|
-
__legacyDecorateClassTS([
|
|
23
|
-
Column({ name: "description", type: "text", nullable: true }),
|
|
24
|
-
__legacyMetadataTS("design:type", String)
|
|
25
|
-
], MedecineDisciplineEntity.prototype, "description", undefined);
|
|
26
|
-
MedecineDisciplineEntity = __legacyDecorateClassTS([
|
|
27
|
-
Entity({
|
|
28
|
-
name: "medecine_disciplines"
|
|
29
|
-
})
|
|
30
|
-
], MedecineDisciplineEntity);
|
|
31
|
-
|
|
32
|
-
// src/entities/medecine/MedecineFieldEntity.ts
|
|
33
|
-
import { Column as Column2, Entity as Entity2 } from "typeorm";
|
|
34
|
-
class MedecineFieldEntity extends BaseEntity {
|
|
35
|
-
}
|
|
36
|
-
__legacyDecorateClassTS([
|
|
37
|
-
Column2({ name: "code", type: "varchar", length: 50, unique: true }),
|
|
38
|
-
__legacyMetadataTS("design:type", String)
|
|
39
|
-
], MedecineFieldEntity.prototype, "code", undefined);
|
|
40
|
-
__legacyDecorateClassTS([
|
|
41
|
-
Column2({ name: "name", type: "varchar", length: 200 }),
|
|
42
|
-
__legacyMetadataTS("design:type", String)
|
|
43
|
-
], MedecineFieldEntity.prototype, "name", undefined);
|
|
44
|
-
__legacyDecorateClassTS([
|
|
45
|
-
Column2({ name: "color", type: "varchar", length: 20, nullable: true }),
|
|
46
|
-
__legacyMetadataTS("design:type", String)
|
|
47
|
-
], MedecineFieldEntity.prototype, "color", undefined);
|
|
48
|
-
__legacyDecorateClassTS([
|
|
49
|
-
Column2({ name: "description", type: "text", nullable: true }),
|
|
50
|
-
__legacyMetadataTS("design:type", String)
|
|
51
|
-
], MedecineFieldEntity.prototype, "description", undefined);
|
|
52
|
-
MedecineFieldEntity = __legacyDecorateClassTS([
|
|
53
|
-
Entity2({
|
|
54
|
-
name: "medecine_fields"
|
|
55
|
-
})
|
|
56
|
-
], MedecineFieldEntity);
|
|
57
|
-
|
|
58
|
-
// src/entities/medecine/MedecineYearEntity.ts
|
|
59
|
-
import { Column as Column3, Entity as Entity3 } from "typeorm";
|
|
60
|
-
class MedecineYearEntity extends BaseEntity {
|
|
61
|
-
}
|
|
62
|
-
__legacyDecorateClassTS([
|
|
63
|
-
Column3({ name: "code", type: "varchar", length: 20, unique: true }),
|
|
64
|
-
__legacyMetadataTS("design:type", String)
|
|
65
|
-
], MedecineYearEntity.prototype, "code", undefined);
|
|
66
|
-
__legacyDecorateClassTS([
|
|
67
|
-
Column3({ name: "name", type: "varchar", length: 100 }),
|
|
68
|
-
__legacyMetadataTS("design:type", String)
|
|
69
|
-
], MedecineYearEntity.prototype, "name", undefined);
|
|
70
|
-
__legacyDecorateClassTS([
|
|
71
|
-
Column3({ name: "number", type: "int" }),
|
|
72
|
-
__legacyMetadataTS("design:type", Number)
|
|
73
|
-
], MedecineYearEntity.prototype, "number", undefined);
|
|
74
|
-
__legacyDecorateClassTS([
|
|
75
|
-
Column3({ name: "color", type: "varchar", length: 20, nullable: true }),
|
|
76
|
-
__legacyMetadataTS("design:type", String)
|
|
77
|
-
], MedecineYearEntity.prototype, "color", undefined);
|
|
78
|
-
MedecineYearEntity = __legacyDecorateClassTS([
|
|
79
|
-
Entity3({
|
|
80
|
-
name: "medecine_years"
|
|
81
|
-
})
|
|
82
|
-
], MedecineYearEntity);
|
|
83
|
-
|
|
84
|
-
export { MedecineDisciplineEntity, MedecineFieldEntity, MedecineYearEntity };
|
|
85
|
-
|
|
86
|
-
//# debugId=0DC4F9758387C34564756E2164756E21
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
BaseEntity
|
|
4
|
-
} from "./chunk-chan1evn.js";
|
|
5
|
-
import {
|
|
6
|
-
__legacyDecorateClassTS,
|
|
7
|
-
__legacyMetadataTS
|
|
8
|
-
} from "./chunk-r9hsk9fk.js";
|
|
9
|
-
|
|
10
|
-
// src/entities/currency/CurrencyEntity.ts
|
|
11
|
-
import { Column, Entity } from "typeorm";
|
|
12
|
-
class CurrencyEntity extends BaseEntity {
|
|
13
|
-
}
|
|
14
|
-
__legacyDecorateClassTS([
|
|
15
|
-
Column({ name: "code", type: "varchar", length: 10, unique: true }),
|
|
16
|
-
__legacyMetadataTS("design:type", String)
|
|
17
|
-
], CurrencyEntity.prototype, "code", undefined);
|
|
18
|
-
__legacyDecorateClassTS([
|
|
19
|
-
Column({ name: "name", type: "varchar", length: 100 }),
|
|
20
|
-
__legacyMetadataTS("design:type", String)
|
|
21
|
-
], CurrencyEntity.prototype, "name", undefined);
|
|
22
|
-
__legacyDecorateClassTS([
|
|
23
|
-
Column({ name: "icon", type: "varchar", length: 20, nullable: true }),
|
|
24
|
-
__legacyMetadataTS("design:type", String)
|
|
25
|
-
], CurrencyEntity.prototype, "icon", undefined);
|
|
26
|
-
__legacyDecorateClassTS([
|
|
27
|
-
Column({ name: "symbol", type: "varchar", length: 20 }),
|
|
28
|
-
__legacyMetadataTS("design:type", String)
|
|
29
|
-
], CurrencyEntity.prototype, "symbol", undefined);
|
|
30
|
-
CurrencyEntity = __legacyDecorateClassTS([
|
|
31
|
-
Entity({
|
|
32
|
-
name: "currencies"
|
|
33
|
-
})
|
|
34
|
-
], CurrencyEntity);
|
|
35
|
-
|
|
36
|
-
export { CurrencyEntity };
|
|
37
|
-
|
|
38
|
-
//# debugId=EC3D8862431CEEF664756E2164756E21
|