@earbug/db-models 0.0.16 → 0.0.18

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.
@@ -1,253 +1,115 @@
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";
1
+ import * as Sequelize from 'sequelize';
2
+ import { DataTypes, Model, Optional } from 'sequelize';
3
+ import type { CanonArtistAlbumRelation, CanonArtistAlbumRelationId } from './CanonArtistAlbumRelation';
4
+ import type { CanonArtistImageHarvested, CanonArtistImageHarvestedId } from './CanonArtistImageHarvested';
5
+ import type { CanonArtistTrackRelation, CanonArtistTrackRelationId } from './CanonArtistTrackRelation';
6
+ import type { CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId } from './CanonToPlatformArtistRelation';
7
+ import type { CanonTrack, CanonTrackId } from './CanonTrack';
8
+ import type { MerchItem, MerchItemId } from './MerchItem';
9
+ import type { MerchOrchestration, MerchOrchestrationId } from './MerchOrchestration';
10
+ import type { NewsArticle, NewsArticleId } from './NewsArticle';
11
+ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
12
+ import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
28
13
 
29
14
  export interface CanonArtistAttributes {
30
- id: string;
31
15
  name: string;
32
16
  asciiName: string;
33
17
  description?: string;
18
+ id: string;
34
19
  hasPhoto: boolean;
35
20
  createDate: Date;
36
21
  updateDate: Date;
37
22
  hasThumbnailPhoto?: boolean;
38
23
  images?: object;
39
24
  lastImageHarvestAttempt?: Date;
40
- lastGenreHarvestAttempt?: Date;
41
- genreHarvestCount: number;
42
25
  merchHarvestDay?: number;
43
26
  newsHarvestDay?: number;
44
27
  harvestPopularity?: number;
28
+ lastGenreHarvestAttempt?: Date;
29
+ genreHarvestCount: number;
45
30
  }
46
31
 
47
32
  export type CanonArtistPk = "id";
48
33
  export type CanonArtistId = CanonArtist[CanonArtistPk];
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
- >;
34
+ export type CanonArtistOptionalAttributes = "description" | "id" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "harvestPopularity" | "lastGenreHarvestAttempt" | "genreHarvestCount";
35
+ export type CanonArtistCreationAttributes = Optional<CanonArtistAttributes, CanonArtistOptionalAttributes>;
66
36
 
