@earbug/db-models 0.0.14 → 0.0.16
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/CanonArtist.d.ts +56 -14
- package/dist/CanonArtist.js +35 -30
- package/dist/GuestUser.d.ts +42 -0
- package/dist/GuestUser.js +91 -0
- package/dist/JukeboxQueueEntry.d.ts +19 -5
- package/dist/JukeboxQueueEntry.js +36 -18
- package/dist/JukeboxSession.d.ts +12 -0
- package/dist/MerchItem.d.ts +50 -0
- package/dist/MerchItem.js +120 -0
- package/dist/MerchOrchestration.d.ts +42 -0
- package/dist/MerchOrchestration.js +104 -0
- package/dist/MerchPlatform.d.ts +45 -0
- package/dist/MerchPlatform.js +75 -0
- package/dist/MerchType.d.ts +43 -0
- package/dist/MerchType.js +71 -0
- package/dist/NewsArticle.js +5 -5
- package/dist/NewsPlatform.js +2 -2
- package/dist/PlatformTrack.d.ts +12 -0
- package/dist/RadioShow.js +6 -0
- package/dist/RadioShowGenres.d.ts +3 -1
- package/dist/RadioShowGenres.js +24 -0
- package/dist/init-models.d.ts +23 -2
- package/dist/init-models.js +54 -4
- package/models/CanonArtist.ts +435 -152
- package/models/GuestUser.ts +108 -0
- package/models/JukeboxQueueEntry.ts +57 -23
- package/models/JukeboxSession.ts +13 -0
- package/models/MerchItem.ts +146 -0
- package/models/MerchOrchestration.ts +122 -0
- package/models/MerchPlatform.ts +95 -0
- package/models/MerchType.ts +89 -0
- package/models/NewsArticle.ts +5 -6
- package/models/NewsPlatform.ts +2 -3
- package/models/PlatformTrack.ts +13 -0
- package/models/RadioShow.ts +6 -0
- package/models/RadioShowGenres.ts +27 -1
- package/models/init-models.ts +73 -2
- package/package.json +1 -1
- package/.env +0 -5
package/models/CanonArtist.ts
CHANGED
|
@@ -1,223 +1,506 @@
|
|
|
1
|
-
import * as Sequelize from
|
|
2
|
-
import { DataTypes, Model, Optional } from
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import type {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as Sequelize from "sequelize";
|
|
2
|
+
import { DataTypes, Model, Optional } from "sequelize";
|
|
3
|
+
import type {
|
|
4
|
+
CanonArtistAlbumRelation,
|
|
5
|
+
CanonArtistAlbumRelationId,
|
|
6
|
+
} from "./CanonArtistAlbumRelation";
|
|
7
|
+
import type {
|
|
8
|
+
CanonArtistImageHarvested,
|
|
9
|
+
CanonArtistImageHarvestedId,
|
|
10
|
+
} from "./CanonArtistImageHarvested";
|
|
11
|
+
import type {
|
|
12
|
+
CanonArtistTrackRelation,
|
|
13
|
+
CanonArtistTrackRelationId,
|
|
14
|
+
} from "./CanonArtistTrackRelation";
|
|
15
|
+
import type {
|
|
16
|
+
CanonToPlatformArtistRelation,
|
|
17
|
+
CanonToPlatformArtistRelationId,
|
|
18
|
+
} from "./CanonToPlatformArtistRelation";
|
|
19
|
+
import type { CanonTrack, CanonTrackId } from "./CanonTrack";
|
|
20
|
+
import type { MerchItem, MerchItemId } from "./MerchItem";
|
|
21
|
+
import type {
|
|
22
|
+
MerchOrchestration,
|
|
23
|
+
MerchOrchestrationId,
|
|
24
|
+
} from "./MerchOrchestration";
|
|
25
|
+
import type { NewsArticle, NewsArticleId } from "./NewsArticle";
|
|
26
|
+
import type { PlatformAlbum, PlatformAlbumId } from "./PlatformAlbum";
|
|
27
|
+
import type { PlatformArtist, PlatformArtistId } from "./PlatformArtist";
|
|
10
28
|
|
|
11
29
|
export interface CanonArtistAttributes {
|
|
30
|
+
id: string;
|
|
12
31
|
name: string;
|
|
13
32
|
asciiName: string;
|
|
14
33
|
description?: string;
|
|
15
|
-
id: string;
|
|
16
34
|
hasPhoto: boolean;
|
|
17
35
|
createDate: Date;
|
|
18
36
|
updateDate: Date;
|
|
19
37
|
hasThumbnailPhoto?: boolean;
|
|
20
38
|
images?: object;
|
|
21
39
|
lastImageHarvestAttempt?: Date;
|
|
40
|
+
lastGenreHarvestAttempt?: Date;
|
|
41
|
+
genreHarvestCount: number;
|
|
22
42
|
merchHarvestDay?: number;
|
|
23
43
|
newsHarvestDay?: number;
|
|
44
|
+
harvestPopularity?: number;
|
|
24
45
|
}
|
|
25
46
|
|
|
26
47
|
export type CanonArtistPk = "id";
|
|
27
48
|
export type CanonArtistId = CanonArtist[CanonArtistPk];
|
|
28
|
-
export type CanonArtistOptionalAttributes =
|
|
29
|
-
|
|
49
|
+
export type CanonArtistOptionalAttributes =
|
|
50
|
+
| "id"
|
|
51
|
+
| "description"
|
|
52
|
+
| "createDate"
|
|
53
|
+
| "updateDate"
|
|
54
|
+
| "hasThumbnailPhoto"
|
|
55
|
+
| "images"
|
|
56
|
+
| "lastImageHarvestAttempt"
|
|
57
|
+
| "lastGenreHarvestAttempt"
|
|
58
|
+
| "genreHarvestCount"
|
|
59
|
+
| "merchHarvestDay"
|
|
60
|
+
| "newsHarvestDay"
|
|
61
|
+
| "harvestPopularity";
|
|
62
|
+
export type CanonArtistCreationAttributes = Optional<
|
|
63
|
+
CanonArtistAttributes,
|
|
64
|
+
CanonArtistOptionalAttributes
|
|
65
|
+
>;
|
|
30
66
|
|
|
31
|
-
export class CanonArtist
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
67
|
+
export class CanonArtist
|
|
68
|
+
extends Model<CanonArtistAttributes, CanonArtistCreationAttributes>
|
|
69
|
+
implements CanonArtistAttributes
|
|
70
|
+
{
|
|
35
71
|
id!: string;
|
|
72
|
+
name!: any;
|
|
73
|
+
asciiName!: any;
|
|
74
|
+
description?: any;
|
|
36
75
|
hasPhoto!: boolean;
|
|
37
76
|
createDate!: Date;
|
|
38
77
|
updateDate!: Date;
|
|
39
78
|
hasThumbnailPhoto?: boolean;
|
|
40
79
|
images?: object;
|
|
41
80
|
lastImageHarvestAttempt?: Date;
|
|
81
|
+
lastGenreHarvestAttempt?: Date;
|
|
82
|
+
genreHarvestCount!: number;
|
|
42
83
|
merchHarvestDay?: number;
|
|
43
84
|
newsHarvestDay?: number;
|
|
85
|
+
harvestPopularity?: number;
|
|
44
86
|
|
|
45
87
|
// CanonArtist hasMany CanonArtistAlbumRelation via canonArtistId
|
|
46
88
|
canonArtistAlbumRelations!: CanonArtistAlbumRelation[];
|
|
47
89
|
getCanonArtistAlbumRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
|
|
48
|
-
setCanonArtistAlbumRelations!: Sequelize.HasManySetAssociationsMixin<
|
|
49
|
-
|
|
50
|
-
|
|
90
|
+
setCanonArtistAlbumRelations!: Sequelize.HasManySetAssociationsMixin<
|
|
91
|
+
CanonArtistAlbumRelation,
|
|
92
|
+
CanonArtistAlbumRelationId
|
|
93
|
+
>;
|
|
94
|
+
addCanonArtistAlbumRelation!: Sequelize.HasManyAddAssociationMixin<
|
|
95
|
+
CanonArtistAlbumRelation,
|
|
96
|
+
CanonArtistAlbumRelationId
|
|
97
|
+
>;
|
|
98
|
+
addCanonArtistAlbumRelations!: Sequelize.HasManyAddAssociationsMixin<
|
|
99
|
+
CanonArtistAlbumRelation,
|
|
100
|
+
CanonArtistAlbumRelationId
|
|
101
|
+
>;
|
|
51
102
|
createCanonArtistAlbumRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistAlbumRelation>;
|
|
52
|
-
removeCanonArtistAlbumRelation!: Sequelize.HasManyRemoveAssociationMixin<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
103
|
+
removeCanonArtistAlbumRelation!: Sequelize.HasManyRemoveAssociationMixin<
|
|
104
|
+
CanonArtistAlbumRelation,
|
|
105
|
+
CanonArtistAlbumRelationId
|
|
106
|
+
>;
|
|
107
|
+
removeCanonArtistAlbumRelations!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
108
|
+
CanonArtistAlbumRelation,
|
|
109
|
+
CanonArtistAlbumRelationId
|
|
110
|
+
>;
|
|
111
|
+
hasCanonArtistAlbumRelation!: Sequelize.HasManyHasAssociationMixin<
|
|
112
|
+
CanonArtistAlbumRelation,
|
|
113
|
+
CanonArtistAlbumRelationId
|
|
114
|
+
>;
|
|
115
|
+
hasCanonArtistAlbumRelations!: Sequelize.HasManyHasAssociationsMixin<
|
|
116
|
+
CanonArtistAlbumRelation,
|
|
117
|
+
CanonArtistAlbumRelationId
|
|
118
|
+
>;
|
|
56
119
|
countCanonArtistAlbumRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
57
120
|
// CanonArtist hasMany CanonArtistImageHarvested via canonArtistId
|
|
58
121
|
canonArtistImageHarvesteds!: CanonArtistImageHarvested[];
|
|
59
122
|
getCanonArtistImageHarvesteds!: Sequelize.HasManyGetAssociationsMixin<CanonArtistImageHarvested>;
|
|
60
|
-
setCanonArtistImageHarvesteds!: Sequelize.HasManySetAssociationsMixin<
|
|
61
|
-
|
|
62
|
-
|
|
123
|
+
setCanonArtistImageHarvesteds!: Sequelize.HasManySetAssociationsMixin<
|
|
124
|
+
CanonArtistImageHarvested,
|
|
125
|
+
CanonArtistImageHarvestedId
|
|
126
|
+
>;
|
|
127
|
+
addCanonArtistImageHarvested!: Sequelize.HasManyAddAssociationMixin<
|
|
128
|
+
CanonArtistImageHarvested,
|
|
129
|
+
CanonArtistImageHarvestedId
|
|
130
|
+
>;
|
|
131
|
+
addCanonArtistImageHarvesteds!: Sequelize.HasManyAddAssociationsMixin<
|
|
132
|
+
CanonArtistImageHarvested,
|
|
133
|
+
CanonArtistImageHarvestedId
|
|
134
|
+
>;
|
|
63
135
|
createCanonArtistImageHarvested!: Sequelize.HasManyCreateAssociationMixin<CanonArtistImageHarvested>;
|
|
64
|
-
removeCanonArtistImageHarvested!: Sequelize.HasManyRemoveAssociationMixin<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
136
|
+
removeCanonArtistImageHarvested!: Sequelize.HasManyRemoveAssociationMixin<
|
|
137
|
+
CanonArtistImageHarvested,
|
|
138
|
+
CanonArtistImageHarvestedId
|
|
139
|
+
>;
|
|
140
|
+
removeCanonArtistImageHarvesteds!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
141
|
+
CanonArtistImageHarvested,
|
|
142
|
+
CanonArtistImageHarvestedId
|
|
143
|
+
>;
|
|
144
|
+
hasCanonArtistImageHarvested!: Sequelize.HasManyHasAssociationMixin<
|
|
145
|
+
CanonArtistImageHarvested,
|
|
146
|
+
CanonArtistImageHarvestedId
|
|
147
|
+
>;
|
|
148
|
+
hasCanonArtistImageHarvesteds!: Sequelize.HasManyHasAssociationsMixin<
|
|
149
|
+
CanonArtistImageHarvested,
|
|
150
|
+
CanonArtistImageHarvestedId
|
|
151
|
+
>;
|
|
68
152
|
countCanonArtistImageHarvesteds!: Sequelize.HasManyCountAssociationsMixin;
|
|
69
153
|
// CanonArtist hasMany CanonArtistTrackRelation via canonArtistId
|
|
70
154
|
canonArtistTrackRelations!: CanonArtistTrackRelation[];
|
|
71
155
|
getCanonArtistTrackRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistTrackRelation>;
|
|
72
|
-
setCanonArtistTrackRelations!: Sequelize.HasManySetAssociationsMixin<
|
|
73
|
-
|
|
74
|
-
|
|
156
|
+
setCanonArtistTrackRelations!: Sequelize.HasManySetAssociationsMixin<
|
|
157
|
+
CanonArtistTrackRelation,
|
|
158
|
+
CanonArtistTrackRelationId
|
|
159
|
+
>;
|
|
160
|
+
addCanonArtistTrackRelation!: Sequelize.HasManyAddAssociationMixin<
|
|
161
|
+
CanonArtistTrackRelation,
|
|
162
|
+
CanonArtistTrackRelationId
|
|
163
|
+
>;
|
|
164
|
+
addCanonArtistTrackRelations!: Sequelize.HasManyAddAssociationsMixin<
|
|
165
|
+
CanonArtistTrackRelation,
|
|
166
|
+
CanonArtistTrackRelationId
|
|
167
|
+
>;
|
|
75
168
|
createCanonArtistTrackRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistTrackRelation>;
|
|
76
|
-
removeCanonArtistTrackRelation!: Sequelize.HasManyRemoveAssociationMixin<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
169
|
+
removeCanonArtistTrackRelation!: Sequelize.HasManyRemoveAssociationMixin<
|
|
170
|
+
CanonArtistTrackRelation,
|
|
171
|
+
CanonArtistTrackRelationId
|
|
172
|
+
>;
|
|
173
|
+
removeCanonArtistTrackRelations!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
174
|
+
CanonArtistTrackRelation,
|
|
175
|
+
CanonArtistTrackRelationId
|
|
176
|
+
>;
|
|
177
|
+
hasCanonArtistTrackRelation!: Sequelize.HasManyHasAssociationMixin<
|
|
178
|
+
CanonArtistTrackRelation,
|
|
179
|
+
CanonArtistTrackRelationId
|
|
180
|
+
>;
|
|
181
|
+
hasCanonArtistTrackRelations!: Sequelize.HasManyHasAssociationsMixin<
|
|
182
|
+
CanonArtistTrackRelation,
|
|
183
|
+
CanonArtistTrackRelationId
|
|
184
|
+
>;
|
|
80
185
|
countCanonArtistTrackRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
81
186
|
// CanonArtist hasMany CanonToPlatformArtistRelation via canonArtistId
|
|
82
187
|
canonToPlatformArtistRelations!: CanonToPlatformArtistRelation[];
|
|
83
188
|
getCanonToPlatformArtistRelations!: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformArtistRelation>;
|
|
84
|
-
setCanonToPlatformArtistRelations!: Sequelize.HasManySetAssociationsMixin<
|
|
85
|
-
|
|
86
|
-
|
|
189
|
+
setCanonToPlatformArtistRelations!: Sequelize.HasManySetAssociationsMixin<
|
|
190
|
+
CanonToPlatformArtistRelation,
|
|
191
|
+
CanonToPlatformArtistRelationId
|
|
192
|
+
>;
|
|
193
|
+
addCanonToPlatformArtistRelation!: Sequelize.HasManyAddAssociationMixin<
|
|
194
|
+
CanonToPlatformArtistRelation,
|
|
195
|
+
CanonToPlatformArtistRelationId
|
|
196
|
+
>;
|
|
197
|
+
addCanonToPlatformArtistRelations!: Sequelize.HasManyAddAssociationsMixin<
|
|
198
|
+
CanonToPlatformArtistRelation,
|
|
199
|
+
CanonToPlatformArtistRelationId
|
|
200
|
+
>;
|
|
87
201
|
createCanonToPlatformArtistRelation!: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformArtistRelation>;
|
|
88
|
-
removeCanonToPlatformArtistRelation!: Sequelize.HasManyRemoveAssociationMixin<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
202
|
+
removeCanonToPlatformArtistRelation!: Sequelize.HasManyRemoveAssociationMixin<
|
|
203
|
+
CanonToPlatformArtistRelation,
|
|
204
|
+
CanonToPlatformArtistRelationId
|
|
205
|
+
>;
|
|
206
|
+
removeCanonToPlatformArtistRelations!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
207
|
+
CanonToPlatformArtistRelation,
|
|
208
|
+
CanonToPlatformArtistRelationId
|
|
209
|
+
>;
|
|
210
|
+
hasCanonToPlatformArtistRelation!: Sequelize.HasManyHasAssociationMixin<
|
|
211
|
+
CanonToPlatformArtistRelation,
|
|
212
|
+
CanonToPlatformArtistRelationId
|
|
213
|
+
>;
|
|
214
|
+
hasCanonToPlatformArtistRelations!: Sequelize.HasManyHasAssociationsMixin<
|
|
215
|
+
CanonToPlatformArtistRelation,
|
|
216
|
+
CanonToPlatformArtistRelationId
|
|
217
|
+
>;
|
|
92
218
|
countCanonToPlatformArtistRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
93
219
|
// CanonArtist belongsToMany CanonTrack via canonArtistId and canonTrackId
|
|
94
220
|
canonTrackIdCanonTrackCanonArtistTrackRelations!: CanonTrack[];
|
|
95
221
|
getCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonTrack>;
|
|
96
|
-
setCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManySetAssociationsMixin<
|
|
97
|
-
|
|
98
|
-
|
|
222
|
+
setCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManySetAssociationsMixin<
|
|
223
|
+
CanonTrack,
|
|
224
|
+
CanonTrackId
|
|
225
|
+
>;
|
|
226
|
+
addCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyAddAssociationMixin<
|
|
227
|
+
CanonTrack,
|
|
228
|
+
CanonTrackId
|
|
229
|
+
>;
|
|
230
|
+
addCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyAddAssociationsMixin<
|
|
231
|
+
CanonTrack,
|
|
232
|
+
CanonTrackId
|
|
233
|
+
>;
|
|
99
234
|
createCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonTrack>;
|
|
100
|
-
removeCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
235
|
+
removeCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<
|
|
236
|
+
CanonTrack,
|
|
237
|
+
CanonTrackId
|
|
238
|
+
>;
|
|
239
|
+
removeCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<
|
|
240
|
+
CanonTrack,
|
|
241
|
+
CanonTrackId
|
|
242
|
+
>;
|
|
243
|
+
hasCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyHasAssociationMixin<
|
|
244
|
+
CanonTrack,
|
|
245
|
+
CanonTrackId
|
|
246
|
+
>;
|
|
247
|
+
hasCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyHasAssociationsMixin<
|
|
248
|
+
CanonTrack,
|
|
249
|
+
CanonTrackId
|
|
250
|
+
>;
|
|
104
251
|
countCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
252
|
+
// CanonArtist hasMany MerchItem via canonArtistId
|
|
253
|
+
merchItems!: MerchItem[];
|
|
254
|
+
getMerchItems!: Sequelize.HasManyGetAssociationsMixin<MerchItem>;
|
|
255
|
+
setMerchItems!: Sequelize.HasManySetAssociationsMixin<MerchItem, MerchItemId>;
|
|
256
|
+
addMerchItem!: Sequelize.HasManyAddAssociationMixin<MerchItem, MerchItemId>;
|
|
257
|
+
addMerchItems!: Sequelize.HasManyAddAssociationsMixin<MerchItem, MerchItemId>;
|
|
258
|
+
createMerchItem!: Sequelize.HasManyCreateAssociationMixin<MerchItem>;
|
|
259
|
+
removeMerchItem!: Sequelize.HasManyRemoveAssociationMixin<
|
|
260
|
+
MerchItem,
|
|
261
|
+
MerchItemId
|
|
262
|
+
>;
|
|
263
|
+
removeMerchItems!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
264
|
+
MerchItem,
|
|
265
|
+
MerchItemId
|
|
266
|
+
>;
|
|
267
|
+
hasMerchItem!: Sequelize.HasManyHasAssociationMixin<MerchItem, MerchItemId>;
|
|
268
|
+
hasMerchItems!: Sequelize.HasManyHasAssociationsMixin<MerchItem, MerchItemId>;
|
|
269
|
+
countMerchItems!: Sequelize.HasManyCountAssociationsMixin;
|
|
270
|
+
|
|
271
|
+
// CanonArtist hasMany MerchOrchestration via canonArtistId
|
|
272
|
+
merchOrchestrations!: MerchOrchestration[];
|
|
273
|
+
getMerchOrchestrations!: Sequelize.HasManyGetAssociationsMixin<MerchOrchestration>;
|
|
274
|
+
setMerchOrchestrations!: Sequelize.HasManySetAssociationsMixin<
|
|
275
|
+
MerchOrchestration,
|
|
276
|
+
MerchOrchestrationId
|
|
277
|
+
>;
|
|
278
|
+
addMerchOrchestration!: Sequelize.HasManyAddAssociationMixin<
|
|
279
|
+
MerchOrchestration,
|
|
280
|
+
MerchOrchestrationId
|
|
281
|
+
>;
|
|
282
|
+
addMerchOrchestrations!: Sequelize.HasManyAddAssociationsMixin<
|
|
283
|
+
MerchOrchestration,
|
|
284
|
+
MerchOrchestrationId
|
|
285
|
+
>;
|
|
286
|
+
createMerchOrchestration!: Sequelize.HasManyCreateAssociationMixin<MerchOrchestration>;
|
|
287
|
+
removeMerchOrchestration!: Sequelize.HasManyRemoveAssociationMixin<
|
|
288
|
+
MerchOrchestration,
|
|
289
|
+
MerchOrchestrationId
|
|
290
|
+
>;
|
|
291
|
+
removeMerchOrchestrations!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
292
|
+
MerchOrchestration,
|
|
293
|
+
MerchOrchestrationId
|
|
294
|
+
>;
|
|
295
|
+
hasMerchOrchestration!: Sequelize.HasManyHasAssociationMixin<
|
|
296
|
+
MerchOrchestration,
|
|
297
|
+
MerchOrchestrationId
|
|
298
|
+
>;
|
|
299
|
+
hasMerchOrchestrations!: Sequelize.HasManyHasAssociationsMixin<
|
|
300
|
+
MerchOrchestration,
|
|
301
|
+
MerchOrchestrationId
|
|
302
|
+
>;
|
|
303
|
+
countMerchOrchestrations!: Sequelize.HasManyCountAssociationsMixin;
|
|
304
|
+
|
|
305
|
+
// CanonArtist hasMany NewsArticle via canonArtistId
|
|
306
|
+
newsArticles!: NewsArticle[];
|
|
307
|
+
getNewsArticles!: Sequelize.HasManyGetAssociationsMixin<NewsArticle>;
|
|
308
|
+
setNewsArticles!: Sequelize.HasManySetAssociationsMixin<
|
|
309
|
+
NewsArticle,
|
|
310
|
+
NewsArticleId
|
|
311
|
+
>;
|
|
312
|
+
addNewsArticle!: Sequelize.HasManyAddAssociationMixin<
|
|
313
|
+
NewsArticle,
|
|
314
|
+
NewsArticleId
|
|
315
|
+
>;
|
|
316
|
+
addNewsArticles!: Sequelize.HasManyAddAssociationsMixin<
|
|
317
|
+
NewsArticle,
|
|
318
|
+
NewsArticleId
|
|
319
|
+
>;
|
|
320
|
+
createNewsArticle!: Sequelize.HasManyCreateAssociationMixin<NewsArticle>;
|
|
321
|
+
removeNewsArticle!: Sequelize.HasManyRemoveAssociationMixin<
|
|
322
|
+
NewsArticle,
|
|
323
|
+
NewsArticleId
|
|
324
|
+
>;
|
|
325
|
+
removeNewsArticles!: Sequelize.HasManyRemoveAssociationsMixin<
|
|
326
|
+
NewsArticle,
|
|
327
|
+
NewsArticleId
|
|
328
|
+
>;
|
|
329
|
+
hasNewsArticle!: Sequelize.HasManyHasAssociationMixin<
|
|
330
|
+
NewsArticle,
|
|
331
|
+
NewsArticleId
|
|
332
|
+
>;
|
|
333
|
+
hasNewsArticles!: Sequelize.HasManyHasAssociationsMixin<
|
|
334
|
+
NewsArticle,
|
|
335
|
+
NewsArticleId
|
|
336
|
+
>;
|
|
337
|
+
countNewsArticles!: Sequelize.HasManyCountAssociationsMixin;
|
|
105
338
|
// CanonArtist belongsToMany PlatformAlbum via canonArtistId and canonAlbumId
|
|
106
339
|
canonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: PlatformAlbum[];
|
|
107
340
|
getCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
|
|
108
|
-
setCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManySetAssociationsMixin<
|
|
109
|
-
|
|
110
|
-
|
|
341
|
+
setCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManySetAssociationsMixin<
|
|
342
|
+
PlatformAlbum,
|
|
343
|
+
PlatformAlbumId
|
|
344
|
+
>;
|
|
345
|
+
addCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyAddAssociationMixin<
|
|
346
|
+
PlatformAlbum,
|
|
347
|
+
PlatformAlbumId
|
|
348
|
+
>;
|
|
349
|
+
addCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyAddAssociationsMixin<
|
|
350
|
+
PlatformAlbum,
|
|
351
|
+
PlatformAlbumId
|
|
352
|
+
>;
|
|
111
353
|
createCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
|
|
112
|
-
removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
354
|
+
removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<
|
|
355
|
+
PlatformAlbum,
|
|
356
|
+
PlatformAlbumId
|
|
357
|
+
>;
|
|
358
|
+
removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<
|
|
359
|
+
PlatformAlbum,
|
|
360
|
+
PlatformAlbumId
|
|
361
|
+
>;
|
|
362
|
+
hasCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyHasAssociationMixin<
|
|
363
|
+
PlatformAlbum,
|
|
364
|
+
PlatformAlbumId
|
|
365
|
+
>;
|
|
366
|
+
hasCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyHasAssociationsMixin<
|
|
367
|
+
PlatformAlbum,
|
|
368
|
+
PlatformAlbumId
|
|
369
|
+
>;
|
|
116
370
|
countCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
117
371
|
// CanonArtist belongsToMany PlatformArtist via canonArtistId and platformArtistId
|
|
118
372
|
platformArtistIdPlatformArtists!: PlatformArtist[];
|
|
119
373
|
getPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
120
|
-
setPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManySetAssociationsMixin<
|
|
121
|
-
|
|
122
|
-
|
|
374
|
+
setPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManySetAssociationsMixin<
|
|
375
|
+
PlatformArtist,
|
|
376
|
+
PlatformArtistId
|
|
377
|
+
>;
|
|
378
|
+
addPlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyAddAssociationMixin<
|
|
379
|
+
PlatformArtist,
|
|
380
|
+
PlatformArtistId
|
|
381
|
+
>;
|
|
382
|
+
addPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyAddAssociationsMixin<
|
|
383
|
+
PlatformArtist,
|
|
384
|
+
PlatformArtistId
|
|
385
|
+
>;
|
|
123
386
|
createPlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
124
|
-
removePlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyRemoveAssociationMixin<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
387
|
+
removePlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyRemoveAssociationMixin<
|
|
388
|
+
PlatformArtist,
|
|
389
|
+
PlatformArtistId
|
|
390
|
+
>;
|
|
391
|
+
removePlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyRemoveAssociationsMixin<
|
|
392
|
+
PlatformArtist,
|
|
393
|
+
PlatformArtistId
|
|
394
|
+
>;
|
|
395
|
+
hasPlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyHasAssociationMixin<
|
|
396
|
+
PlatformArtist,
|
|
397
|
+
PlatformArtistId
|
|
398
|
+
>;
|
|
399
|
+
hasPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyHasAssociationsMixin<
|
|
400
|
+
PlatformArtist,
|
|
401
|
+
PlatformArtistId
|
|
402
|
+
>;
|
|
128
403
|
countPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
129
404
|
|
|
130
405
|
static initModel(sequelize: Sequelize.Sequelize): typeof CanonArtist {
|
|
131
|
-
return CanonArtist.init(
|
|
132
|
-
name: {
|
|
133
|
-
type: DataTypes.TEXT,
|
|
134
|
-
allowNull: false
|
|
135
|
-
},
|
|
136
|
-
asciiName: {
|
|
137
|
-
type: DataTypes.TEXT,
|
|
138
|
-
allowNull: false,
|
|
139
|
-
field: 'ascii_name'
|
|
140
|
-
},
|
|
141
|
-
description: {
|
|
142
|
-
type: DataTypes.TEXT,
|
|
143
|
-
allowNull: true
|
|
144
|
-
},
|
|
145
|
-
id: {
|
|
146
|
-
type: DataTypes.UUID,
|
|
147
|
-
allowNull: false,
|
|
148
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
149
|
-
primaryKey: true
|
|
150
|
-
},
|
|
151
|
-
hasPhoto: {
|
|
152
|
-
type: DataTypes.BOOLEAN,
|
|
153
|
-
allowNull: false,
|
|
154
|
-
defaultValue: false,
|
|
155
|
-
field: 'has_photo'
|
|
156
|
-
},
|
|
157
|
-
createDate: {
|
|
158
|
-
type: DataTypes.DATE,
|
|
159
|
-
allowNull: false,
|
|
160
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
161
|
-
field: 'create_date'
|
|
162
|
-
},
|
|
163
|
-
updateDate: {
|
|
164
|
-
type: DataTypes.DATE,
|
|
165
|
-
allowNull: false,
|
|
166
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
167
|
-
field: 'update_date'
|
|
168
|
-
},
|
|
169
|
-
hasThumbnailPhoto: {
|
|
170
|
-
type: DataTypes.BOOLEAN,
|
|
171
|
-
allowNull: true,
|
|
172
|
-
defaultValue: false,
|
|
173
|
-
field: 'has_thumbnail_photo'
|
|
174
|
-
},
|
|
175
|
-
images: {
|
|
176
|
-
type: DataTypes.JSONB,
|
|
177
|
-
allowNull: true
|
|
178
|
-
},
|
|
179
|
-
lastImageHarvestAttempt: {
|
|
180
|
-
type: DataTypes.DATE,
|
|
181
|
-
allowNull: true,
|
|
182
|
-
field: 'last_image_harvest_attempt'
|
|
183
|
-
},
|
|
184
|
-
merchHarvestDay: {
|
|
185
|
-
type: DataTypes.NUMBER,
|
|
186
|
-
allowNull: true,
|
|
187
|
-
field: 'merch_harvest_day'
|
|
188
|
-
},
|
|
189
|
-
newsHarvestDay: {
|
|
190
|
-
type: DataTypes.NUMBER,
|
|
191
|
-
allowNull: true,
|
|
192
|
-
field: 'news_harvest_day'
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
sequelize,
|
|
196
|
-
tableName: 'canon_artist',
|
|
197
|
-
schema: 'eb',
|
|
198
|
-
timestamps: false,
|
|
199
|
-
indexes: [
|
|
200
|
-
{
|
|
201
|
-
name: "artist_name_idx",
|
|
202
|
-
unique: true,
|
|
203
|
-
fields: [
|
|
204
|
-
{ name: "name" },
|
|
205
|
-
]
|
|
206
|
-
},
|
|
406
|
+
return CanonArtist.init(
|
|
207
407
|
{
|
|
208
|
-
name:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
408
|
+
name: {
|
|
409
|
+
type: DataTypes.TEXT,
|
|
410
|
+
allowNull: false,
|
|
411
|
+
},
|
|
412
|
+
asciiName: {
|
|
413
|
+
type: DataTypes.TEXT,
|
|
414
|
+
allowNull: false,
|
|
415
|
+
field: "ascii_name",
|
|
416
|
+
},
|
|
417
|
+
description: {
|
|
418
|
+
type: DataTypes.TEXT,
|
|
419
|
+
allowNull: true,
|
|
420
|
+
},
|
|
421
|
+
id: {
|
|
422
|
+
type: DataTypes.UUID,
|
|
423
|
+
allowNull: false,
|
|
424
|
+
defaultValue: Sequelize.Sequelize.fn("uuid_generate_v1"),
|
|
425
|
+
primaryKey: true,
|
|
426
|
+
},
|
|
427
|
+
hasPhoto: {
|
|
428
|
+
type: DataTypes.BOOLEAN,
|
|
429
|
+
allowNull: false,
|
|
430
|
+
defaultValue: false,
|
|
431
|
+
field: "has_photo",
|
|
432
|
+
},
|
|
433
|
+
createDate: {
|
|
434
|
+
type: DataTypes.DATE,
|
|
435
|
+
allowNull: false,
|
|
436
|
+
defaultValue: Sequelize.Sequelize.literal("CURRENT_TIMESTAMP"),
|
|
437
|
+
field: "create_date",
|
|
438
|
+
},
|
|
439
|
+
updateDate: {
|
|
440
|
+
type: DataTypes.DATE,
|
|
441
|
+
allowNull: false,
|
|
442
|
+
defaultValue: Sequelize.Sequelize.literal("CURRENT_TIMESTAMP"),
|
|
443
|
+
field: "update_date",
|
|
444
|
+
},
|
|
445
|
+
hasThumbnailPhoto: {
|
|
446
|
+
type: DataTypes.BOOLEAN,
|
|
447
|
+
allowNull: true,
|
|
448
|
+
defaultValue: false,
|
|
449
|
+
field: "has_thumbnail_photo",
|
|
450
|
+
},
|
|
451
|
+
images: {
|
|
452
|
+
type: DataTypes.JSONB,
|
|
453
|
+
allowNull: true,
|
|
454
|
+
},
|
|
455
|
+
lastImageHarvestAttempt: {
|
|
456
|
+
type: DataTypes.DATE,
|
|
457
|
+
allowNull: true,
|
|
458
|
+
field: "last_image_harvest_attempt",
|
|
459
|
+
},
|
|
460
|
+
lastGenreHarvestAttempt: {
|
|
461
|
+
type: DataTypes.DATE,
|
|
462
|
+
allowNull: true,
|
|
463
|
+
field: "last_genre_harvest_attempt",
|
|
464
|
+
},
|
|
465
|
+
genreHarvestCount: {
|
|
466
|
+
type: DataTypes.INTEGER,
|
|
467
|
+
allowNull: false,
|
|
468
|
+
defaultValue: 0,
|
|
469
|
+
field: "genre_harvest_count",
|
|
470
|
+
},
|
|
471
|
+
merchHarvestDay: {
|
|
472
|
+
type: DataTypes.SMALLINT,
|
|
473
|
+
allowNull: true,
|
|
474
|
+
field: "merch_harvest_day",
|
|
475
|
+
},
|
|
476
|
+
newsHarvestDay: {
|
|
477
|
+
type: DataTypes.SMALLINT,
|
|
478
|
+
allowNull: true,
|
|
479
|
+
field: "news_harvest_day",
|
|
480
|
+
},
|
|
213
481
|
},
|
|
214
482
|
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
483
|
+
sequelize,
|
|
484
|
+
tableName: "canon_artist",
|
|
485
|
+
schema: "eb",
|
|
486
|
+
timestamps: false,
|
|
487
|
+
indexes: [
|
|
488
|
+
{
|
|
489
|
+
name: "artist_name_idx",
|
|
490
|
+
unique: true,
|
|
491
|
+
fields: [{ name: "name" }],
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: "artist_pkey",
|
|
495
|
+
unique: true,
|
|
496
|
+
fields: [{ name: "id" }],
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
name: "eb_canon_artist_last_image_harvest_attempt",
|
|
500
|
+
fields: [{ name: "last_image_harvest_attempt" }],
|
|
501
|
+
},
|
|
502
|
+
],
|
|
219
503
|
},
|
|
220
|
-
|
|
221
|
-
});
|
|
504
|
+
);
|
|
222
505
|
}
|
|
223
506
|
}
|