@earbug/db-models 0.0.60 → 0.0.63
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/.dockerignore +10 -0
- package/.github/workflows/publish.yaml +266 -19
- package/Dockerfile.generate +19 -0
- package/dist/AffinityRelationshipType.d.ts +2 -2
- package/dist/AffinityRelationshipType.js +6 -6
- package/dist/AppUser.d.ts +5 -5
- package/dist/AppUser.js +7 -7
- package/dist/AppUserDevice.d.ts +2 -2
- package/dist/AppUserDevice.js +6 -6
- package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
- package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
- package/dist/AppUserFollowRelation.d.ts +3 -3
- package/dist/AppUserFollowRelation.js +6 -6
- package/dist/AppUserPlatformRelation.d.ts +13 -13
- package/dist/AppUserPlatformRelation.js +25 -25
- package/dist/CanonAlbum.d.ts +5 -5
- package/dist/CanonAlbum.js +10 -10
- package/dist/CanonArtist.d.ts +5 -5
- package/dist/CanonArtist.js +11 -11
- package/dist/CanonGenre.d.ts +3 -3
- package/dist/CanonGenre.js +6 -6
- package/dist/CanonLabel.d.ts +2 -2
- package/dist/CanonLabel.js +6 -6
- package/dist/CanonMember.d.ts +3 -3
- package/dist/CanonMember.js +6 -6
- package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
- package/dist/CanonMemberExternalReferenceRelation.js +5 -5
- package/dist/CanonTrack.d.ts +5 -5
- package/dist/CanonTrack.js +11 -11
- package/dist/ConfigParam.d.ts +2 -2
- package/dist/ConfigParam.js +5 -5
- package/dist/ExternalReference.d.ts +2 -2
- package/dist/ExternalReference.js +5 -5
- package/dist/FeedContentType.d.ts +2 -2
- package/dist/FeedContentType.js +4 -4
- package/dist/GuestUser.d.ts +5 -5
- package/dist/GuestUser.js +13 -13
- package/dist/JukeboxAccessType.d.ts +2 -2
- package/dist/JukeboxAccessType.js +4 -4
- package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
- package/dist/JukeboxCanonGenreRelation.js +6 -6
- package/dist/JukeboxInvite.d.ts +3 -3
- package/dist/JukeboxInvite.js +6 -6
- package/dist/JukeboxQueueEntry.d.ts +9 -9
- package/dist/JukeboxQueueEntry.js +25 -25
- package/dist/JukeboxQueueMode.d.ts +2 -2
- package/dist/JukeboxQueueMode.js +4 -4
- package/dist/JukeboxSession.d.ts +9 -9
- package/dist/JukeboxSession.js +20 -20
- package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
- package/dist/JukeboxSessionArtistAffinity.js +6 -6
- package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
- package/dist/JukeboxSessionGenreAffinity.js +6 -6
- package/dist/JukeboxTerminationCondition.d.ts +2 -2
- package/dist/JukeboxTerminationCondition.js +4 -4
- package/dist/JukeboxType.d.ts +2 -2
- package/dist/JukeboxType.js +4 -4
- package/dist/JukeboxUser.d.ts +7 -7
- package/dist/JukeboxUser.js +20 -20
- package/dist/KnexMigrations.d.ts +3 -3
- package/dist/KnexMigrations.js +6 -6
- package/dist/KnexMigrationsLock.d.ts +3 -3
- package/dist/KnexMigrationsLock.js +5 -5
- package/dist/MerchItem.d.ts +3 -3
- package/dist/MerchItem.js +6 -6
- package/dist/MerchOrchestration.d.ts +3 -3
- package/dist/MerchOrchestration.js +6 -6
- package/dist/MerchPlatform.d.ts +2 -2
- package/dist/MerchPlatform.js +6 -6
- package/dist/MerchType.d.ts +2 -2
- package/dist/MerchType.js +4 -4
- package/dist/MetricsDaily.d.ts +3 -3
- package/dist/MetricsDaily.js +4 -4
- package/dist/NewsSite.d.ts +3 -3
- package/dist/NewsSite.js +6 -6
- package/dist/Notification.d.ts +13 -13
- package/dist/Notification.js +33 -33
- package/dist/Platform.d.ts +2 -2
- package/dist/Platform.js +7 -7
- package/dist/PlatformAlbum.d.ts +5 -5
- package/dist/PlatformAlbum.js +10 -10
- package/dist/PlatformArtist.d.ts +5 -5
- package/dist/PlatformArtist.js +10 -10
- package/dist/PlatformGenre.d.ts +2 -2
- package/dist/PlatformGenre.js +6 -6
- package/dist/PlatformTrack.d.ts +3 -3
- package/dist/PlatformTrack.js +6 -6
- package/dist/PlatformUserAlbum.d.ts +2 -2
- package/dist/PlatformUserAlbum.js +6 -6
- package/dist/PlatformUserAlbumTrack.d.ts +4 -4
- package/dist/PlatformUserAlbumTrack.js +11 -11
- package/dist/PlatformUserPlaylist.d.ts +5 -5
- package/dist/PlatformUserPlaylist.js +11 -11
- package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
- package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
- package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
- package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
- package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
- package/dist/PlatformUserPlaylistTrack.js +17 -17
- package/dist/PlaybackStatus.d.ts +2 -2
- package/dist/PlaybackStatus.js +4 -4
- package/dist/RadioShow.d.ts +3 -3
- package/dist/RadioShow.js +6 -6
- package/dist/RadioShowMedia.d.ts +3 -3
- package/dist/RadioShowMedia.js +6 -6
- package/dist/RadioShowPlacement.d.ts +3 -3
- package/dist/RadioShowPlacement.js +6 -6
- package/dist/RadioShowPublishRequests.d.ts +3 -3
- package/dist/RadioShowPublishRequests.js +6 -6
- package/dist/State.d.ts +2 -2
- package/dist/State.js +4 -4
- package/dist/UnmatchedAlbum.d.ts +2 -2
- package/dist/UnmatchedAlbum.js +6 -6
- package/dist/UnmatchedArtist.d.ts +2 -2
- package/dist/UnmatchedArtist.js +6 -6
- package/dist/UserAbuseReports.d.ts +7 -7
- package/dist/UserAbuseReports.js +18 -18
- package/dist/UserAffinity.d.ts +2 -2
- package/dist/UserAffinity.js +6 -6
- package/dist/UserArtistAffinity.d.ts +2 -2
- package/dist/UserArtistAffinity.js +6 -6
- package/dist/UserBookmarks.d.ts +3 -3
- package/dist/UserBookmarks.js +6 -6
- package/dist/UserComments.d.ts +5 -5
- package/dist/UserComments.js +12 -12
- package/dist/UserContacts.d.ts +3 -3
- package/dist/UserContacts.js +7 -7
- package/dist/UserEngagementFactor.d.ts +2 -2
- package/dist/UserEngagementFactor.js +6 -6
- package/dist/UserGenreAffinity.d.ts +2 -2
- package/dist/UserGenreAffinity.js +6 -6
- package/dist/UserLikes.d.ts +3 -3
- package/dist/UserLikes.js +6 -6
- package/dist/UserMessages.d.ts +5 -5
- package/dist/UserMessages.js +15 -15
- package/dist/Versus.d.ts +5 -5
- package/dist/Versus.js +11 -11
- package/dist/VersusCoCreator.d.ts +4 -4
- package/dist/VersusCoCreator.js +12 -12
- package/dist/VersusOption.d.ts +3 -3
- package/dist/VersusOption.js +6 -6
- package/dist/VersusPublishIssue.d.ts +3 -3
- package/dist/VersusPublishIssue.js +6 -6
- package/dist/VersusQuestion.d.ts +2 -2
- package/dist/VersusQuestion.js +6 -6
- package/dist/VersusVote.d.ts +2 -2
- package/dist/VersusVote.js +6 -6
- package/dist/init-models.d.ts +349 -3
- package/dist/init-models.js +905 -1
- package/models/AffinityRelationshipType.ts +8 -8
- package/models/AppUser.ts +12 -12
- package/models/AppUserDevice.ts +8 -8
- package/models/AppUserDeviceClassicBackup20260906.ts +66 -0
- package/models/AppUserFollowRelation.ts +9 -9
- package/models/AppUserPlatformRelation.ts +38 -38
- package/models/CanonAlbum.ts +15 -15
- package/models/CanonArtist.ts +16 -16
- package/models/CanonGenre.ts +9 -9
- package/models/CanonLabel.ts +8 -8
- package/models/CanonMember.ts +9 -9
- package/models/CanonMemberExternalReferenceRelation.ts +7 -7
- package/models/CanonTrack.ts +16 -16
- package/models/ConfigParam.ts +7 -7
- package/models/ExternalReference.ts +7 -7
- package/models/FeedContentType.ts +6 -6
- package/models/GuestUser.ts +18 -18
- package/models/JukeboxAccessType.ts +6 -6
- package/models/JukeboxCanonGenreRelation.ts +8 -8
- package/models/JukeboxInvite.ts +9 -9
- package/models/JukeboxQueueEntry.ts +34 -34
- package/models/JukeboxQueueMode.ts +6 -6
- package/models/JukeboxSession.ts +29 -29
- package/models/JukeboxSessionArtistAffinity.ts +8 -8
- package/models/JukeboxSessionGenreAffinity.ts +8 -8
- package/models/JukeboxTerminationCondition.ts +6 -6
- package/models/JukeboxType.ts +6 -6
- package/models/JukeboxUser.ts +27 -27
- package/models/KnexMigrations.ts +9 -9
- package/models/KnexMigrationsLock.ts +8 -8
- package/models/MerchItem.ts +9 -9
- package/models/MerchOrchestration.ts +9 -9
- package/models/MerchPlatform.ts +8 -8
- package/models/MerchType.ts +6 -6
- package/models/MetricsDaily.ts +7 -7
- package/models/NewsSite.ts +9 -9
- package/models/Notification.ts +46 -46
- package/models/Platform.ts +9 -9
- package/models/PlatformAlbum.ts +15 -15
- package/models/PlatformArtist.ts +15 -15
- package/models/PlatformGenre.ts +8 -8
- package/models/PlatformTrack.ts +9 -9
- package/models/PlatformUserAlbum.ts +8 -8
- package/models/PlatformUserAlbumTrack.ts +15 -15
- package/models/PlatformUserPlaylist.ts +16 -16
- package/models/PlatformUserPlaylistArtistAffinity.ts +16 -16
- package/models/PlatformUserPlaylistGenreAffinity.ts +8 -8
- package/models/PlatformUserPlaylistTrack.ts +24 -24
- package/models/PlaybackStatus.ts +6 -6
- package/models/RadioShow.ts +9 -9
- package/models/RadioShowMedia.ts +9 -9
- package/models/RadioShowPlacement.ts +9 -9
- package/models/RadioShowPublishRequests.ts +9 -9
- package/models/State.ts +6 -6
- package/models/UnmatchedAlbum.ts +8 -8
- package/models/UnmatchedArtist.ts +8 -8
- package/models/UserAbuseReports.ts +25 -25
- package/models/UserAffinity.ts +8 -8
- package/models/UserArtistAffinity.ts +8 -8
- package/models/UserBookmarks.ts +9 -9
- package/models/UserComments.ts +17 -17
- package/models/UserContacts.ts +10 -10
- package/models/UserEngagementFactor.ts +8 -8
- package/models/UserGenreAffinity.ts +8 -8
- package/models/UserLikes.ts +9 -9
- package/models/UserMessages.ts +20 -20
- package/models/Versus.ts +16 -16
- package/models/VersusCoCreator.ts +16 -16
- package/models/VersusOption.ts +9 -9
- package/models/VersusPublishIssue.ts +9 -9
- package/models/VersusQuestion.ts +8 -8
- package/models/VersusVote.ts +8 -8
- package/models/init-models.ts +1245 -0
- package/package.json +1 -1
- package/scripts/generate-and-upload.mjs +123 -0
- package/dist/CanonAlbumImageHarvested.d.ts +0 -30
- package/dist/CanonAlbumImageHarvested.js +0 -70
- package/dist/CanonArtistImageHarvested.d.ts +0 -30
- package/dist/CanonArtistImageHarvested.js +0 -70
- package/models/CanonAlbumImageHarvested.ts +0 -98
- package/models/CanonArtistImageHarvested.ts +0 -98
|
@@ -3,8 +3,8 @@ import { DataTypes, Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
4
|
|
|
5
5
|
export interface JukeboxQueueModeAttributes {
|
|
6
|
-
description: string;
|
|
7
6
|
id: number;
|
|
7
|
+
description: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export type JukeboxQueueModePk = "id";
|
|
@@ -12,8 +12,8 @@ export type JukeboxQueueModeId = JukeboxQueueMode[JukeboxQueueModePk];
|
|
|
12
12
|
export type JukeboxQueueModeCreationAttributes = JukeboxQueueModeAttributes;
|
|
13
13
|
|
|
14
14
|
export class JukeboxQueueMode extends Model<JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes> implements JukeboxQueueModeAttributes {
|
|
15
|
-
description!: string;
|
|
16
15
|
id!: number;
|
|
16
|
+
description!: string;
|
|
17
17
|
|
|
18
18
|
// JukeboxQueueMode hasMany JukeboxSession via jukeboxQueueModeId
|
|
19
19
|
jukeboxSessions!: JukeboxSession[];
|
|
@@ -30,16 +30,16 @@ export class JukeboxQueueMode extends Model<JukeboxQueueModeAttributes, JukeboxQ
|
|
|
30
30
|
|
|
31
31
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxQueueMode {
|
|
32
32
|
return JukeboxQueueMode.init({
|
|
33
|
-
description: {
|
|
34
|
-
type: DataTypes.TEXT,
|
|
35
|
-
allowNull: false
|
|
36
|
-
},
|
|
37
33
|
id: {
|
|
38
34
|
autoIncrement: true,
|
|
39
35
|
autoIncrementIdentity: true,
|
|
40
36
|
type: DataTypes.SMALLINT,
|
|
41
37
|
allowNull: false,
|
|
42
38
|
primaryKey: true
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
type: DataTypes.TEXT,
|
|
42
|
+
allowNull: false
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
45
|
sequelize,
|
package/models/JukeboxSession.ts
CHANGED
|
@@ -19,38 +19,38 @@ import type { UserComments, UserCommentsId } from './UserComments';
|
|
|
19
19
|
import type { UserLikes, UserLikesId } from './UserLikes';
|
|
20
20
|
|
|
21
21
|
export interface JukeboxSessionAttributes {
|
|
22
|
+
id: string;
|
|
22
23
|
typeId: number;
|
|
23
24
|
accessTypeId: number;
|
|
24
25
|
terminationConditionId: number;
|
|
25
26
|
jukeboxQueueModeId: number;
|
|
26
|
-
trackQueue?: string[];
|
|
27
|
-
stateMachineArn?: string;
|
|
28
|
-
id: string;
|
|
29
27
|
createdAt: Date;
|
|
30
28
|
updatedAt: Date;
|
|
31
|
-
description?: string;
|
|
32
29
|
jukeboxStatusId: number;
|
|
30
|
+
trackQueue?: string[];
|
|
31
|
+
description?: string;
|
|
32
|
+
stateMachineArn?: string;
|
|
33
33
|
durationMs: number;
|
|
34
34
|
pausedAt?: Date;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export type JukeboxSessionPk = "id";
|
|
38
38
|
export type JukeboxSessionId = JukeboxSession[JukeboxSessionPk];
|
|
39
|
-
export type JukeboxSessionOptionalAttributes = "
|
|
39
|
+
export type JukeboxSessionOptionalAttributes = "id" | "createdAt" | "updatedAt" | "jukeboxStatusId" | "trackQueue" | "description" | "stateMachineArn" | "durationMs" | "pausedAt";
|
|
40
40
|
export type JukeboxSessionCreationAttributes = Optional<JukeboxSessionAttributes, JukeboxSessionOptionalAttributes>;
|
|
41
41
|
|
|
42
42
|
export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessionCreationAttributes> implements JukeboxSessionAttributes {
|
|
43
|
+
id!: string;
|
|
43
44
|
typeId!: number;
|
|
44
45
|
accessTypeId!: number;
|
|
45
46
|
terminationConditionId!: number;
|
|
46
47
|
jukeboxQueueModeId!: number;
|
|
47
|
-
trackQueue?: string[];
|
|
48
|
-
stateMachineArn?: string;
|
|
49
|
-
id!: string;
|
|
50
48
|
createdAt!: Date;
|
|
51
49
|
updatedAt!: Date;
|
|
52
|
-
description?: string;
|
|
53
50
|
jukeboxStatusId!: number;
|
|
51
|
+
trackQueue?: string[];
|
|
52
|
+
description?: string;
|
|
53
|
+
stateMachineArn?: string;
|
|
54
54
|
durationMs!: number;
|
|
55
55
|
pausedAt?: Date;
|
|
56
56
|
|
|
@@ -226,6 +226,12 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
|
|
|
226
226
|
|
|
227
227
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxSession {
|
|
228
228
|
return JukeboxSession.init({
|
|
229
|
+
id: {
|
|
230
|
+
type: DataTypes.UUID,
|
|
231
|
+
allowNull: false,
|
|
232
|
+
defaultValue: DataTypes.UUIDV4,
|
|
233
|
+
primaryKey: true
|
|
234
|
+
},
|
|
229
235
|
typeId: {
|
|
230
236
|
type: DataTypes.SMALLINT,
|
|
231
237
|
allowNull: false,
|
|
@@ -262,22 +268,6 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
|
|
|
262
268
|
},
|
|
263
269
|
field: 'jukebox_queue_mode_id'
|
|
264
270
|
},
|
|
265
|
-
trackQueue: {
|
|
266
|
-
type: DataTypes.ARRAY(DataTypes.TEXT),
|
|
267
|
-
allowNull: true,
|
|
268
|
-
field: 'track_queue'
|
|
269
|
-
},
|
|
270
|
-
stateMachineArn: {
|
|
271
|
-
type: DataTypes.STRING(255),
|
|
272
|
-
allowNull: true,
|
|
273
|
-
field: 'state_machine_arn'
|
|
274
|
-
},
|
|
275
|
-
id: {
|
|
276
|
-
type: DataTypes.UUID,
|
|
277
|
-
allowNull: false,
|
|
278
|
-
defaultValue: DataTypes.UUIDV4,
|
|
279
|
-
primaryKey: true
|
|
280
|
-
},
|
|
281
271
|
createdAt: {
|
|
282
272
|
type: DataTypes.DATE,
|
|
283
273
|
allowNull: false,
|
|
@@ -290,10 +280,6 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
|
|
|
290
280
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
291
281
|
field: 'updated_at'
|
|
292
282
|
},
|
|
293
|
-
description: {
|
|
294
|
-
type: DataTypes.STRING(512),
|
|
295
|
-
allowNull: true
|
|
296
|
-
},
|
|
297
283
|
jukeboxStatusId: {
|
|
298
284
|
type: DataTypes.SMALLINT,
|
|
299
285
|
allowNull: false,
|
|
@@ -304,6 +290,20 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
|
|
|
304
290
|
},
|
|
305
291
|
field: 'jukebox_status_id'
|
|
306
292
|
},
|
|
293
|
+
trackQueue: {
|
|
294
|
+
type: DataTypes.ARRAY(DataTypes.TEXT),
|
|
295
|
+
allowNull: true,
|
|
296
|
+
field: 'track_queue'
|
|
297
|
+
},
|
|
298
|
+
description: {
|
|
299
|
+
type: DataTypes.STRING(512),
|
|
300
|
+
allowNull: true
|
|
301
|
+
},
|
|
302
|
+
stateMachineArn: {
|
|
303
|
+
type: DataTypes.STRING(255),
|
|
304
|
+
allowNull: true,
|
|
305
|
+
field: 'state_machine_arn'
|
|
306
|
+
},
|
|
307
307
|
durationMs: {
|
|
308
308
|
type: DataTypes.INTEGER,
|
|
309
309
|
allowNull: false,
|
|
@@ -5,11 +5,11 @@ import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
|
5
5
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
6
6
|
|
|
7
7
|
export interface JukeboxSessionArtistAffinityAttributes {
|
|
8
|
+
id: string;
|
|
8
9
|
jukeboxSessionId: string;
|
|
9
10
|
canonArtistId: string;
|
|
10
11
|
affinityTierId: number;
|
|
11
12
|
rank: number;
|
|
12
|
-
id: string;
|
|
13
13
|
createdAt: Date;
|
|
14
14
|
updatedAt: Date;
|
|
15
15
|
}
|
|
@@ -20,11 +20,11 @@ export type JukeboxSessionArtistAffinityOptionalAttributes = "id" | "createdAt"
|
|
|
20
20
|
export type JukeboxSessionArtistAffinityCreationAttributes = Optional<JukeboxSessionArtistAffinityAttributes, JukeboxSessionArtistAffinityOptionalAttributes>;
|
|
21
21
|
|
|
22
22
|
export class JukeboxSessionArtistAffinity extends Model<JukeboxSessionArtistAffinityAttributes, JukeboxSessionArtistAffinityCreationAttributes> implements JukeboxSessionArtistAffinityAttributes {
|
|
23
|
+
id!: string;
|
|
23
24
|
jukeboxSessionId!: string;
|
|
24
25
|
canonArtistId!: string;
|
|
25
26
|
affinityTierId!: number;
|
|
26
27
|
rank!: number;
|
|
27
|
-
id!: string;
|
|
28
28
|
createdAt!: Date;
|
|
29
29
|
updatedAt!: Date;
|
|
30
30
|
|
|
@@ -46,6 +46,12 @@ export class JukeboxSessionArtistAffinity extends Model<JukeboxSessionArtistAffi
|
|
|
46
46
|
|
|
47
47
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxSessionArtistAffinity {
|
|
48
48
|
return JukeboxSessionArtistAffinity.init({
|
|
49
|
+
id: {
|
|
50
|
+
type: DataTypes.UUID,
|
|
51
|
+
allowNull: false,
|
|
52
|
+
defaultValue: DataTypes.UUIDV4,
|
|
53
|
+
primaryKey: true
|
|
54
|
+
},
|
|
49
55
|
jukeboxSessionId: {
|
|
50
56
|
type: DataTypes.UUID,
|
|
51
57
|
allowNull: false,
|
|
@@ -79,12 +85,6 @@ export class JukeboxSessionArtistAffinity extends Model<JukeboxSessionArtistAffi
|
|
|
79
85
|
type: DataTypes.INTEGER,
|
|
80
86
|
allowNull: false
|
|
81
87
|
},
|
|
82
|
-
id: {
|
|
83
|
-
type: DataTypes.UUID,
|
|
84
|
-
allowNull: false,
|
|
85
|
-
defaultValue: DataTypes.UUIDV4,
|
|
86
|
-
primaryKey: true
|
|
87
|
-
},
|
|
88
88
|
createdAt: {
|
|
89
89
|
type: DataTypes.DATE,
|
|
90
90
|
allowNull: false,
|
|
@@ -5,11 +5,11 @@ import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
|
5
5
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
6
6
|
|
|
7
7
|
export interface JukeboxSessionGenreAffinityAttributes {
|
|
8
|
+
id: string;
|
|
8
9
|
jukeboxSessionId: string;
|
|
9
10
|
canonGenreId: string;
|
|
10
11
|
affinityTierId: number;
|
|
11
12
|
rank: number;
|
|
12
|
-
id: string;
|
|
13
13
|
createdAt: Date;
|
|
14
14
|
updatedAt: Date;
|
|
15
15
|
}
|
|
@@ -20,11 +20,11 @@ export type JukeboxSessionGenreAffinityOptionalAttributes = "id" | "createdAt" |
|
|
|
20
20
|
export type JukeboxSessionGenreAffinityCreationAttributes = Optional<JukeboxSessionGenreAffinityAttributes, JukeboxSessionGenreAffinityOptionalAttributes>;
|
|
21
21
|
|
|
22
22
|
export class JukeboxSessionGenreAffinity extends Model<JukeboxSessionGenreAffinityAttributes, JukeboxSessionGenreAffinityCreationAttributes> implements JukeboxSessionGenreAffinityAttributes {
|
|
23
|
+
id!: string;
|
|
23
24
|
jukeboxSessionId!: string;
|
|
24
25
|
canonGenreId!: string;
|
|
25
26
|
affinityTierId!: number;
|
|
26
27
|
rank!: number;
|
|
27
|
-
id!: string;
|
|
28
28
|
createdAt!: Date;
|
|
29
29
|
updatedAt!: Date;
|
|
30
30
|
|
|
@@ -46,6 +46,12 @@ export class JukeboxSessionGenreAffinity extends Model<JukeboxSessionGenreAffini
|
|
|
46
46
|
|
|
47
47
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxSessionGenreAffinity {
|
|
48
48
|
return JukeboxSessionGenreAffinity.init({
|
|
49
|
+
id: {
|
|
50
|
+
type: DataTypes.UUID,
|
|
51
|
+
allowNull: false,
|
|
52
|
+
defaultValue: DataTypes.UUIDV4,
|
|
53
|
+
primaryKey: true
|
|
54
|
+
},
|
|
49
55
|
jukeboxSessionId: {
|
|
50
56
|
type: DataTypes.UUID,
|
|
51
57
|
allowNull: false,
|
|
@@ -79,12 +85,6 @@ export class JukeboxSessionGenreAffinity extends Model<JukeboxSessionGenreAffini
|
|
|
79
85
|
type: DataTypes.INTEGER,
|
|
80
86
|
allowNull: false
|
|
81
87
|
},
|
|
82
|
-
id: {
|
|
83
|
-
type: DataTypes.UUID,
|
|
84
|
-
allowNull: false,
|
|
85
|
-
defaultValue: DataTypes.UUIDV4,
|
|
86
|
-
primaryKey: true
|
|
87
|
-
},
|
|
88
88
|
createdAt: {
|
|
89
89
|
type: DataTypes.DATE,
|
|
90
90
|
allowNull: false,
|
|
@@ -3,8 +3,8 @@ import { DataTypes, Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
4
|
|
|
5
5
|
export interface JukeboxTerminationConditionAttributes {
|
|
6
|
-
description: string;
|
|
7
6
|
id: number;
|
|
7
|
+
description: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export type JukeboxTerminationConditionPk = "id";
|
|
@@ -12,8 +12,8 @@ export type JukeboxTerminationConditionId = JukeboxTerminationCondition[JukeboxT
|
|
|
12
12
|
export type JukeboxTerminationConditionCreationAttributes = JukeboxTerminationConditionAttributes;
|
|
13
13
|
|
|
14
14
|
export class JukeboxTerminationCondition extends Model<JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes> implements JukeboxTerminationConditionAttributes {
|
|
15
|
-
description!: string;
|
|
16
15
|
id!: number;
|
|
16
|
+
description!: string;
|
|
17
17
|
|
|
18
18
|
// JukeboxTerminationCondition hasMany JukeboxSession via terminationConditionId
|
|
19
19
|
jukeboxSessions!: JukeboxSession[];
|
|
@@ -30,16 +30,16 @@ export class JukeboxTerminationCondition extends Model<JukeboxTerminationConditi
|
|
|
30
30
|
|
|
31
31
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxTerminationCondition {
|
|
32
32
|
return JukeboxTerminationCondition.init({
|
|
33
|
-
description: {
|
|
34
|
-
type: DataTypes.TEXT,
|
|
35
|
-
allowNull: false
|
|
36
|
-
},
|
|
37
33
|
id: {
|
|
38
34
|
autoIncrement: true,
|
|
39
35
|
autoIncrementIdentity: true,
|
|
40
36
|
type: DataTypes.SMALLINT,
|
|
41
37
|
allowNull: false,
|
|
42
38
|
primaryKey: true
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
type: DataTypes.TEXT,
|
|
42
|
+
allowNull: false
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
45
|
sequelize,
|
package/models/JukeboxType.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { DataTypes, Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
4
|
|
|
5
5
|
export interface JukeboxTypeAttributes {
|
|
6
|
-
description: string;
|
|
7
6
|
id: number;
|
|
7
|
+
description: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export type JukeboxTypePk = "id";
|
|
@@ -12,8 +12,8 @@ export type JukeboxTypeId = JukeboxType[JukeboxTypePk];
|
|
|
12
12
|
export type JukeboxTypeCreationAttributes = JukeboxTypeAttributes;
|
|
13
13
|
|
|
14
14
|
export class JukeboxType extends Model<JukeboxTypeAttributes, JukeboxTypeCreationAttributes> implements JukeboxTypeAttributes {
|
|
15
|
-
description!: string;
|
|
16
15
|
id!: number;
|
|
16
|
+
description!: string;
|
|
17
17
|
|
|
18
18
|
// JukeboxType hasMany JukeboxSession via typeId
|
|
19
19
|
jukeboxSessions!: JukeboxSession[];
|
|
@@ -30,16 +30,16 @@ export class JukeboxType extends Model<JukeboxTypeAttributes, JukeboxTypeCreatio
|
|
|
30
30
|
|
|
31
31
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxType {
|
|
32
32
|
return JukeboxType.init({
|
|
33
|
-
description: {
|
|
34
|
-
type: DataTypes.TEXT,
|
|
35
|
-
allowNull: false
|
|
36
|
-
},
|
|
37
33
|
id: {
|
|
38
34
|
autoIncrement: true,
|
|
39
35
|
autoIncrementIdentity: true,
|
|
40
36
|
type: DataTypes.SMALLINT,
|
|
41
37
|
allowNull: false,
|
|
42
38
|
primaryKey: true
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
type: DataTypes.TEXT,
|
|
42
|
+
allowNull: false
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
45
|
sequelize,
|
package/models/JukeboxUser.ts
CHANGED
|
@@ -7,34 +7,34 @@ import type { JukeboxUserType, JukeboxUserTypeId } from './JukeboxUserType';
|
|
|
7
7
|
import type { PauseStatusType, PauseStatusTypeId } from './PauseStatusType';
|
|
8
8
|
|
|
9
9
|
export interface JukeboxUserAttributes {
|
|
10
|
+
id: string;
|
|
10
11
|
jukeboxSessionId: string;
|
|
11
12
|
appUserId: string;
|
|
12
|
-
exitDate?: Date;
|
|
13
|
-
pausedQueueEntryId?: string;
|
|
14
|
-
id: string;
|
|
15
13
|
createdAt: Date;
|
|
16
14
|
updatedAt: Date;
|
|
17
15
|
enterDate: Date;
|
|
16
|
+
exitDate?: Date;
|
|
18
17
|
jukeboxUserTypeId: number;
|
|
19
18
|
pauseStatusTypeId: number;
|
|
19
|
+
pausedQueueEntryId?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export type JukeboxUserPk = "id";
|
|
23
23
|
export type JukeboxUserId = JukeboxUser[JukeboxUserPk];
|
|
24
|
-
export type JukeboxUserOptionalAttributes = "
|
|
24
|
+
export type JukeboxUserOptionalAttributes = "id" | "createdAt" | "updatedAt" | "enterDate" | "exitDate" | "jukeboxUserTypeId" | "pauseStatusTypeId" | "pausedQueueEntryId";
|
|
25
25
|
export type JukeboxUserCreationAttributes = Optional<JukeboxUserAttributes, JukeboxUserOptionalAttributes>;
|
|
26
26
|
|
|
27
27
|
export class JukeboxUser extends Model<JukeboxUserAttributes, JukeboxUserCreationAttributes> implements JukeboxUserAttributes {
|
|
28
|
+
id!: string;
|
|
28
29
|
jukeboxSessionId!: string;
|
|
29
30
|
appUserId!: string;
|
|
30
|
-
exitDate?: Date;
|
|
31
|
-
pausedQueueEntryId?: string;
|
|
32
|
-
id!: string;
|
|
33
31
|
createdAt!: Date;
|
|
34
32
|
updatedAt!: Date;
|
|
35
33
|
enterDate!: Date;
|
|
34
|
+
exitDate?: Date;
|
|
36
35
|
jukeboxUserTypeId!: number;
|
|
37
36
|
pauseStatusTypeId!: number;
|
|
37
|
+
pausedQueueEntryId?: string;
|
|
38
38
|
|
|
39
39
|
// JukeboxUser belongsTo AppUser via appUserId
|
|
40
40
|
appUser!: AppUser;
|
|
@@ -64,6 +64,12 @@ export class JukeboxUser extends Model<JukeboxUserAttributes, JukeboxUserCreatio
|
|
|
64
64
|
|
|
65
65
|
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxUser {
|
|
66
66
|
return JukeboxUser.init({
|
|
67
|
+
id: {
|
|
68
|
+
type: DataTypes.UUID,
|
|
69
|
+
allowNull: false,
|
|
70
|
+
defaultValue: DataTypes.UUIDV4,
|
|
71
|
+
primaryKey: true
|
|
72
|
+
},
|
|
67
73
|
jukeboxSessionId: {
|
|
68
74
|
type: DataTypes.UUID,
|
|
69
75
|
allowNull: false,
|
|
@@ -84,26 +90,6 @@ export class JukeboxUser extends Model<JukeboxUserAttributes, JukeboxUserCreatio
|
|
|
84
90
|
unique: "unique_jukebox_user_id",
|
|
85
91
|
field: 'app_user_id'
|
|
86
92
|
},
|
|
87
|
-
exitDate: {
|
|
88
|
-
type: DataTypes.DATE,
|
|
89
|
-
allowNull: true,
|
|
90
|
-
field: 'exit_date'
|
|
91
|
-
},
|
|
92
|
-
pausedQueueEntryId: {
|
|
93
|
-
type: DataTypes.UUID,
|
|
94
|
-
allowNull: true,
|
|
95
|
-
references: {
|
|
96
|
-
model: 'jukebox_queue_entry',
|
|
97
|
-
key: 'id'
|
|
98
|
-
},
|
|
99
|
-
field: 'paused_queue_entry_id'
|
|
100
|
-
},
|
|
101
|
-
id: {
|
|
102
|
-
type: DataTypes.UUID,
|
|
103
|
-
allowNull: false,
|
|
104
|
-
defaultValue: DataTypes.UUIDV4,
|
|
105
|
-
primaryKey: true
|
|
106
|
-
},
|
|
107
93
|
createdAt: {
|
|
108
94
|
type: DataTypes.DATE,
|
|
109
95
|
allowNull: false,
|
|
@@ -122,6 +108,11 @@ export class JukeboxUser extends Model<JukeboxUserAttributes, JukeboxUserCreatio
|
|
|
122
108
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
123
109
|
field: 'enter_date'
|
|
124
110
|
},
|
|
111
|
+
exitDate: {
|
|
112
|
+
type: DataTypes.DATE,
|
|
113
|
+
allowNull: true,
|
|
114
|
+
field: 'exit_date'
|
|
115
|
+
},
|
|
125
116
|
jukeboxUserTypeId: {
|
|
126
117
|
type: DataTypes.SMALLINT,
|
|
127
118
|
allowNull: false,
|
|
@@ -141,6 +132,15 @@ export class JukeboxUser extends Model<JukeboxUserAttributes, JukeboxUserCreatio
|
|
|
141
132
|
key: 'id'
|
|
142
133
|
},
|
|
143
134
|
field: 'pause_status_type_id'
|
|
135
|
+
},
|
|
136
|
+
pausedQueueEntryId: {
|
|
137
|
+
type: DataTypes.UUID,
|
|
138
|
+
allowNull: true,
|
|
139
|
+
references: {
|
|
140
|
+
model: 'jukebox_queue_entry',
|
|
141
|
+
key: 'id'
|
|
142
|
+
},
|
|
143
|
+
field: 'paused_queue_entry_id'
|
|
144
144
|
}
|
|
145
145
|
}, {
|
|
146
146
|
sequelize,
|
package/models/KnexMigrations.ts
CHANGED
|
@@ -2,26 +2,32 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
3
|
|
|
4
4
|
export interface KnexMigrationsAttributes {
|
|
5
|
+
id: number;
|
|
5
6
|
name?: string;
|
|
6
7
|
batch?: number;
|
|
7
8
|
migrationTime?: Date;
|
|
8
|
-
id: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export type KnexMigrationsPk = "id";
|
|
12
12
|
export type KnexMigrationsId = KnexMigrations[KnexMigrationsPk];
|
|
13
|
-
export type KnexMigrationsOptionalAttributes = "
|
|
13
|
+
export type KnexMigrationsOptionalAttributes = "id" | "name" | "batch" | "migrationTime";
|
|
14
14
|
export type KnexMigrationsCreationAttributes = Optional<KnexMigrationsAttributes, KnexMigrationsOptionalAttributes>;
|
|
15
15
|
|
|
16
16
|
export class KnexMigrations extends Model<KnexMigrationsAttributes, KnexMigrationsCreationAttributes> implements KnexMigrationsAttributes {
|
|
17
|
+
id!: number;
|
|
17
18
|
name?: string;
|
|
18
19
|
batch?: number;
|
|
19
20
|
migrationTime?: Date;
|
|
20
|
-
id!: number;
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
static initModel(sequelize: Sequelize.Sequelize): typeof KnexMigrations {
|
|
24
24
|
return KnexMigrations.init({
|
|
25
|
+
id: {
|
|
26
|
+
autoIncrement: true,
|
|
27
|
+
type: DataTypes.INTEGER,
|
|
28
|
+
allowNull: false,
|
|
29
|
+
primaryKey: true
|
|
30
|
+
},
|
|
25
31
|
name: {
|
|
26
32
|
type: DataTypes.STRING(255),
|
|
27
33
|
allowNull: true
|
|
@@ -34,12 +40,6 @@ export class KnexMigrations extends Model<KnexMigrationsAttributes, KnexMigratio
|
|
|
34
40
|
type: DataTypes.DATE,
|
|
35
41
|
allowNull: true,
|
|
36
42
|
field: 'migration_time'
|
|
37
|
-
},
|
|
38
|
-
id: {
|
|
39
|
-
autoIncrement: true,
|
|
40
|
-
type: DataTypes.INTEGER,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
primaryKey: true
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
45
|
sequelize,
|
|
@@ -2,32 +2,32 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
3
|
|
|
4
4
|
export interface KnexMigrationsLockAttributes {
|
|
5
|
-
isLocked?: number;
|
|
6
5
|
index: number;
|
|
6
|
+
isLocked?: number;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export type KnexMigrationsLockPk = "index";
|
|
10
10
|
export type KnexMigrationsLockId = KnexMigrationsLock[KnexMigrationsLockPk];
|
|
11
|
-
export type KnexMigrationsLockOptionalAttributes = "
|
|
11
|
+
export type KnexMigrationsLockOptionalAttributes = "index" | "isLocked";
|
|
12
12
|
export type KnexMigrationsLockCreationAttributes = Optional<KnexMigrationsLockAttributes, KnexMigrationsLockOptionalAttributes>;
|
|
13
13
|
|
|
14
14
|
export class KnexMigrationsLock extends Model<KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes> implements KnexMigrationsLockAttributes {
|
|
15
|
-
isLocked?: number;
|
|
16
15
|
index!: number;
|
|
16
|
+
isLocked?: number;
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
static initModel(sequelize: Sequelize.Sequelize): typeof KnexMigrationsLock {
|
|
20
20
|
return KnexMigrationsLock.init({
|
|
21
|
-
isLocked: {
|
|
22
|
-
type: DataTypes.INTEGER,
|
|
23
|
-
allowNull: true,
|
|
24
|
-
field: 'is_locked'
|
|
25
|
-
},
|
|
26
21
|
index: {
|
|
27
22
|
autoIncrement: true,
|
|
28
23
|
type: DataTypes.INTEGER,
|
|
29
24
|
allowNull: false,
|
|
30
25
|
primaryKey: true
|
|
26
|
+
},
|
|
27
|
+
isLocked: {
|
|
28
|
+
type: DataTypes.INTEGER,
|
|
29
|
+
allowNull: true,
|
|
30
|
+
field: 'is_locked'
|
|
31
31
|
}
|
|
32
32
|
}, {
|
|
33
33
|
sequelize,
|
package/models/MerchItem.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type { UserComments, UserCommentsId } from './UserComments';
|
|
|
8
8
|
import type { UserLikes, UserLikesId } from './UserLikes';
|
|
9
9
|
|
|
10
10
|
export interface MerchItemAttributes {
|
|
11
|
+
id: string;
|
|
11
12
|
canonArtistId: string;
|
|
12
13
|
merchTypeId: string;
|
|
13
14
|
merchPlatformId: string;
|
|
@@ -16,7 +17,6 @@ export interface MerchItemAttributes {
|
|
|
16
17
|
description: string;
|
|
17
18
|
photo?: string;
|
|
18
19
|
popularity?: number;
|
|
19
|
-
id: string;
|
|
20
20
|
inactive?: boolean;
|
|
21
21
|
createDate: Date;
|
|
22
22
|
updateDate: Date;
|
|
@@ -24,10 +24,11 @@ export interface MerchItemAttributes {
|
|
|
24
24
|
|
|
25
25
|
export type MerchItemPk = "id";
|
|
26
26
|
export type MerchItemId = MerchItem[MerchItemPk];
|
|
27
|
-
export type MerchItemOptionalAttributes = "
|
|
27
|
+
export type MerchItemOptionalAttributes = "id" | "photo" | "popularity" | "inactive" | "createDate" | "updateDate";
|
|
28
28
|
export type MerchItemCreationAttributes = Optional<MerchItemAttributes, MerchItemOptionalAttributes>;
|
|
29
29
|
|
|
30
30
|
export class MerchItem extends Model<MerchItemAttributes, MerchItemCreationAttributes> implements MerchItemAttributes {
|
|
31
|
+
id!: string;
|
|
31
32
|
canonArtistId!: string;
|
|
32
33
|
merchTypeId!: string;
|
|
33
34
|
merchPlatformId!: string;
|
|
@@ -36,7 +37,6 @@ export class MerchItem extends Model<MerchItemAttributes, MerchItemCreationAttri
|
|
|
36
37
|
description!: string;
|
|
37
38
|
photo?: string;
|
|
38
39
|
popularity?: number;
|
|
39
|
-
id!: string;
|
|
40
40
|
inactive?: boolean;
|
|
41
41
|
createDate!: Date;
|
|
42
42
|
updateDate!: Date;
|
|
@@ -95,6 +95,12 @@ export class MerchItem extends Model<MerchItemAttributes, MerchItemCreationAttri
|
|
|
95
95
|
|
|
96
96
|
static initModel(sequelize: Sequelize.Sequelize): typeof MerchItem {
|
|
97
97
|
return MerchItem.init({
|
|
98
|
+
id: {
|
|
99
|
+
type: DataTypes.UUID,
|
|
100
|
+
allowNull: false,
|
|
101
|
+
defaultValue: DataTypes.UUIDV4,
|
|
102
|
+
primaryKey: true
|
|
103
|
+
},
|
|
98
104
|
canonArtistId: {
|
|
99
105
|
type: DataTypes.UUID,
|
|
100
106
|
allowNull: false,
|
|
@@ -143,12 +149,6 @@ export class MerchItem extends Model<MerchItemAttributes, MerchItemCreationAttri
|
|
|
143
149
|
type: DataTypes.SMALLINT,
|
|
144
150
|
allowNull: true
|
|
145
151
|
},
|
|
146
|
-
id: {
|
|
147
|
-
type: DataTypes.UUID,
|
|
148
|
-
allowNull: false,
|
|
149
|
-
defaultValue: DataTypes.UUIDV4,
|
|
150
|
-
primaryKey: true
|
|
151
|
-
},
|
|
152
152
|
inactive: {
|
|
153
153
|
type: DataTypes.BOOLEAN,
|
|
154
154
|
allowNull: true,
|
|
@@ -5,28 +5,28 @@ import type { MerchPlatform, MerchPlatformId } from './MerchPlatform';
|
|
|
5
5
|
import type { MerchType, MerchTypeId } from './MerchType';
|
|
6
6
|
|
|
7
7
|
export interface MerchOrchestrationAttributes {
|
|
8
|
+
id: string;
|
|
8
9
|
canonArtistId: string;
|
|
9
10
|
merchTypeId: string;
|
|
10
11
|
merchPlatformId: string;
|
|
11
12
|
errorMessage?: string;
|
|
12
13
|
lastHarvestDate?: Date;
|
|
13
|
-
id: string;
|
|
14
14
|
createDate: Date;
|
|
15
15
|
updateDate: Date;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export type MerchOrchestrationPk = "id";
|
|
19
19
|
export type MerchOrchestrationId = MerchOrchestration[MerchOrchestrationPk];
|
|
20
|
-
export type MerchOrchestrationOptionalAttributes = "
|
|
20
|
+
export type MerchOrchestrationOptionalAttributes = "id" | "errorMessage" | "lastHarvestDate" | "createDate" | "updateDate";
|
|
21
21
|
export type MerchOrchestrationCreationAttributes = Optional<MerchOrchestrationAttributes, MerchOrchestrationOptionalAttributes>;
|
|
22
22
|
|
|
23
23
|
export class MerchOrchestration extends Model<MerchOrchestrationAttributes, MerchOrchestrationCreationAttributes> implements MerchOrchestrationAttributes {
|
|
24
|
+
id!: string;
|
|
24
25
|
canonArtistId!: string;
|
|
25
26
|
merchTypeId!: string;
|
|
26
27
|
merchPlatformId!: string;
|
|
27
28
|
errorMessage?: string;
|
|
28
29
|
lastHarvestDate?: Date;
|
|
29
|
-
id!: string;
|
|
30
30
|
createDate!: Date;
|
|
31
31
|
updateDate!: Date;
|
|
32
32
|
|
|
@@ -48,6 +48,12 @@ export class MerchOrchestration extends Model<MerchOrchestrationAttributes, Merc
|
|
|
48
48
|
|
|
49
49
|
static initModel(sequelize: Sequelize.Sequelize): typeof MerchOrchestration {
|
|
50
50
|
return MerchOrchestration.init({
|
|
51
|
+
id: {
|
|
52
|
+
type: DataTypes.UUID,
|
|
53
|
+
allowNull: false,
|
|
54
|
+
defaultValue: DataTypes.UUIDV4,
|
|
55
|
+
primaryKey: true
|
|
56
|
+
},
|
|
51
57
|
canonArtistId: {
|
|
52
58
|
type: DataTypes.UUID,
|
|
53
59
|
allowNull: false,
|
|
@@ -85,12 +91,6 @@ export class MerchOrchestration extends Model<MerchOrchestrationAttributes, Merc
|
|
|
85
91
|
allowNull: true,
|
|
86
92
|
field: 'last_harvest_date'
|
|
87
93
|
},
|
|
88
|
-
id: {
|
|
89
|
-
type: DataTypes.UUID,
|
|
90
|
-
allowNull: false,
|
|
91
|
-
defaultValue: DataTypes.UUIDV4,
|
|
92
|
-
primaryKey: true
|
|
93
|
-
},
|
|
94
94
|
createDate: {
|
|
95
95
|
type: DataTypes.DATE,
|
|
96
96
|
allowNull: false,
|