67
- export class CanonArtist
68
- extends Model<CanonArtistAttributes, CanonArtistCreationAttributes>
69
- implements CanonArtistAttributes
70
- {
37
+ export class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreationAttributes> implements CanonArtistAttributes {
38
+ name!: string;
39
+ asciiName!: string;
40
+ description?: string;
71
41
  id!: string;
72
- name!: any;
73
- asciiName!: any;
74
- description?: any;
75
42
  hasPhoto!: boolean;
76
43
  createDate!: Date;
77
44
  updateDate!: Date;
78
45
  hasThumbnailPhoto?: boolean;
79
46
  images?: object;
80
47
  lastImageHarvestAttempt?: Date;
81
- lastGenreHarvestAttempt?: Date;
82
- genreHarvestCount!: number;
83
48
  merchHarvestDay?: number;
84
49
  newsHarvestDay?: number;
85
50
  harvestPopularity?: number;
51
+ lastGenreHarvestAttempt?: Date;
52
+ genreHarvestCount!: number;
86
53
 
87
54
  // CanonArtist hasMany CanonArtistAlbumRelation via canonArtistId
88
55
  canonArtistAlbumRelations!: CanonArtistAlbumRelation[];
89
56
  getCanonArtistAlbumRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
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
- >;
57
+ setCanonArtistAlbumRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
58
+ addCanonArtistAlbumRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
59
+ addCanonArtistAlbumRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
102
60
  createCanonArtistAlbumRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistAlbumRelation>;
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
- >;
61
+ removeCanonArtistAlbumRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
62
+ removeCanonArtistAlbumRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
63
+ hasCanonArtistAlbumRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
64
+ hasCanonArtistAlbumRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
119
65
  countCanonArtistAlbumRelations!: Sequelize.HasManyCountAssociationsMixin;
120
66
  // CanonArtist hasMany CanonArtistImageHarvested via canonArtistId
121
67
  canonArtistImageHarvesteds!: CanonArtistImageHarvested[];
122
68
  getCanonArtistImageHarvesteds!: Sequelize.HasManyGetAssociationsMixin<CanonArtistImageHarvested>;
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
- >;
69
+ setCanonArtistImageHarvesteds!: Sequelize.HasManySetAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
70
+ addCanonArtistImageHarvested!: Sequelize.HasManyAddAssociationMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
71
+ addCanonArtistImageHarvesteds!: Sequelize.HasManyAddAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
135
72
  createCanonArtistImageHarvested!: Sequelize.HasManyCreateAssociationMixin<CanonArtistImageHarvested>;
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
- >;
73
+ removeCanonArtistImageHarvested!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
74
+ removeCanonArtistImageHarvesteds!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
75
+ hasCanonArtistImageHarvested!: Sequelize.HasManyHasAssociationMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
76
+ hasCanonArtistImageHarvesteds!: Sequelize.HasManyHasAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
152
77
  countCanonArtistImageHarvesteds!: Sequelize.HasManyCountAssociationsMixin;
153
78
  // CanonArtist hasMany CanonArtistTrackRelation via canonArtistId
154
79
  canonArtistTrackRelations!: CanonArtistTrackRelation[];
155
80
  getCanonArtistTrackRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistTrackRelation>;
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
- >;
81
+ setCanonArtistTrackRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
82
+ addCanonArtistTrackRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
83
+ addCanonArtistTrackRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
168
84
  createCanonArtistTrackRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistTrackRelation>;
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
- >;
85
+ removeCanonArtistTrackRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
86
+ removeCanonArtistTrackRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
87
+ hasCanonArtistTrackRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
88
+ hasCanonArtistTrackRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
185
89
  countCanonArtistTrackRelations!: Sequelize.HasManyCountAssociationsMixin;
186
90
  // CanonArtist hasMany CanonToPlatformArtistRelation via canonArtistId
187
91
  canonToPlatformArtistRelations!: CanonToPlatformArtistRelation[];
188
92
  getCanonToPlatformArtistRelations!: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformArtistRelation>;
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
- >;
93
+ setCanonToPlatformArtistRelations!: Sequelize.HasManySetAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
94
+ addCanonToPlatformArtistRelation!: Sequelize.HasManyAddAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
95
+ addCanonToPlatformArtistRelations!: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
201
96
  createCanonToPlatformArtistRelation!: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformArtistRelation>;
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
- >;
97
+ removeCanonToPlatformArtistRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
98
+ removeCanonToPlatformArtistRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
99
+ hasCanonToPlatformArtistRelation!: Sequelize.HasManyHasAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
100
+ hasCanonToPlatformArtistRelations!: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
218
101
  countCanonToPlatformArtistRelations!: Sequelize.HasManyCountAssociationsMixin;
219
102
  // CanonArtist belongsToMany CanonTrack via canonArtistId and canonTrackId
220
103
  canonTrackIdCanonTrackCanonArtistTrackRelations!: CanonTrack[];
221
104
  getCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonTrack>;
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
- >;
105
+ setCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManySetAssociationsMixin<CanonTrack, CanonTrackId>;
106
+ addCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyAddAssociationMixin<CanonTrack, CanonTrackId>;
107
+ addCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyAddAssociationsMixin<CanonTrack, CanonTrackId>;
234
108
  createCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonTrack>;
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
- >;
109
+ removeCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonTrack, CanonTrackId>;
110
+ removeCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonTrack, CanonTrackId>;
111
+ hasCanonTrackIdCanonTrackCanonArtistTrackRelation!: Sequelize.BelongsToManyHasAssociationMixin<CanonTrack, CanonTrackId>;
112
+ hasCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyHasAssociationsMixin<CanonTrack, CanonTrackId>;
251
113
  countCanonTrackIdCanonTrackCanonArtistTrackRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
252
114
  // CanonArtist hasMany MerchItem via canonArtistId
253
115
  merchItems!: MerchItem[];
@@ -256,251 +118,167 @@ export class CanonArtist
256
118
  addMerchItem!: Sequelize.HasManyAddAssociationMixin<MerchItem, MerchItemId>;
257
119
  addMerchItems!: Sequelize.HasManyAddAssociationsMixin<MerchItem, MerchItemId>;
258
120
  createMerchItem!: Sequelize.HasManyCreateAssociationMixin<MerchItem>;
259
- removeMerchItem!: Sequelize.HasManyRemoveAssociationMixin<
260
- MerchItem,
261
- MerchItemId
262
- >;
263
- removeMerchItems!: Sequelize.HasManyRemoveAssociationsMixin<
264
- MerchItem,
265
- MerchItemId
266
- >;
121
+ removeMerchItem!: Sequelize.HasManyRemoveAssociationMixin<MerchItem, MerchItemId>;
122
+ removeMerchItems!: Sequelize.HasManyRemoveAssociationsMixin<MerchItem, MerchItemId>;
267
123
  hasMerchItem!: Sequelize.HasManyHasAssociationMixin<MerchItem, MerchItemId>;
268
124
  hasMerchItems!: Sequelize.HasManyHasAssociationsMixin<MerchItem, MerchItemId>;
269
125
  countMerchItems!: Sequelize.HasManyCountAssociationsMixin;
270
-
271
126
  // CanonArtist hasMany MerchOrchestration via canonArtistId
272
127
  merchOrchestrations!: MerchOrchestration[];
273
128
  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
- >;
129
+ setMerchOrchestrations!: Sequelize.HasManySetAssociationsMixin<MerchOrchestration, MerchOrchestrationId>;
130
+ addMerchOrchestration!: Sequelize.HasManyAddAssociationMixin<MerchOrchestration, MerchOrchestrationId>;
131
+ addMerchOrchestrations!: Sequelize.HasManyAddAssociationsMixin<MerchOrchestration, MerchOrchestrationId>;
286
132
  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
- >;
133
+ removeMerchOrchestration!: Sequelize.HasManyRemoveAssociationMixin<MerchOrchestration, MerchOrchestrationId>;
134
+ removeMerchOrchestrations!: Sequelize.HasManyRemoveAssociationsMixin<MerchOrchestration, MerchOrchestrationId>;
135
+ hasMerchOrchestration!: Sequelize.HasManyHasAssociationMixin<MerchOrchestration, MerchOrchestrationId>;
136
+ hasMerchOrchestrations!: Sequelize.HasManyHasAssociationsMixin<MerchOrchestration, MerchOrchestrationId>;
303
137
  countMerchOrchestrations!: Sequelize.HasManyCountAssociationsMixin;
304
-
305
138
  // CanonArtist hasMany NewsArticle via canonArtistId
306
139
  newsArticles!: NewsArticle[];
307
140
  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
- >;
141
+ setNewsArticles!: Sequelize.HasManySetAssociationsMixin<NewsArticle, NewsArticleId>;
142
+ addNewsArticle!: Sequelize.HasManyAddAssociationMixin<NewsArticle, NewsArticleId>;
143
+ addNewsArticles!: Sequelize.HasManyAddAssociationsMixin<NewsArticle, NewsArticleId>;
320
144
  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
- >;
145
+ removeNewsArticle!: Sequelize.HasManyRemoveAssociationMixin<NewsArticle, NewsArticleId>;
146
+ removeNewsArticles!: Sequelize.HasManyRemoveAssociationsMixin<NewsArticle, NewsArticleId>;
147
+ hasNewsArticle!: Sequelize.HasManyHasAssociationMixin<NewsArticle, NewsArticleId>;
148
+ hasNewsArticles!: Sequelize.HasManyHasAssociationsMixin<NewsArticle, NewsArticleId>;
337
149
  countNewsArticles!: Sequelize.HasManyCountAssociationsMixin;
338
150
  // CanonArtist belongsToMany PlatformAlbum via canonArtistId and canonAlbumId
339
151
  canonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: PlatformAlbum[];
340
152
  getCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
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
- >;
153
+ setCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
154
+ addCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
155
+ addCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
353
156
  createCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
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
- >;
157
+ removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
158
+ removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
159
+ hasCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
160
+ hasCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
370
161
  countCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
371
162
  // CanonArtist belongsToMany PlatformArtist via canonArtistId and platformArtistId
372
163
  platformArtistIdPlatformArtists!: PlatformArtist[];
373
164
  getPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
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
- >;
165
+ setPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
166
+ addPlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
167
+ addPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
386
168
  createPlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
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
- >;
169
+ removePlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
170
+ removePlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
171
+ hasPlatformArtistIdPlatformArtist!: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
172
+ hasPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
403
173
  countPlatformArtistIdPlatformArtists!: Sequelize.BelongsToManyCountAssociationsMixin;
404
174
 
405
175
  static initModel(sequelize: Sequelize.Sequelize): typeof CanonArtist {
406
- return CanonArtist.init(
176
+ return CanonArtist.init({
177
+ name: {
178
+ type: DataTypes.TEXT,
179
+ allowNull: false
180
+ },
181
+ asciiName: {
182
+ type: DataTypes.TEXT,
183
+ allowNull: false,
184
+ field: 'ascii_name'
185
+ },
186
+ description: {
187
+ type: DataTypes.TEXT,
188
+ allowNull: true
189
+ },
190
+ id: {
191
+ type: DataTypes.UUID,
192
+ allowNull: false,
193
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
194
+ primaryKey: true
195
+ },
196
+ hasPhoto: {
197
+ type: DataTypes.BOOLEAN,
198
+ allowNull: false,
199
+ defaultValue: false,
200
+ field: 'has_photo'
201
+ },
202
+ createDate: {
203
+ type: DataTypes.DATE,
204
+ allowNull: false,
205
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
206
+ field: 'create_date'
207
+ },
208
+ updateDate: {
209
+ type: DataTypes.DATE,
210
+ allowNull: false,
211
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
212
+ field: 'update_date'
213
+ },
214
+ hasThumbnailPhoto: {
215
+ type: DataTypes.BOOLEAN,
216
+ allowNull: true,
217
+ defaultValue: false,
218
+ field: 'has_thumbnail_photo'
219
+ },
220
+ images: {
221
+ type: DataTypes.JSONB,
222
+ allowNull: true
223
+ },
224
+ lastImageHarvestAttempt: {
225
+ type: DataTypes.DATE,
226
+ allowNull: true,
227
+ field: 'last_image_harvest_attempt'
228
+ },
229
+ merchHarvestDay: {
230
+ type: DataTypes.SMALLINT,
231
+ allowNull: true,
232
+ field: 'merch_harvest_day'
233
+ },
234
+ newsHarvestDay: {
235
+ type: DataTypes.SMALLINT,
236
+ allowNull: true,
237
+ field: 'news_harvest_day'
238
+ },
239
+ harvestPopularity: {
240
+ type: DataTypes.INTEGER,
241
+ allowNull: true,
242
+ field: 'harvest_popularity'
243
+ },
244
+ lastGenreHarvestAttempt: {
245
+ type: DataTypes.DATE,
246
+ allowNull: true,
247
+ field: 'last_genre_harvest_attempt'
248
+ },
249
+ genreHarvestCount: {
250
+ type: DataTypes.INTEGER,
251
+ allowNull: false,
252
+ defaultValue: 0,
253
+ field: 'genre_harvest_count'
254
+ }
255
+ }, {
256
+ sequelize,
257
+ tableName: 'canon_artist',
258
+ schema: 'eb',
259
+ timestamps: false,
260
+ indexes: [
261
+ {
262
+ name: "artist_name_idx",
263
+ unique: true,
264
+ fields: [
265
+ { name: "name" },
266
+ ]
267
+ },
407
268
  {
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
- },
269
+ name: "artist_pkey",
270
+ unique: true,
271
+ fields: [
272
+ { name: "id" },
273
+ ]
481
274
  },
482
275
  {
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
- ],
276
+ name: "eb_canon_artist_last_image_harvest_attempt",
277
+ fields: [
278
+ { name: "last_image_harvest_attempt" },
279
+ ]
503
280
  },
504
- );
281
+ ]
282
+ });
505
283
  }
506
284
  }