@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.
Files changed (141) hide show
  1. package/dist/shared/chunk-19qhst35.js +5 -0
  2. package/dist/shared/{chunk-tqd6ek7s.js.map → chunk-19qhst35.js.map} +2 -2
  3. package/dist/shared/{chunk-trhrh4e1.js → chunk-31y260d6.js} +24 -89
  4. package/dist/shared/{chunk-trhrh4e1.js.map → chunk-31y260d6.js.map} +2 -2
  5. package/dist/shared/chunk-59vwmfpm.js +5 -0
  6. package/dist/shared/{chunk-r9hsk9fk.js.map → chunk-59vwmfpm.js.map} +1 -1
  7. package/dist/shared/chunk-5tnqjb3n.js +5 -0
  8. package/dist/shared/{chunk-2wdazj26.js.map → chunk-5tnqjb3n.js.map} +2 -2
  9. package/dist/shared/chunk-5ybg5hda.js +5 -0
  10. package/dist/shared/{chunk-m4mpkr4n.js.map → chunk-5ybg5hda.js.map} +2 -2
  11. package/dist/shared/chunk-6jnj2pfx.js +5 -0
  12. package/dist/shared/{chunk-p12g6e7b.js.map → chunk-6jnj2pfx.js.map} +2 -2
  13. package/dist/shared/chunk-6kdkyjbn.js +5 -0
  14. package/dist/shared/{chunk-mssxq87m.js.map → chunk-6kdkyjbn.js.map} +2 -2
  15. package/dist/shared/{chunk-jap9t59k.js → chunk-aj0aak90.js} +14 -52
  16. package/dist/shared/{chunk-jap9t59k.js.map → chunk-aj0aak90.js.map} +2 -2
  17. package/dist/shared/chunk-e51ktjsq.js +5 -0
  18. package/dist/shared/{chunk-efmap3y3.js.map → chunk-e51ktjsq.js.map} +2 -2
  19. package/dist/shared/{chunk-yszvxhf3.js → chunk-jr0xys18.js} +11 -41
  20. package/dist/shared/{chunk-yszvxhf3.js.map → chunk-jr0xys18.js.map} +2 -2
  21. package/dist/shared/chunk-kw4t1san.js +5 -0
  22. package/dist/shared/{chunk-m9wkjs7v.js.map → chunk-kw4t1san.js.map} +2 -2
  23. package/dist/shared/chunk-nfv9ce7v.js +5 -0
  24. package/dist/shared/{chunk-qbn9p4vj.js.map → chunk-nfv9ce7v.js.map} +2 -2
  25. package/dist/shared/chunk-p22keb3y.js +5 -0
  26. package/dist/shared/{chunk-bkdccdhn.js.map → chunk-p22keb3y.js.map} +2 -2
  27. package/dist/shared/chunk-pbns711f.js +5 -0
  28. package/dist/shared/{chunk-hkfj9j6w.js.map → chunk-pbns711f.js.map} +2 -2
  29. package/dist/shared/{chunk-6vmvyg0q.js → chunk-qrs0g3m9.js} +17 -58
  30. package/dist/shared/{chunk-6vmvyg0q.js.map → chunk-qrs0g3m9.js.map} +2 -2
  31. package/dist/shared/{chunk-eets3mef.js → chunk-qyf32qsz.js} +22 -75
  32. package/dist/shared/{chunk-eets3mef.js.map → chunk-qyf32qsz.js.map} +2 -2
  33. package/dist/shared/chunk-t1jad451.js +5 -0
  34. package/dist/shared/{chunk-cv6xa6qy.js.map → chunk-t1jad451.js.map} +2 -2
  35. package/dist/shared/chunk-t5cy307m.js +5 -0
  36. package/dist/shared/{chunk-wg7xcq50.js.map → chunk-t5cy307m.js.map} +2 -2
  37. package/dist/shared/chunk-x2d798hg.js +5 -0
  38. package/dist/shared/{chunk-sk8z5zmk.js.map → chunk-x2d798hg.js.map} +2 -2
  39. package/dist/shared/chunk-x3pmm3na.js +5 -0
  40. package/dist/shared/{chunk-cwxhwya1.js.map → chunk-x3pmm3na.js.map} +2 -2
  41. package/dist/shared/chunk-xrqhqgen.js +5 -0
  42. package/dist/shared/{chunk-chan1evn.js.map → chunk-xrqhqgen.js.map} +2 -2
  43. package/dist/shared/chunk-xwe8m6av.js +5 -0
  44. package/dist/shared/{chunk-0swb1h0m.js.map → chunk-xwe8m6av.js.map} +2 -2
  45. package/dist/shared/chunk-yrwsqc6r.js +5 -0
  46. package/dist/shared/{chunk-6m3p1ht9.js.map → chunk-yrwsqc6r.js.map} +2 -2
  47. package/dist/src/entities/book/index.js +2 -34
  48. package/dist/src/entities/book/index.js.map +1 -1
  49. package/dist/src/entities/common/index.js +2 -26
  50. package/dist/src/entities/common/index.js.map +1 -1
  51. package/dist/src/entities/country/index.js +2 -9
  52. package/dist/src/entities/country/index.js.map +1 -1
  53. package/dist/src/entities/currency/index.js +2 -9
  54. package/dist/src/entities/currency/index.js.map +1 -1
  55. package/dist/src/entities/folder/index.js +2 -394
  56. package/dist/src/entities/folder/index.js.map +2 -2
  57. package/dist/src/entities/gamification/flashcard/index.js +2 -26
  58. package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
  59. package/dist/src/entities/gamification/index.js +2 -9
  60. package/dist/src/entities/gamification/index.js.map +1 -1
  61. package/dist/src/entities/gamification/mcq/index.js +2 -36
  62. package/dist/src/entities/gamification/mcq/index.js.map +1 -1
  63. package/dist/src/entities/image/index.js +2 -31
  64. package/dist/src/entities/image/index.js.map +1 -1
  65. package/dist/src/entities/medecine/index.js +2 -13
  66. package/dist/src/entities/medecine/index.js.map +1 -1
  67. package/dist/src/entities/payment/index.js +2 -23
  68. package/dist/src/entities/payment/index.js.map +1 -1
  69. package/dist/src/entities/user/index.js +2 -30
  70. package/dist/src/entities/user/index.js.map +1 -1
  71. package/dist/src/entities/video/index.js +2 -34
  72. package/dist/src/entities/video/index.js.map +1 -1
  73. package/dist/src/migrations/book/index.js +137 -541
  74. package/dist/src/migrations/book/index.js.map +2 -2
  75. package/dist/src/migrations/common/index.js +14 -63
  76. package/dist/src/migrations/common/index.js.map +2 -2
  77. package/dist/src/migrations/country/index.js +13 -48
  78. package/dist/src/migrations/country/index.js.map +2 -2
  79. package/dist/src/migrations/currency/index.js +14 -50
  80. package/dist/src/migrations/currency/index.js.map +2 -2
  81. package/dist/src/migrations/folder/index.js +104 -426
  82. package/dist/src/migrations/folder/index.js.map +2 -2
  83. package/dist/src/migrations/gamification/flashcard/index.js +96 -356
  84. package/dist/src/migrations/gamification/flashcard/index.js.map +2 -2
  85. package/dist/src/migrations/gamification/index.js +2 -8
  86. package/dist/src/migrations/gamification/index.js.map +1 -1
  87. package/dist/src/migrations/gamification/mcq/index.js +139 -553
  88. package/dist/src/migrations/gamification/mcq/index.js.map +2 -2
  89. package/dist/src/migrations/image/index.js +85 -353
  90. package/dist/src/migrations/image/index.js.map +2 -2
  91. package/dist/src/migrations/medecine/index.js +36 -132
  92. package/dist/src/migrations/medecine/index.js.map +2 -2
  93. package/dist/src/migrations/payment/index.js +94 -339
  94. package/dist/src/migrations/payment/index.js.map +2 -2
  95. package/dist/src/migrations/user/index.js +39 -331
  96. package/dist/src/migrations/user/index.js.map +2 -2
  97. package/dist/src/migrations/video/index.js +17 -345
  98. package/dist/src/migrations/video/index.js.map +2 -2
  99. package/dist/src/repositories/book/index.js +2 -997
  100. package/dist/src/repositories/book/index.js.map +2 -2
  101. package/dist/src/repositories/common/index.js +2 -439
  102. package/dist/src/repositories/common/index.js.map +2 -2
  103. package/dist/src/repositories/country/index.js +2 -89
  104. package/dist/src/repositories/country/index.js.map +2 -2
  105. package/dist/src/repositories/currency/index.js +2 -89
  106. package/dist/src/repositories/currency/index.js.map +2 -2
  107. package/dist/src/repositories/gamification/flashcard/index.js +2 -632
  108. package/dist/src/repositories/gamification/flashcard/index.js.map +2 -2
  109. package/dist/src/repositories/gamification/index.js +2 -160
  110. package/dist/src/repositories/gamification/index.js.map +2 -2
  111. package/dist/src/repositories/gamification/mcq/index.js +2 -1017
  112. package/dist/src/repositories/gamification/mcq/index.js.map +2 -2
  113. package/dist/src/repositories/image/index.js +2 -800
  114. package/dist/src/repositories/image/index.js.map +2 -2
  115. package/dist/src/repositories/medecine/index.js +2 -243
  116. package/dist/src/repositories/medecine/index.js.map +2 -2
  117. package/dist/src/repositories/payment/index.js +2 -560
  118. package/dist/src/repositories/payment/index.js.map +2 -2
  119. package/dist/src/repositories/user/index.js +2 -999
  120. package/dist/src/repositories/user/index.js.map +2 -2
  121. package/dist/src/repositories/video/index.js +2 -975
  122. package/dist/src/repositories/video/index.js.map +2 -2
  123. package/package.json +21 -21
  124. package/dist/shared/chunk-0swb1h0m.js +0 -51
  125. package/dist/shared/chunk-2wdazj26.js +0 -371
  126. package/dist/shared/chunk-6m3p1ht9.js +0 -606
  127. package/dist/shared/chunk-bkdccdhn.js +0 -105
  128. package/dist/shared/chunk-chan1evn.js +0 -72
  129. package/dist/shared/chunk-cv6xa6qy.js +0 -621
  130. package/dist/shared/chunk-cwxhwya1.js +0 -548
  131. package/dist/shared/chunk-efmap3y3.js +0 -345
  132. package/dist/shared/chunk-hkfj9j6w.js +0 -30
  133. package/dist/shared/chunk-m4mpkr4n.js +0 -34
  134. package/dist/shared/chunk-m9wkjs7v.js +0 -639
  135. package/dist/shared/chunk-mssxq87m.js +0 -195
  136. package/dist/shared/chunk-p12g6e7b.js +0 -38
  137. package/dist/shared/chunk-qbn9p4vj.js +0 -835
  138. package/dist/shared/chunk-r9hsk9fk.js +0 -20
  139. package/dist/shared/chunk-sk8z5zmk.js +0 -112
  140. package/dist/shared/chunk-tqd6ek7s.js +0 -86
  141. package/dist/shared/chunk-wg7xcq50.js +0 -38
