@ooneex/typeorm 0.13.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 +1 -1
- 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,621 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CategoryEntity
|
|
4
|
-
} from "./chunk-0swb1h0m.js";
|
|
5
|
-
import {
|
|
6
|
-
TagEntity
|
|
7
|
-
} from "./chunk-p12g6e7b.js";
|
|
8
|
-
import {
|
|
9
|
-
StatusEntity
|
|
10
|
-
} from "./chunk-sk8z5zmk.js";
|
|
11
|
-
import {
|
|
12
|
-
BaseEntity
|
|
13
|
-
} from "./chunk-chan1evn.js";
|
|
14
|
-
import {
|
|
15
|
-
__legacyDecorateClassTS,
|
|
16
|
-
__legacyMetadataTS
|
|
17
|
-
} from "./chunk-r9hsk9fk.js";
|
|
18
|
-
|
|
19
|
-
// src/entities/video/VideoEntity.ts
|
|
20
|
-
import {
|
|
21
|
-
EVideoCodec,
|
|
22
|
-
EVideoFormat,
|
|
23
|
-
EVideoQuality,
|
|
24
|
-
EVideoResolution
|
|
25
|
-
} from "@ooneex/video";
|
|
26
|
-
import { Column, Entity, JoinColumn, JoinTable, ManyToMany, ManyToOne } from "typeorm";
|
|
27
|
-
class VideoEntity extends BaseEntity {
|
|
28
|
-
}
|
|
29
|
-
__legacyDecorateClassTS([
|
|
30
|
-
Column({ name: "title", type: "varchar", length: 500 }),
|
|
31
|
-
__legacyMetadataTS("design:type", String)
|
|
32
|
-
], VideoEntity.prototype, "title", undefined);
|
|
33
|
-
__legacyDecorateClassTS([
|
|
34
|
-
Column({ name: "subtitle", type: "varchar", length: 500, nullable: true }),
|
|
35
|
-
__legacyMetadataTS("design:type", String)
|
|
36
|
-
], VideoEntity.prototype, "subtitle", undefined);
|
|
37
|
-
__legacyDecorateClassTS([
|
|
38
|
-
Column({ name: "release_date", type: "date", nullable: true }),
|
|
39
|
-
__legacyMetadataTS("design:type", String)
|
|
40
|
-
], VideoEntity.prototype, "releaseDate", undefined);
|
|
41
|
-
__legacyDecorateClassTS([
|
|
42
|
-
Column({ name: "description", type: "text", nullable: true }),
|
|
43
|
-
__legacyMetadataTS("design:type", String)
|
|
44
|
-
], VideoEntity.prototype, "description", undefined);
|
|
45
|
-
__legacyDecorateClassTS([
|
|
46
|
-
Column({ name: "duration", type: "int", nullable: true }),
|
|
47
|
-
__legacyMetadataTS("design:type", Number)
|
|
48
|
-
], VideoEntity.prototype, "duration", undefined);
|
|
49
|
-
__legacyDecorateClassTS([
|
|
50
|
-
ManyToOne(() => CategoryEntity, {
|
|
51
|
-
nullable: true,
|
|
52
|
-
eager: false,
|
|
53
|
-
cascade: ["insert", "update"]
|
|
54
|
-
}),
|
|
55
|
-
JoinColumn({ name: "category_id" }),
|
|
56
|
-
__legacyMetadataTS("design:type", typeof ICategory === "undefined" ? Object : ICategory)
|
|
57
|
-
], VideoEntity.prototype, "category", undefined);
|
|
58
|
-
__legacyDecorateClassTS([
|
|
59
|
-
Column({ name: "genres", type: "json", nullable: true }),
|
|
60
|
-
__legacyMetadataTS("design:type", Array)
|
|
61
|
-
], VideoEntity.prototype, "genres", undefined);
|
|
62
|
-
__legacyDecorateClassTS([
|
|
63
|
-
Column({ name: "size", type: "bigint", nullable: true }),
|
|
64
|
-
__legacyMetadataTS("design:type", Number)
|
|
65
|
-
], VideoEntity.prototype, "size", undefined);
|
|
66
|
-
__legacyDecorateClassTS([
|
|
67
|
-
Column({ name: "url", type: "text", nullable: true }),
|
|
68
|
-
__legacyMetadataTS("design:type", String)
|
|
69
|
-
], VideoEntity.prototype, "url", undefined);
|
|
70
|
-
__legacyDecorateClassTS([
|
|
71
|
-
Column({ name: "poster_image", type: "text", nullable: true }),
|
|
72
|
-
__legacyMetadataTS("design:type", String)
|
|
73
|
-
], VideoEntity.prototype, "posterImage", undefined);
|
|
74
|
-
__legacyDecorateClassTS([
|
|
75
|
-
Column({ name: "thumbnail_image", type: "text", nullable: true }),
|
|
76
|
-
__legacyMetadataTS("design:type", String)
|
|
77
|
-
], VideoEntity.prototype, "thumbnailImage", undefined);
|
|
78
|
-
__legacyDecorateClassTS([
|
|
79
|
-
Column({
|
|
80
|
-
name: "resolution",
|
|
81
|
-
type: "enum",
|
|
82
|
-
enum: EVideoResolution,
|
|
83
|
-
nullable: true
|
|
84
|
-
}),
|
|
85
|
-
__legacyMetadataTS("design:type", typeof EVideoResolution === "undefined" ? Object : EVideoResolution)
|
|
86
|
-
], VideoEntity.prototype, "resolution", undefined);
|
|
87
|
-
__legacyDecorateClassTS([
|
|
88
|
-
Column({
|
|
89
|
-
name: "quality",
|
|
90
|
-
type: "enum",
|
|
91
|
-
enum: EVideoQuality,
|
|
92
|
-
nullable: true
|
|
93
|
-
}),
|
|
94
|
-
__legacyMetadataTS("design:type", typeof EVideoQuality === "undefined" ? Object : EVideoQuality)
|
|
95
|
-
], VideoEntity.prototype, "quality", undefined);
|
|
96
|
-
__legacyDecorateClassTS([
|
|
97
|
-
Column({
|
|
98
|
-
name: "format",
|
|
99
|
-
type: "enum",
|
|
100
|
-
enum: EVideoFormat,
|
|
101
|
-
nullable: true
|
|
102
|
-
}),
|
|
103
|
-
__legacyMetadataTS("design:type", typeof EVideoFormat === "undefined" ? Object : EVideoFormat)
|
|
104
|
-
], VideoEntity.prototype, "format", undefined);
|
|
105
|
-
__legacyDecorateClassTS([
|
|
106
|
-
Column({
|
|
107
|
-
name: "codec",
|
|
108
|
-
type: "enum",
|
|
109
|
-
enum: EVideoCodec,
|
|
110
|
-
nullable: true
|
|
111
|
-
}),
|
|
112
|
-
__legacyMetadataTS("design:type", typeof EVideoCodec === "undefined" ? Object : EVideoCodec)
|
|
113
|
-
], VideoEntity.prototype, "codec", undefined);
|
|
114
|
-
__legacyDecorateClassTS([
|
|
115
|
-
Column({ name: "bitrate", type: "int", nullable: true }),
|
|
116
|
-
__legacyMetadataTS("design:type", Number)
|
|
117
|
-
], VideoEntity.prototype, "bitrate", undefined);
|
|
118
|
-
__legacyDecorateClassTS([
|
|
119
|
-
Column({
|
|
120
|
-
name: "frame_rate",
|
|
121
|
-
type: "decimal",
|
|
122
|
-
precision: 5,
|
|
123
|
-
scale: 2,
|
|
124
|
-
nullable: true
|
|
125
|
-
}),
|
|
126
|
-
__legacyMetadataTS("design:type", Number)
|
|
127
|
-
], VideoEntity.prototype, "frameRate", undefined);
|
|
128
|
-
__legacyDecorateClassTS([
|
|
129
|
-
Column({ name: "audio_codec", type: "varchar", length: 50, nullable: true }),
|
|
130
|
-
__legacyMetadataTS("design:type", typeof AudioCodecType === "undefined" ? Object : AudioCodecType)
|
|
131
|
-
], VideoEntity.prototype, "audioCodec", undefined);
|
|
132
|
-
__legacyDecorateClassTS([
|
|
133
|
-
Column({
|
|
134
|
-
name: "audio_channels",
|
|
135
|
-
type: "varchar",
|
|
136
|
-
length: 20,
|
|
137
|
-
nullable: true
|
|
138
|
-
}),
|
|
139
|
-
__legacyMetadataTS("design:type", typeof AudioChannelsType === "undefined" ? Object : AudioChannelsType)
|
|
140
|
-
], VideoEntity.prototype, "audioChannels", undefined);
|
|
141
|
-
__legacyDecorateClassTS([
|
|
142
|
-
Column({
|
|
143
|
-
name: "average_rating",
|
|
144
|
-
type: "decimal",
|
|
145
|
-
precision: 3,
|
|
146
|
-
scale: 2,
|
|
147
|
-
nullable: true
|
|
148
|
-
}),
|
|
149
|
-
__legacyMetadataTS("design:type", Number)
|
|
150
|
-
], VideoEntity.prototype, "averageRating", undefined);
|
|
151
|
-
__legacyDecorateClassTS([
|
|
152
|
-
Column({ name: "ratings_count", type: "int", nullable: true }),
|
|
153
|
-
__legacyMetadataTS("design:type", Number)
|
|
154
|
-
], VideoEntity.prototype, "ratingsCount", undefined);
|
|
155
|
-
__legacyDecorateClassTS([
|
|
156
|
-
Column({
|
|
157
|
-
name: "content_rating",
|
|
158
|
-
type: "varchar",
|
|
159
|
-
length: 10,
|
|
160
|
-
nullable: true
|
|
161
|
-
}),
|
|
162
|
-
__legacyMetadataTS("design:type", String)
|
|
163
|
-
], VideoEntity.prototype, "contentRating", undefined);
|
|
164
|
-
__legacyDecorateClassTS([
|
|
165
|
-
Column({ name: "context", type: "varchar", length: 255, nullable: true }),
|
|
166
|
-
__legacyMetadataTS("design:type", String)
|
|
167
|
-
], VideoEntity.prototype, "context", undefined);
|
|
168
|
-
__legacyDecorateClassTS([
|
|
169
|
-
Column({ name: "context_id", type: "varchar", length: 25, nullable: true }),
|
|
170
|
-
__legacyMetadataTS("design:type", String)
|
|
171
|
-
], VideoEntity.prototype, "contextId", undefined);
|
|
172
|
-
__legacyDecorateClassTS([
|
|
173
|
-
Column({ name: "is_youtube", type: "boolean", default: false }),
|
|
174
|
-
__legacyMetadataTS("design:type", Boolean)
|
|
175
|
-
], VideoEntity.prototype, "isYoutube", undefined);
|
|
176
|
-
__legacyDecorateClassTS([
|
|
177
|
-
ManyToMany(() => TagEntity, { eager: false, cascade: ["insert", "update"] }),
|
|
178
|
-
JoinTable({
|
|
179
|
-
name: "videos_tags",
|
|
180
|
-
joinColumn: { name: "video_id", referencedColumnName: "id" },
|
|
181
|
-
inverseJoinColumn: { name: "tag_id", referencedColumnName: "id" }
|
|
182
|
-
}),
|
|
183
|
-
__legacyMetadataTS("design:type", Array)
|
|
184
|
-
], VideoEntity.prototype, "tags", undefined);
|
|
185
|
-
__legacyDecorateClassTS([
|
|
186
|
-
ManyToOne(() => StatusEntity, {
|
|
187
|
-
nullable: true,
|
|
188
|
-
eager: false,
|
|
189
|
-
cascade: ["insert", "update"]
|
|
190
|
-
}),
|
|
191
|
-
JoinColumn({ name: "status_id" }),
|
|
192
|
-
__legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
|
|
193
|
-
], VideoEntity.prototype, "status", undefined);
|
|
194
|
-
VideoEntity = __legacyDecorateClassTS([
|
|
195
|
-
Entity({
|
|
196
|
-
name: "videos"
|
|
197
|
-
})
|
|
198
|
-
], VideoEntity);
|
|
199
|
-
|
|
200
|
-
// src/entities/video/VideoCommentEntity.ts
|
|
201
|
-
import { Column as Column2, Entity as Entity2, JoinColumn as JoinColumn2, ManyToOne as ManyToOne2 } from "typeorm";
|
|
202
|
-
class VideoCommentEntity extends BaseEntity {
|
|
203
|
-
}
|
|
204
|
-
__legacyDecorateClassTS([
|
|
205
|
-
ManyToOne2(() => VideoEntity, {
|
|
206
|
-
nullable: true,
|
|
207
|
-
eager: false
|
|
208
|
-
}),
|
|
209
|
-
JoinColumn2({ name: "video_id" }),
|
|
210
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
211
|
-
], VideoCommentEntity.prototype, "video", undefined);
|
|
212
|
-
__legacyDecorateClassTS([
|
|
213
|
-
Column2({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
214
|
-
__legacyMetadataTS("design:type", String)
|
|
215
|
-
], VideoCommentEntity.prototype, "videoId", undefined);
|
|
216
|
-
__legacyDecorateClassTS([
|
|
217
|
-
Column2({ name: "comment", type: "text" }),
|
|
218
|
-
__legacyMetadataTS("design:type", String)
|
|
219
|
-
], VideoCommentEntity.prototype, "comment", undefined);
|
|
220
|
-
__legacyDecorateClassTS([
|
|
221
|
-
Column2({ name: "commented_by", type: "varchar", length: 255, nullable: true }),
|
|
222
|
-
__legacyMetadataTS("design:type", String)
|
|
223
|
-
], VideoCommentEntity.prototype, "commentedBy", undefined);
|
|
224
|
-
__legacyDecorateClassTS([
|
|
225
|
-
Column2({ name: "commented_by_id", type: "varchar", length: 25, nullable: true }),
|
|
226
|
-
__legacyMetadataTS("design:type", String)
|
|
227
|
-
], VideoCommentEntity.prototype, "commentedById", undefined);
|
|
228
|
-
__legacyDecorateClassTS([
|
|
229
|
-
Column2({ name: "parent_comment_id", type: "varchar", length: 25, nullable: true }),
|
|
230
|
-
__legacyMetadataTS("design:type", String)
|
|
231
|
-
], VideoCommentEntity.prototype, "parentCommentId", undefined);
|
|
232
|
-
VideoCommentEntity = __legacyDecorateClassTS([
|
|
233
|
-
Entity2({
|
|
234
|
-
name: "videos_comments"
|
|
235
|
-
})
|
|
236
|
-
], VideoCommentEntity);
|
|
237
|
-
|
|
238
|
-
// src/entities/video/VideoDislikedEntity.ts
|
|
239
|
-
import { Column as Column3, Entity as Entity3, JoinColumn as JoinColumn3, ManyToOne as ManyToOne3 } from "typeorm";
|
|
240
|
-
class VideoDislikedEntity extends BaseEntity {
|
|
241
|
-
}
|
|
242
|
-
__legacyDecorateClassTS([
|
|
243
|
-
ManyToOne3(() => VideoEntity, {
|
|
244
|
-
nullable: true,
|
|
245
|
-
eager: false
|
|
246
|
-
}),
|
|
247
|
-
JoinColumn3({ name: "video_id" }),
|
|
248
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
249
|
-
], VideoDislikedEntity.prototype, "video", undefined);
|
|
250
|
-
__legacyDecorateClassTS([
|
|
251
|
-
Column3({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
252
|
-
__legacyMetadataTS("design:type", String)
|
|
253
|
-
], VideoDislikedEntity.prototype, "videoId", undefined);
|
|
254
|
-
__legacyDecorateClassTS([
|
|
255
|
-
Column3({ name: "disliked_by", type: "varchar", length: 255, nullable: true }),
|
|
256
|
-
__legacyMetadataTS("design:type", String)
|
|
257
|
-
], VideoDislikedEntity.prototype, "dislikedBy", undefined);
|
|
258
|
-
__legacyDecorateClassTS([
|
|
259
|
-
Column3({ name: "disliked_by_id", type: "varchar", length: 25, nullable: true }),
|
|
260
|
-
__legacyMetadataTS("design:type", String)
|
|
261
|
-
], VideoDislikedEntity.prototype, "dislikedById", undefined);
|
|
262
|
-
VideoDislikedEntity = __legacyDecorateClassTS([
|
|
263
|
-
Entity3({
|
|
264
|
-
name: "videos_disliked"
|
|
265
|
-
})
|
|
266
|
-
], VideoDislikedEntity);
|
|
267
|
-
|
|
268
|
-
// src/entities/video/VideoDownloadedEntity.ts
|
|
269
|
-
import { Column as Column4, Entity as Entity4, JoinColumn as JoinColumn4, ManyToOne as ManyToOne4 } from "typeorm";
|
|
270
|
-
class VideoDownloadedEntity extends BaseEntity {
|
|
271
|
-
}
|
|
272
|
-
__legacyDecorateClassTS([
|
|
273
|
-
ManyToOne4(() => VideoEntity, {
|
|
274
|
-
nullable: true,
|
|
275
|
-
eager: false
|
|
276
|
-
}),
|
|
277
|
-
JoinColumn4({ name: "video_id" }),
|
|
278
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
279
|
-
], VideoDownloadedEntity.prototype, "video", undefined);
|
|
280
|
-
__legacyDecorateClassTS([
|
|
281
|
-
Column4({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
282
|
-
__legacyMetadataTS("design:type", String)
|
|
283
|
-
], VideoDownloadedEntity.prototype, "videoId", undefined);
|
|
284
|
-
__legacyDecorateClassTS([
|
|
285
|
-
Column4({ name: "downloaded_by", type: "varchar", length: 255, nullable: true }),
|
|
286
|
-
__legacyMetadataTS("design:type", String)
|
|
287
|
-
], VideoDownloadedEntity.prototype, "downloadedBy", undefined);
|
|
288
|
-
__legacyDecorateClassTS([
|
|
289
|
-
Column4({ name: "downloaded_by_id", type: "varchar", length: 25, nullable: true }),
|
|
290
|
-
__legacyMetadataTS("design:type", String)
|
|
291
|
-
], VideoDownloadedEntity.prototype, "downloadedById", undefined);
|
|
292
|
-
VideoDownloadedEntity = __legacyDecorateClassTS([
|
|
293
|
-
Entity4({
|
|
294
|
-
name: "videos_downloaded"
|
|
295
|
-
})
|
|
296
|
-
], VideoDownloadedEntity);
|
|
297
|
-
|
|
298
|
-
// src/entities/video/VideoLikedEntity.ts
|
|
299
|
-
import { Column as Column5, Entity as Entity5, JoinColumn as JoinColumn5, ManyToOne as ManyToOne5 } from "typeorm";
|
|
300
|
-
class VideoLikedEntity extends BaseEntity {
|
|
301
|
-
}
|
|
302
|
-
__legacyDecorateClassTS([
|
|
303
|
-
ManyToOne5(() => VideoEntity, {
|
|
304
|
-
nullable: true,
|
|
305
|
-
eager: false
|
|
306
|
-
}),
|
|
307
|
-
JoinColumn5({ name: "video_id" }),
|
|
308
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
309
|
-
], VideoLikedEntity.prototype, "video", undefined);
|
|
310
|
-
__legacyDecorateClassTS([
|
|
311
|
-
Column5({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
312
|
-
__legacyMetadataTS("design:type", String)
|
|
313
|
-
], VideoLikedEntity.prototype, "videoId", undefined);
|
|
314
|
-
__legacyDecorateClassTS([
|
|
315
|
-
Column5({ name: "liked_by", type: "varchar", length: 255, nullable: true }),
|
|
316
|
-
__legacyMetadataTS("design:type", String)
|
|
317
|
-
], VideoLikedEntity.prototype, "likedBy", undefined);
|
|
318
|
-
__legacyDecorateClassTS([
|
|
319
|
-
Column5({ name: "liked_by_id", type: "varchar", length: 25, nullable: true }),
|
|
320
|
-
__legacyMetadataTS("design:type", String)
|
|
321
|
-
], VideoLikedEntity.prototype, "likedById", undefined);
|
|
322
|
-
VideoLikedEntity = __legacyDecorateClassTS([
|
|
323
|
-
Entity5({
|
|
324
|
-
name: "videos_liked"
|
|
325
|
-
})
|
|
326
|
-
], VideoLikedEntity);
|
|
327
|
-
|
|
328
|
-
// src/entities/video/VideoPlaylistEntity.ts
|
|
329
|
-
import { Column as Column6, Entity as Entity6, JoinColumn as JoinColumn6, JoinTable as JoinTable2, ManyToMany as ManyToMany2, ManyToOne as ManyToOne6 } from "typeorm";
|
|
330
|
-
class VideoPlaylistEntity extends BaseEntity {
|
|
331
|
-
}
|
|
332
|
-
__legacyDecorateClassTS([
|
|
333
|
-
Column6({ name: "name", type: "varchar", length: 255 }),
|
|
334
|
-
__legacyMetadataTS("design:type", String)
|
|
335
|
-
], VideoPlaylistEntity.prototype, "name", undefined);
|
|
336
|
-
__legacyDecorateClassTS([
|
|
337
|
-
Column6({ name: "description", type: "text", nullable: true }),
|
|
338
|
-
__legacyMetadataTS("design:type", String)
|
|
339
|
-
], VideoPlaylistEntity.prototype, "description", undefined);
|
|
340
|
-
__legacyDecorateClassTS([
|
|
341
|
-
ManyToMany2(() => VideoEntity, {
|
|
342
|
-
eager: false,
|
|
343
|
-
cascade: ["insert", "update"]
|
|
344
|
-
}),
|
|
345
|
-
JoinTable2({
|
|
346
|
-
name: "playlists_videos",
|
|
347
|
-
joinColumn: { name: "playlist_id", referencedColumnName: "id" },
|
|
348
|
-
inverseJoinColumn: { name: "video_id", referencedColumnName: "id" }
|
|
349
|
-
}),
|
|
350
|
-
__legacyMetadataTS("design:type", Array)
|
|
351
|
-
], VideoPlaylistEntity.prototype, "videos", undefined);
|
|
352
|
-
__legacyDecorateClassTS([
|
|
353
|
-
ManyToMany2(() => TagEntity, { eager: false, cascade: ["insert", "update"] }),
|
|
354
|
-
JoinTable2({
|
|
355
|
-
name: "playlists_tags",
|
|
356
|
-
joinColumn: { name: "playlist_id", referencedColumnName: "id" },
|
|
357
|
-
inverseJoinColumn: { name: "tag_id", referencedColumnName: "id" }
|
|
358
|
-
}),
|
|
359
|
-
__legacyMetadataTS("design:type", Array)
|
|
360
|
-
], VideoPlaylistEntity.prototype, "tags", undefined);
|
|
361
|
-
__legacyDecorateClassTS([
|
|
362
|
-
ManyToOne6(() => StatusEntity, {
|
|
363
|
-
nullable: true,
|
|
364
|
-
eager: false,
|
|
365
|
-
cascade: ["insert", "update"]
|
|
366
|
-
}),
|
|
367
|
-
JoinColumn6({ name: "status_id" }),
|
|
368
|
-
__legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
|
|
369
|
-
], VideoPlaylistEntity.prototype, "status", undefined);
|
|
370
|
-
VideoPlaylistEntity = __legacyDecorateClassTS([
|
|
371
|
-
Entity6({
|
|
372
|
-
name: "video_playlists"
|
|
373
|
-
})
|
|
374
|
-
], VideoPlaylistEntity);
|
|
375
|
-
|
|
376
|
-
// src/entities/video/VideoProgressEntity.ts
|
|
377
|
-
import { Column as Column7, Entity as Entity7, JoinColumn as JoinColumn7, ManyToOne as ManyToOne7 } from "typeorm";
|
|
378
|
-
class VideoProgressEntity extends BaseEntity {
|
|
379
|
-
}
|
|
380
|
-
__legacyDecorateClassTS([
|
|
381
|
-
ManyToOne7(() => VideoEntity, {
|
|
382
|
-
nullable: true,
|
|
383
|
-
eager: false,
|
|
384
|
-
cascade: ["insert", "update"]
|
|
385
|
-
}),
|
|
386
|
-
JoinColumn7({ name: "video_id" }),
|
|
387
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
388
|
-
], VideoProgressEntity.prototype, "video", undefined);
|
|
389
|
-
__legacyDecorateClassTS([
|
|
390
|
-
Column7({ name: "user_id", type: "varchar", length: 15 }),
|
|
391
|
-
__legacyMetadataTS("design:type", String)
|
|
392
|
-
], VideoProgressEntity.prototype, "userId", undefined);
|
|
393
|
-
__legacyDecorateClassTS([
|
|
394
|
-
Column7({ name: "current_time", type: "int" }),
|
|
395
|
-
__legacyMetadataTS("design:type", Number)
|
|
396
|
-
], VideoProgressEntity.prototype, "currentTime", undefined);
|
|
397
|
-
__legacyDecorateClassTS([
|
|
398
|
-
Column7({ name: "duration", type: "int", nullable: true }),
|
|
399
|
-
__legacyMetadataTS("design:type", Number)
|
|
400
|
-
], VideoProgressEntity.prototype, "duration", undefined);
|
|
401
|
-
__legacyDecorateClassTS([
|
|
402
|
-
Column7({
|
|
403
|
-
name: "completed",
|
|
404
|
-
type: "boolean",
|
|
405
|
-
default: false,
|
|
406
|
-
nullable: true
|
|
407
|
-
}),
|
|
408
|
-
__legacyMetadataTS("design:type", Boolean)
|
|
409
|
-
], VideoProgressEntity.prototype, "completed", undefined);
|
|
410
|
-
__legacyDecorateClassTS([
|
|
411
|
-
Column7({ name: "last_watched", type: "timestamptz", nullable: true }),
|
|
412
|
-
__legacyMetadataTS("design:type", String)
|
|
413
|
-
], VideoProgressEntity.prototype, "lastWatched", undefined);
|
|
414
|
-
VideoProgressEntity = __legacyDecorateClassTS([
|
|
415
|
-
Entity7({
|
|
416
|
-
name: "video_progress"
|
|
417
|
-
})
|
|
418
|
-
], VideoProgressEntity);
|
|
419
|
-
|
|
420
|
-
// src/entities/video/VideoReportEntity.ts
|
|
421
|
-
import { Column as Column8, Entity as Entity8, JoinColumn as JoinColumn8, ManyToOne as ManyToOne8 } from "typeorm";
|
|
422
|
-
class VideoReportEntity extends BaseEntity {
|
|
423
|
-
}
|
|
424
|
-
__legacyDecorateClassTS([
|
|
425
|
-
ManyToOne8(() => VideoEntity, {
|
|
426
|
-
nullable: true,
|
|
427
|
-
eager: false
|
|
428
|
-
}),
|
|
429
|
-
JoinColumn8({ name: "video_id" }),
|
|
430
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
431
|
-
], VideoReportEntity.prototype, "video", undefined);
|
|
432
|
-
__legacyDecorateClassTS([
|
|
433
|
-
Column8({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
434
|
-
__legacyMetadataTS("design:type", String)
|
|
435
|
-
], VideoReportEntity.prototype, "videoId", undefined);
|
|
436
|
-
__legacyDecorateClassTS([
|
|
437
|
-
Column8({ name: "reason", type: "varchar", length: 255 }),
|
|
438
|
-
__legacyMetadataTS("design:type", String)
|
|
439
|
-
], VideoReportEntity.prototype, "reason", undefined);
|
|
440
|
-
__legacyDecorateClassTS([
|
|
441
|
-
Column8({ name: "description", type: "text", nullable: true }),
|
|
442
|
-
__legacyMetadataTS("design:type", String)
|
|
443
|
-
], VideoReportEntity.prototype, "description", undefined);
|
|
444
|
-
__legacyDecorateClassTS([
|
|
445
|
-
Column8({ name: "reported_by", type: "varchar", length: 255, nullable: true }),
|
|
446
|
-
__legacyMetadataTS("design:type", String)
|
|
447
|
-
], VideoReportEntity.prototype, "reportedBy", undefined);
|
|
448
|
-
__legacyDecorateClassTS([
|
|
449
|
-
Column8({ name: "reported_by_id", type: "varchar", length: 25, nullable: true }),
|
|
450
|
-
__legacyMetadataTS("design:type", String)
|
|
451
|
-
], VideoReportEntity.prototype, "reportedById", undefined);
|
|
452
|
-
__legacyDecorateClassTS([
|
|
453
|
-
ManyToOne8(() => StatusEntity, {
|
|
454
|
-
nullable: true,
|
|
455
|
-
eager: false,
|
|
456
|
-
cascade: ["insert", "update"]
|
|
457
|
-
}),
|
|
458
|
-
JoinColumn8({ name: "status_id" }),
|
|
459
|
-
__legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
|
|
460
|
-
], VideoReportEntity.prototype, "status", undefined);
|
|
461
|
-
VideoReportEntity = __legacyDecorateClassTS([
|
|
462
|
-
Entity8({
|
|
463
|
-
name: "videos_reports"
|
|
464
|
-
})
|
|
465
|
-
], VideoReportEntity);
|
|
466
|
-
|
|
467
|
-
// src/entities/video/VideoSavedEntity.ts
|
|
468
|
-
import { Column as Column9, Entity as Entity9, JoinColumn as JoinColumn9, ManyToOne as ManyToOne9 } from "typeorm";
|
|
469
|
-
class VideoSavedEntity extends BaseEntity {
|
|
470
|
-
}
|
|
471
|
-
__legacyDecorateClassTS([
|
|
472
|
-
ManyToOne9(() => VideoEntity, {
|
|
473
|
-
nullable: true,
|
|
474
|
-
eager: false
|
|
475
|
-
}),
|
|
476
|
-
JoinColumn9({ name: "video_id" }),
|
|
477
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
478
|
-
], VideoSavedEntity.prototype, "video", undefined);
|
|
479
|
-
__legacyDecorateClassTS([
|
|
480
|
-
Column9({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
481
|
-
__legacyMetadataTS("design:type", String)
|
|
482
|
-
], VideoSavedEntity.prototype, "videoId", undefined);
|
|
483
|
-
__legacyDecorateClassTS([
|
|
484
|
-
Column9({ name: "saved_by", type: "varchar", length: 255, nullable: true }),
|
|
485
|
-
__legacyMetadataTS("design:type", String)
|
|
486
|
-
], VideoSavedEntity.prototype, "savedBy", undefined);
|
|
487
|
-
__legacyDecorateClassTS([
|
|
488
|
-
Column9({ name: "saved_by_id", type: "varchar", length: 25, nullable: true }),
|
|
489
|
-
__legacyMetadataTS("design:type", String)
|
|
490
|
-
], VideoSavedEntity.prototype, "savedById", undefined);
|
|
491
|
-
VideoSavedEntity = __legacyDecorateClassTS([
|
|
492
|
-
Entity9({
|
|
493
|
-
name: "videos_saved"
|
|
494
|
-
})
|
|
495
|
-
], VideoSavedEntity);
|
|
496
|
-
|
|
497
|
-
// src/entities/video/VideoSharedEntity.ts
|
|
498
|
-
import { Column as Column10, Entity as Entity10, JoinColumn as JoinColumn10, ManyToOne as ManyToOne10 } from "typeorm";
|
|
499
|
-
class VideoSharedEntity extends BaseEntity {
|
|
500
|
-
}
|
|
501
|
-
__legacyDecorateClassTS([
|
|
502
|
-
ManyToOne10(() => VideoEntity, {
|
|
503
|
-
nullable: true,
|
|
504
|
-
eager: false
|
|
505
|
-
}),
|
|
506
|
-
JoinColumn10({ name: "video_id" }),
|
|
507
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
508
|
-
], VideoSharedEntity.prototype, "video", undefined);
|
|
509
|
-
__legacyDecorateClassTS([
|
|
510
|
-
Column10({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
511
|
-
__legacyMetadataTS("design:type", String)
|
|
512
|
-
], VideoSharedEntity.prototype, "videoId", undefined);
|
|
513
|
-
__legacyDecorateClassTS([
|
|
514
|
-
Column10({ name: "shared_with", type: "varchar", length: 255, nullable: true }),
|
|
515
|
-
__legacyMetadataTS("design:type", String)
|
|
516
|
-
], VideoSharedEntity.prototype, "sharedWith", undefined);
|
|
517
|
-
__legacyDecorateClassTS([
|
|
518
|
-
Column10({ name: "shared_by_id", type: "varchar", length: 25, nullable: true }),
|
|
519
|
-
__legacyMetadataTS("design:type", String)
|
|
520
|
-
], VideoSharedEntity.prototype, "sharedById", undefined);
|
|
521
|
-
__legacyDecorateClassTS([
|
|
522
|
-
Column10({ name: "permission", type: "varchar", length: 50, nullable: true }),
|
|
523
|
-
__legacyMetadataTS("design:type", String)
|
|
524
|
-
], VideoSharedEntity.prototype, "permission", undefined);
|
|
525
|
-
__legacyDecorateClassTS([
|
|
526
|
-
Column10({ name: "expires_at", type: "timestamptz", nullable: true }),
|
|
527
|
-
__legacyMetadataTS("design:type", String)
|
|
528
|
-
], VideoSharedEntity.prototype, "expiresAt", undefined);
|
|
529
|
-
VideoSharedEntity = __legacyDecorateClassTS([
|
|
530
|
-
Entity10({
|
|
531
|
-
name: "videos_shared"
|
|
532
|
-
})
|
|
533
|
-
], VideoSharedEntity);
|
|
534
|
-
|
|
535
|
-
// src/entities/video/VideoStatEntity.ts
|
|
536
|
-
import { Column as Column11, Entity as Entity11, JoinColumn as JoinColumn11, ManyToOne as ManyToOne11 } from "typeorm";
|
|
537
|
-
class VideoStatEntity extends BaseEntity {
|
|
538
|
-
}
|
|
539
|
-
__legacyDecorateClassTS([
|
|
540
|
-
ManyToOne11(() => VideoEntity, {
|
|
541
|
-
nullable: true,
|
|
542
|
-
eager: false
|
|
543
|
-
}),
|
|
544
|
-
JoinColumn11({ name: "video_id" }),
|
|
545
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
546
|
-
], VideoStatEntity.prototype, "video", undefined);
|
|
547
|
-
__legacyDecorateClassTS([
|
|
548
|
-
Column11({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
549
|
-
__legacyMetadataTS("design:type", String)
|
|
550
|
-
], VideoStatEntity.prototype, "videoId", undefined);
|
|
551
|
-
__legacyDecorateClassTS([
|
|
552
|
-
Column11({ name: "likes_count", type: "int", default: 0, nullable: true }),
|
|
553
|
-
__legacyMetadataTS("design:type", Number)
|
|
554
|
-
], VideoStatEntity.prototype, "likesCount", undefined);
|
|
555
|
-
__legacyDecorateClassTS([
|
|
556
|
-
Column11({ name: "dislikes_count", type: "int", default: 0, nullable: true }),
|
|
557
|
-
__legacyMetadataTS("design:type", Number)
|
|
558
|
-
], VideoStatEntity.prototype, "dislikesCount", undefined);
|
|
559
|
-
__legacyDecorateClassTS([
|
|
560
|
-
Column11({ name: "comments_count", type: "int", default: 0, nullable: true }),
|
|
561
|
-
__legacyMetadataTS("design:type", Number)
|
|
562
|
-
], VideoStatEntity.prototype, "commentsCount", undefined);
|
|
563
|
-
__legacyDecorateClassTS([
|
|
564
|
-
Column11({ name: "shares_count", type: "int", default: 0, nullable: true }),
|
|
565
|
-
__legacyMetadataTS("design:type", Number)
|
|
566
|
-
], VideoStatEntity.prototype, "sharesCount", undefined);
|
|
567
|
-
__legacyDecorateClassTS([
|
|
568
|
-
Column11({ name: "saves_count", type: "int", default: 0, nullable: true }),
|
|
569
|
-
__legacyMetadataTS("design:type", Number)
|
|
570
|
-
], VideoStatEntity.prototype, "savesCount", undefined);
|
|
571
|
-
__legacyDecorateClassTS([
|
|
572
|
-
Column11({ name: "downloads_count", type: "int", default: 0, nullable: true }),
|
|
573
|
-
__legacyMetadataTS("design:type", Number)
|
|
574
|
-
], VideoStatEntity.prototype, "downloadsCount", undefined);
|
|
575
|
-
__legacyDecorateClassTS([
|
|
576
|
-
Column11({ name: "views_count", type: "int", default: 0, nullable: true }),
|
|
577
|
-
__legacyMetadataTS("design:type", Number)
|
|
578
|
-
], VideoStatEntity.prototype, "viewsCount", undefined);
|
|
579
|
-
__legacyDecorateClassTS([
|
|
580
|
-
Column11({ name: "reports_count", type: "int", default: 0, nullable: true }),
|
|
581
|
-
__legacyMetadataTS("design:type", Number)
|
|
582
|
-
], VideoStatEntity.prototype, "reportsCount", undefined);
|
|
583
|
-
VideoStatEntity = __legacyDecorateClassTS([
|
|
584
|
-
Entity11({
|
|
585
|
-
name: "videos_stats"
|
|
586
|
-
})
|
|
587
|
-
], VideoStatEntity);
|
|
588
|
-
|
|
589
|
-
// src/entities/video/VideoViewedEntity.ts
|
|
590
|
-
import { Column as Column12, Entity as Entity12, JoinColumn as JoinColumn12, ManyToOne as ManyToOne12 } from "typeorm";
|
|
591
|
-
class VideoViewedEntity extends BaseEntity {
|
|
592
|
-
}
|
|
593
|
-
__legacyDecorateClassTS([
|
|
594
|
-
ManyToOne12(() => VideoEntity, {
|
|
595
|
-
nullable: true,
|
|
596
|
-
eager: false
|
|
597
|
-
}),
|
|
598
|
-
JoinColumn12({ name: "video_id" }),
|
|
599
|
-
__legacyMetadataTS("design:type", typeof IVideo === "undefined" ? Object : IVideo)
|
|
600
|
-
], VideoViewedEntity.prototype, "video", undefined);
|
|
601
|
-
__legacyDecorateClassTS([
|
|
602
|
-
Column12({ name: "video_id", type: "varchar", length: 25, nullable: true }),
|
|
603
|
-
__legacyMetadataTS("design:type", String)
|
|
604
|
-
], VideoViewedEntity.prototype, "videoId", undefined);
|
|
605
|
-
__legacyDecorateClassTS([
|
|
606
|
-
Column12({ name: "viewed_by", type: "varchar", length: 255, nullable: true }),
|
|
607
|
-
__legacyMetadataTS("design:type", String)
|
|
608
|
-
], VideoViewedEntity.prototype, "viewedBy", undefined);
|
|
609
|
-
__legacyDecorateClassTS([
|
|
610
|
-
Column12({ name: "viewed_by_id", type: "varchar", length: 25, nullable: true }),
|
|
611
|
-
__legacyMetadataTS("design:type", String)
|
|
612
|
-
], VideoViewedEntity.prototype, "viewedById", undefined);
|
|
613
|
-
VideoViewedEntity = __legacyDecorateClassTS([
|
|
614
|
-
Entity12({
|
|
615
|
-
name: "videos_viewed"
|
|
616
|
-
})
|
|
617
|
-
], VideoViewedEntity);
|
|
618
|
-
|
|
619
|
-
export { VideoEntity, VideoCommentEntity, VideoDislikedEntity, VideoDownloadedEntity, VideoLikedEntity, VideoPlaylistEntity, VideoProgressEntity, VideoReportEntity, VideoSavedEntity, VideoSharedEntity, VideoStatEntity, VideoViewedEntity };
|
|
620
|
-
|
|
621
|
-
//# debugId=7D588C715254C8ED64756E2164756E21
|