@@ -1,548 +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/book/BookAuthorEntity.ts
20
- import { Column, Entity } from "typeorm";
21
- class BookAuthorEntity extends BaseEntity {
22
- }
23
- __legacyDecorateClassTS([
24
- Column({ name: "first_name", type: "varchar", length: 100 }),
25
- __legacyMetadataTS("design:type", String)
26
- ], BookAuthorEntity.prototype, "firstName", undefined);
27
- __legacyDecorateClassTS([
28
- Column({ name: "last_name", type: "varchar", length: 100 }),
29
- __legacyMetadataTS("design:type", String)
30
- ], BookAuthorEntity.prototype, "lastName", undefined);
31
- __legacyDecorateClassTS([
32
- Column({ name: "full_name", type: "varchar", length: 200, nullable: true }),
33
- __legacyMetadataTS("design:type", String)
34
- ], BookAuthorEntity.prototype, "fullName", undefined);
35
- __legacyDecorateClassTS([
36
- Column({ name: "bio", type: "text", nullable: true }),
37
- __legacyMetadataTS("design:type", String)
38
- ], BookAuthorEntity.prototype, "bio", undefined);
39
- __legacyDecorateClassTS([
40
- Column({ name: "birth_date", type: "date", nullable: true }),
41
- __legacyMetadataTS("design:type", String)
42
- ], BookAuthorEntity.prototype, "birthDate", undefined);
43
- __legacyDecorateClassTS([
44
- Column({ name: "death_date", type: "date", nullable: true }),
45
- __legacyMetadataTS("design:type", String)
46
- ], BookAuthorEntity.prototype, "deathDate", undefined);
47
- __legacyDecorateClassTS([
48
- Column({ name: "nationality", type: "varchar", length: 100, nullable: true }),
49
- __legacyMetadataTS("design:type", String)
50
- ], BookAuthorEntity.prototype, "nationality", undefined);
51
- BookAuthorEntity = __legacyDecorateClassTS([
52
- Entity({
53
- name: "book_authors"
54
- })
55
- ], BookAuthorEntity);
56
-
57
- // src/entities/book/BookPublisherEntity.ts
58
- import { Column as Column2, Entity as Entity2 } from "typeorm";
59
- class BookPublisherEntity extends BaseEntity {
60
- }
61
- __legacyDecorateClassTS([
62
- Column2({ name: "name", type: "varchar", length: 200 }),
63
- __legacyMetadataTS("design:type", String)
64
- ], BookPublisherEntity.prototype, "name", undefined);
65
- __legacyDecorateClassTS([
66
- Column2({ name: "address", type: "text", nullable: true }),
67
- __legacyMetadataTS("design:type", String)
68
- ], BookPublisherEntity.prototype, "address", undefined);
69
- __legacyDecorateClassTS([
70
- Column2({ name: "website", type: "varchar", length: 255, nullable: true }),
71
- __legacyMetadataTS("design:type", String)
72
- ], BookPublisherEntity.prototype, "website", undefined);
73
- __legacyDecorateClassTS([
74
- Column2({ name: "founded_year", type: "int", nullable: true }),
75
- __legacyMetadataTS("design:type", Number)
76
- ], BookPublisherEntity.prototype, "foundedYear", undefined);
77
- BookPublisherEntity = __legacyDecorateClassTS([
78
- Entity2({
79
- name: "book_publishers"
80
- })
81
- ], BookPublisherEntity);
82
-
83
- // src/entities/book/BookEntity.ts
84
- import { Column as Column3, Entity as Entity3, JoinColumn, JoinTable, ManyToMany, ManyToOne } from "typeorm";
85
- class BookEntity extends BaseEntity {
86
- }
87
- __legacyDecorateClassTS([
88
- Column3({ name: "title", type: "varchar", length: 500 }),
89
- __legacyMetadataTS("design:type", String)
90
- ], BookEntity.prototype, "title", undefined);
91
- __legacyDecorateClassTS([
92
- Column3({ name: "subtitle", type: "varchar", length: 500, nullable: true }),
93
- __legacyMetadataTS("design:type", String)
94
- ], BookEntity.prototype, "subtitle", undefined);
95
- __legacyDecorateClassTS([
96
- ManyToMany(() => BookAuthorEntity, {
97
- eager: false,
98
- cascade: ["insert", "update"]
99
- }),
100
- JoinTable({
101
- name: "books_authors",
102
- joinColumn: { name: "book_id", referencedColumnName: "id" },
103
- inverseJoinColumn: { name: "author_id", referencedColumnName: "id" }
104
- }),
105
- __legacyMetadataTS("design:type", Array)
106
- ], BookEntity.prototype, "authors", undefined);
107
- __legacyDecorateClassTS([
108
- Column3({ name: "isbn", type: "varchar", length: 13, nullable: true }),
109
- __legacyMetadataTS("design:type", String)
110
- ], BookEntity.prototype, "isbn", undefined);
111
- __legacyDecorateClassTS([
112
- Column3({ name: "isbn13", type: "varchar", length: 17, nullable: true }),
113
- __legacyMetadataTS("design:type", String)
114
- ], BookEntity.prototype, "isbn13", undefined);
115
- __legacyDecorateClassTS([
116
- ManyToOne(() => BookPublisherEntity, {
117
- nullable: true,
118
- eager: false,
119
- cascade: ["insert", "update"]
120
- }),
121
- JoinColumn({ name: "publisher_id" }),
122
- __legacyMetadataTS("design:type", typeof IPublisher === "undefined" ? Object : IPublisher)
123
- ], BookEntity.prototype, "publisher", undefined);
124
- __legacyDecorateClassTS([
125
- Column3({ name: "published_date", type: "date", nullable: true }),
126
- __legacyMetadataTS("design:type", String)
127
- ], BookEntity.prototype, "publishedDate", undefined);
128
- __legacyDecorateClassTS([
129
- Column3({ name: "description", type: "text", nullable: true }),
130
- __legacyMetadataTS("design:type", String)
131
- ], BookEntity.prototype, "description", undefined);
132
- __legacyDecorateClassTS([
133
- Column3({ name: "page_count", type: "int", nullable: true }),
134
- __legacyMetadataTS("design:type", Number)
135
- ], BookEntity.prototype, "pageCount", undefined);
136
- __legacyDecorateClassTS([
137
- ManyToOne(() => CategoryEntity, {
138
- nullable: true,
139
- eager: false,
140
- cascade: ["insert", "update"]
141
- }),
142
- JoinColumn({ name: "category_id" }),
143
- __legacyMetadataTS("design:type", typeof ICategory === "undefined" ? Object : ICategory)
144
- ], BookEntity.prototype, "category", undefined);
145
- __legacyDecorateClassTS([
146
- Column3({ name: "genres", type: "json", nullable: true }),
147
- __legacyMetadataTS("design:type", Array)
148
- ], BookEntity.prototype, "genres", undefined);
149
- __legacyDecorateClassTS([
150
- Column3({ name: "size", type: "bigint", nullable: true }),
151
- __legacyMetadataTS("design:type", Number)
152
- ], BookEntity.prototype, "size", undefined);
153
- __legacyDecorateClassTS([
154
- Column3({ name: "url", type: "text", nullable: true }),
155
- __legacyMetadataTS("design:type", String)
156
- ], BookEntity.prototype, "url", undefined);
157
- __legacyDecorateClassTS([
158
- Column3({ name: "cover_image", type: "text", nullable: true }),
159
- __legacyMetadataTS("design:type", String)
160
- ], BookEntity.prototype, "coverImage", undefined);
161
- __legacyDecorateClassTS([
162
- Column3({ name: "context", type: "varchar", length: 255, nullable: true }),
163
- __legacyMetadataTS("design:type", String)
164
- ], BookEntity.prototype, "context", undefined);
165
- __legacyDecorateClassTS([
166
- Column3({ name: "context_id", type: "varchar", length: 25, nullable: true }),
167
- __legacyMetadataTS("design:type", String)
168
- ], BookEntity.prototype, "contextId", undefined);
169
- __legacyDecorateClassTS([
170
- Column3({
171
- name: "average_rating",
172
- type: "decimal",
173
- precision: 3,
174
- scale: 2,
175
- nullable: true
176
- }),
177
- __legacyMetadataTS("design:type", Number)
178
- ], BookEntity.prototype, "averageRating", undefined);
179
- __legacyDecorateClassTS([
180
- Column3({ name: "ratings_count", type: "int", nullable: true }),
181
- __legacyMetadataTS("design:type", Number)
182
- ], BookEntity.prototype, "ratingsCount", undefined);
183
- __legacyDecorateClassTS([
184
- Column3({ name: "edition", type: "varchar", length: 100, nullable: true }),
185
- __legacyMetadataTS("design:type", String)
186
- ], BookEntity.prototype, "edition", undefined);
187
- __legacyDecorateClassTS([
188
- Column3({ name: "series", type: "varchar", length: 200, nullable: true }),
189
- __legacyMetadataTS("design:type", String)
190
- ], BookEntity.prototype, "series", undefined);
191
- __legacyDecorateClassTS([
192
- Column3({ name: "series_volume", type: "int", nullable: true }),
193
- __legacyMetadataTS("design:type", Number)
194
- ], BookEntity.prototype, "seriesVolume", undefined);
195
- __legacyDecorateClassTS([
196
- ManyToMany(() => TagEntity, { eager: false, cascade: ["insert", "update"] }),
197
- JoinTable({
198
- name: "books_tags",
199
- joinColumn: { name: "book_id", referencedColumnName: "id" },
200
- inverseJoinColumn: { name: "tag_id", referencedColumnName: "id" }
201
- }),
202
- __legacyMetadataTS("design:type", Array)
203
- ], BookEntity.prototype, "tags", undefined);
204
- __legacyDecorateClassTS([
205
- ManyToOne(() => StatusEntity, {
206
- nullable: true,
207
- eager: false,
208
- cascade: ["insert", "update"]
209
- }),
210
- JoinColumn({ name: "status_id" }),
211
- __legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
212
- ], BookEntity.prototype, "status", undefined);
213
- BookEntity = __legacyDecorateClassTS([
214
- Entity3({
215
- name: "books"
216
- })
217
- ], BookEntity);
218
-
219
- // src/entities/book/BookCommentEntity.ts
220
- import { Column as Column4, Entity as Entity4, JoinColumn as JoinColumn2, ManyToOne as ManyToOne2 } from "typeorm";
221
- class BookCommentEntity extends BaseEntity {
222
- }
223
- __legacyDecorateClassTS([
224
- ManyToOne2(() => BookEntity, {
225
- nullable: true,
226
- eager: false
227
- }),
228
- JoinColumn2({ name: "book_id" }),
229
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
230
- ], BookCommentEntity.prototype, "book", undefined);
231
- __legacyDecorateClassTS([
232
- Column4({ name: "book_id", type: "varchar", length: 25, nullable: true }),
233
- __legacyMetadataTS("design:type", String)
234
- ], BookCommentEntity.prototype, "bookId", undefined);
235
- __legacyDecorateClassTS([
236
- Column4({ name: "comment", type: "text" }),
237
- __legacyMetadataTS("design:type", String)
238
- ], BookCommentEntity.prototype, "comment", undefined);
239
- __legacyDecorateClassTS([
240
- Column4({ name: "commented_by", type: "varchar", length: 255, nullable: true }),
241
- __legacyMetadataTS("design:type", String)
242
- ], BookCommentEntity.prototype, "commentedBy", undefined);
243
- __legacyDecorateClassTS([
244
- Column4({ name: "commented_by_id", type: "varchar", length: 25, nullable: true }),
245
- __legacyMetadataTS("design:type", String)
246
- ], BookCommentEntity.prototype, "commentedById", undefined);
247
- __legacyDecorateClassTS([
248
- Column4({ name: "parent_comment_id", type: "varchar", length: 25, nullable: true }),
249
- __legacyMetadataTS("design:type", String)
250
- ], BookCommentEntity.prototype, "parentCommentId", undefined);
251
- BookCommentEntity = __legacyDecorateClassTS([
252
- Entity4({
253
- name: "books_comments"
254
- })
255
- ], BookCommentEntity);
256
-
257
- // src/entities/book/BookDislikedEntity.ts
258
- import { Column as Column5, Entity as Entity5, JoinColumn as JoinColumn3, ManyToOne as ManyToOne3 } from "typeorm";
259
- class BookDislikedEntity extends BaseEntity {
260
- }
261
- __legacyDecorateClassTS([
262
- ManyToOne3(() => BookEntity, {
263
- nullable: true,
264
- eager: false
265
- }),
266
- JoinColumn3({ name: "book_id" }),
267
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
268
- ], BookDislikedEntity.prototype, "book", undefined);
269
- __legacyDecorateClassTS([
270
- Column5({ name: "book_id", type: "varchar", length: 25, nullable: true }),
271
- __legacyMetadataTS("design:type", String)
272
- ], BookDislikedEntity.prototype, "bookId", undefined);
273
- __legacyDecorateClassTS([
274
- Column5({ name: "disliked_by", type: "varchar", length: 255, nullable: true }),
275
- __legacyMetadataTS("design:type", String)
276
- ], BookDislikedEntity.prototype, "dislikedBy", undefined);
277
- __legacyDecorateClassTS([
278
- Column5({ name: "disliked_by_id", type: "varchar", length: 25, nullable: true }),
279
- __legacyMetadataTS("design:type", String)
280
- ], BookDislikedEntity.prototype, "dislikedById", undefined);
281
- BookDislikedEntity = __legacyDecorateClassTS([
282
- Entity5({
283
- name: "books_disliked"
284
- })
285
- ], BookDislikedEntity);
286
-
287
- // src/entities/book/BookDownloadedEntity.ts
288
- import { Column as Column6, Entity as Entity6, JoinColumn as JoinColumn4, ManyToOne as ManyToOne4 } from "typeorm";
289
- class BookDownloadedEntity extends BaseEntity {
290
- }
291
- __legacyDecorateClassTS([
292
- ManyToOne4(() => BookEntity, {
293
- nullable: true,
294
- eager: false
295
- }),
296
- JoinColumn4({ name: "book_id" }),
297
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
298
- ], BookDownloadedEntity.prototype, "book", undefined);
299
- __legacyDecorateClassTS([
300
- Column6({ name: "book_id", type: "varchar", length: 25, nullable: true }),
301
- __legacyMetadataTS("design:type", String)
302
- ], BookDownloadedEntity.prototype, "bookId", undefined);
303
- __legacyDecorateClassTS([
304
- Column6({ name: "downloaded_by", type: "varchar", length: 255, nullable: true }),
305
- __legacyMetadataTS("design:type", String)
306
- ], BookDownloadedEntity.prototype, "downloadedBy", undefined);
307
- __legacyDecorateClassTS([
308
- Column6({ name: "downloaded_by_id", type: "varchar", length: 25, nullable: true }),
309
- __legacyMetadataTS("design:type", String)
310
- ], BookDownloadedEntity.prototype, "downloadedById", undefined);
311
- BookDownloadedEntity = __legacyDecorateClassTS([
312
- Entity6({
313
- name: "books_downloaded"
314
- })
315
- ], BookDownloadedEntity);
316
-
317
- // src/entities/book/BookLikedEntity.ts
318
- import { Column as Column7, Entity as Entity7, JoinColumn as JoinColumn5, ManyToOne as ManyToOne5 } from "typeorm";
319
- class BookLikedEntity extends BaseEntity {
320
- }
321
- __legacyDecorateClassTS([
322
- ManyToOne5(() => BookEntity, {
323
- nullable: true,
324
- eager: false
325
- }),
326
- JoinColumn5({ name: "book_id" }),
327
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
328
- ], BookLikedEntity.prototype, "book", undefined);
329
- __legacyDecorateClassTS([
330
- Column7({ name: "book_id", type: "varchar", length: 25, nullable: true }),
331
- __legacyMetadataTS("design:type", String)
332
- ], BookLikedEntity.prototype, "bookId", undefined);
333
- __legacyDecorateClassTS([
334
- Column7({ name: "liked_by", type: "varchar", length: 255, nullable: true }),
335
- __legacyMetadataTS("design:type", String)
336
- ], BookLikedEntity.prototype, "likedBy", undefined);
337
- __legacyDecorateClassTS([
338
- Column7({ name: "liked_by_id", type: "varchar", length: 25, nullable: true }),
339
- __legacyMetadataTS("design:type", String)
340
- ], BookLikedEntity.prototype, "likedById", undefined);
341
- BookLikedEntity = __legacyDecorateClassTS([
342
- Entity7({
343
- name: "books_liked"
344
- })
345
- ], BookLikedEntity);
346
-
347
- // src/entities/book/BookReportEntity.ts
348
- import { Column as Column8, Entity as Entity8, JoinColumn as JoinColumn6, ManyToOne as ManyToOne6 } from "typeorm";
349
- class BookReportEntity extends BaseEntity {
350
- }
351
- __legacyDecorateClassTS([
352
- ManyToOne6(() => BookEntity, {
353
- nullable: true,
354
- eager: false
355
- }),
356
- JoinColumn6({ name: "book_id" }),
357
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
358
- ], BookReportEntity.prototype, "book", undefined);
359
- __legacyDecorateClassTS([
360
- Column8({ name: "book_id", type: "varchar", length: 25, nullable: true }),
361
- __legacyMetadataTS("design:type", String)
362
- ], BookReportEntity.prototype, "bookId", undefined);
363
- __legacyDecorateClassTS([
364
- Column8({ name: "reason", type: "varchar", length: 255 }),
365
- __legacyMetadataTS("design:type", String)
366
- ], BookReportEntity.prototype, "reason", undefined);
367
- __legacyDecorateClassTS([
368
- Column8({ name: "description", type: "text", nullable: true }),
369
- __legacyMetadataTS("design:type", String)
370
- ], BookReportEntity.prototype, "description", undefined);
371
- __legacyDecorateClassTS([
372
- Column8({ name: "reported_by", type: "varchar", length: 255, nullable: true }),
373
- __legacyMetadataTS("design:type", String)
374
- ], BookReportEntity.prototype, "reportedBy", undefined);
375
- __legacyDecorateClassTS([
376
- Column8({ name: "reported_by_id", type: "varchar", length: 25, nullable: true }),
377
- __legacyMetadataTS("design:type", String)
378
- ], BookReportEntity.prototype, "reportedById", undefined);
379
- __legacyDecorateClassTS([
380
- ManyToOne6(() => StatusEntity, {
381
- nullable: true,
382
- eager: false,
383
- cascade: ["insert", "update"]
384
- }),
385
- JoinColumn6({ name: "status_id" }),
386
- __legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
387
- ], BookReportEntity.prototype, "status", undefined);
388
- BookReportEntity = __legacyDecorateClassTS([
389
- Entity8({
390
- name: "books_reports"
391
- })
392
- ], BookReportEntity);
393
-
394
- // src/entities/book/BookSavedEntity.ts
395
- import { Column as Column9, Entity as Entity9, JoinColumn as JoinColumn7, ManyToOne as ManyToOne7 } from "typeorm";
396
- class BookSavedEntity extends BaseEntity {
397
- }
398
- __legacyDecorateClassTS([
399
- ManyToOne7(() => BookEntity, {
400
- nullable: true,
401
- eager: false
402
- }),
403
- JoinColumn7({ name: "book_id" }),
404
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
405
- ], BookSavedEntity.prototype, "book", undefined);
406
- __legacyDecorateClassTS([
407
- Column9({ name: "book_id", type: "varchar", length: 25, nullable: true }),
408
- __legacyMetadataTS("design:type", String)
409
- ], BookSavedEntity.prototype, "bookId", undefined);
410
- __legacyDecorateClassTS([
411
- Column9({ name: "saved_by", type: "varchar", length: 255, nullable: true }),
412
- __legacyMetadataTS("design:type", String)
413
- ], BookSavedEntity.prototype, "savedBy", undefined);
414
- __legacyDecorateClassTS([
415
- Column9({ name: "saved_by_id", type: "varchar", length: 25, nullable: true }),
416
- __legacyMetadataTS("design:type", String)
417
- ], BookSavedEntity.prototype, "savedById", undefined);
418
- BookSavedEntity = __legacyDecorateClassTS([
419
- Entity9({
420
- name: "books_saved"
421
- })
422
- ], BookSavedEntity);
423
-
424
- // src/entities/book/BookSharedEntity.ts
425
- import { Column as Column10, Entity as Entity10, JoinColumn as JoinColumn8, ManyToOne as ManyToOne8 } from "typeorm";
426
- class BookSharedEntity extends BaseEntity {
427
- }
428
- __legacyDecorateClassTS([
429
- ManyToOne8(() => BookEntity, {
430
- nullable: true,
431
- eager: false
432
- }),
433
- JoinColumn8({ name: "book_id" }),
434
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
435
- ], BookSharedEntity.prototype, "book", undefined);
436
- __legacyDecorateClassTS([
437
- Column10({ name: "book_id", type: "varchar", length: 25, nullable: true }),
438
- __legacyMetadataTS("design:type", String)
439
- ], BookSharedEntity.prototype, "bookId", undefined);
440
- __legacyDecorateClassTS([
441
- Column10({ name: "shared_with", type: "varchar", length: 255, nullable: true }),
442
- __legacyMetadataTS("design:type", String)
443
- ], BookSharedEntity.prototype, "sharedWith", undefined);
444
- __legacyDecorateClassTS([
445
- Column10({ name: "shared_by_id", type: "varchar", length: 25, nullable: true }),
446
- __legacyMetadataTS("design:type", String)
447
- ], BookSharedEntity.prototype, "sharedById", undefined);
448
- __legacyDecorateClassTS([
449
- Column10({ name: "permission", type: "varchar", length: 50, nullable: true }),
450
- __legacyMetadataTS("design:type", String)
451
- ], BookSharedEntity.prototype, "permission", undefined);
452
- __legacyDecorateClassTS([
453
- Column10({ name: "expires_at", type: "timestamptz", nullable: true }),
454
- __legacyMetadataTS("design:type", String)
455
- ], BookSharedEntity.prototype, "expiresAt", undefined);
456
- BookSharedEntity = __legacyDecorateClassTS([
457
- Entity10({
458
- name: "books_shared"
459
- })
460
- ], BookSharedEntity);
461
-
462
- // src/entities/book/BookStatEntity.ts
463
- import { Column as Column11, Entity as Entity11, JoinColumn as JoinColumn9, ManyToOne as ManyToOne9 } from "typeorm";
464
- class BookStatEntity extends BaseEntity {
465
- }
466
- __legacyDecorateClassTS([
467
- ManyToOne9(() => BookEntity, {
468
- nullable: true,
469
- eager: false
470
- }),
471
- JoinColumn9({ name: "book_id" }),
472
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
473
- ], BookStatEntity.prototype, "book", undefined);
474
- __legacyDecorateClassTS([
475
- Column11({ name: "book_id", type: "varchar", length: 25, nullable: true }),
476
- __legacyMetadataTS("design:type", String)
477
- ], BookStatEntity.prototype, "bookId", undefined);
478
- __legacyDecorateClassTS([
479
- Column11({ name: "likes_count", type: "int", default: 0, nullable: true }),
480
- __legacyMetadataTS("design:type", Number)
481
- ], BookStatEntity.prototype, "likesCount", undefined);
482
- __legacyDecorateClassTS([
483
- Column11({ name: "dislikes_count", type: "int", default: 0, nullable: true }),
484
- __legacyMetadataTS("design:type", Number)
485
- ], BookStatEntity.prototype, "dislikesCount", undefined);
486
- __legacyDecorateClassTS([
487
- Column11({ name: "comments_count", type: "int", default: 0, nullable: true }),
488
- __legacyMetadataTS("design:type", Number)
489
- ], BookStatEntity.prototype, "commentsCount", undefined);
490
- __legacyDecorateClassTS([
491
- Column11({ name: "shares_count", type: "int", default: 0, nullable: true }),
492
- __legacyMetadataTS("design:type", Number)
493
- ], BookStatEntity.prototype, "sharesCount", undefined);
494
- __legacyDecorateClassTS([
495
- Column11({ name: "saves_count", type: "int", default: 0, nullable: true }),
496
- __legacyMetadataTS("design:type", Number)
497
- ], BookStatEntity.prototype, "savesCount", undefined);
498
- __legacyDecorateClassTS([
499
- Column11({ name: "downloads_count", type: "int", default: 0, nullable: true }),
500
- __legacyMetadataTS("design:type", Number)
501
- ], BookStatEntity.prototype, "downloadsCount", undefined);
502
- __legacyDecorateClassTS([
503
- Column11({ name: "views_count", type: "int", default: 0, nullable: true }),
504
- __legacyMetadataTS("design:type", Number)
505
- ], BookStatEntity.prototype, "viewsCount", undefined);
506
- __legacyDecorateClassTS([
507
- Column11({ name: "reports_count", type: "int", default: 0, nullable: true }),
508
- __legacyMetadataTS("design:type", Number)
509
- ], BookStatEntity.prototype, "reportsCount", undefined);
510
- BookStatEntity = __legacyDecorateClassTS([
511
- Entity11({
512
- name: "books_stats"
513
- })
514
- ], BookStatEntity);
515
-
516
- // src/entities/book/BookViewedEntity.ts
517
- import { Column as Column12, Entity as Entity12, JoinColumn as JoinColumn10, ManyToOne as ManyToOne10 } from "typeorm";
518
- class BookViewedEntity extends BaseEntity {
519
- }
520
- __legacyDecorateClassTS([
521
- ManyToOne10(() => BookEntity, {
522
- nullable: true,
523
- eager: false
524
- }),
525
- JoinColumn10({ name: "book_id" }),
526
- __legacyMetadataTS("design:type", typeof IBook === "undefined" ? Object : IBook)
527
- ], BookViewedEntity.prototype, "book", undefined);
528
- __legacyDecorateClassTS([
529
- Column12({ name: "book_id", type: "varchar", length: 25, nullable: true }),
530
- __legacyMetadataTS("design:type", String)
531
- ], BookViewedEntity.prototype, "bookId", undefined);
532
- __legacyDecorateClassTS([
533
- Column12({ name: "viewed_by", type: "varchar", length: 255, nullable: true }),
534
- __legacyMetadataTS("design:type", String)
535
- ], BookViewedEntity.prototype, "viewedBy", undefined);
536
- __legacyDecorateClassTS([
537
- Column12({ name: "viewed_by_id", type: "varchar", length: 25, nullable: true }),
538
- __legacyMetadataTS("design:type", String)
539
- ], BookViewedEntity.prototype, "viewedById", undefined);
540
- BookViewedEntity = __legacyDecorateClassTS([
541
- Entity12({
542
- name: "books_viewed"
543
- })
544
- ], BookViewedEntity);
545
-
546
- export { BookAuthorEntity, BookPublisherEntity, BookEntity, BookCommentEntity, BookDislikedEntity, BookDownloadedEntity, BookLikedEntity, BookReportEntity, BookSavedEntity, BookSharedEntity, BookStatEntity, BookViewedEntity };
547
-
548
- //# debugId=AF1636E95C4D45DF64756E2164756E21