@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
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class PlatformUserPlaylist extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return PlatformUserPlaylist.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
appUserId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -63,22 +69,16 @@ class PlatformUserPlaylist extends sequelize_1.Model {
|
|
|
63
69
|
type: sequelize_1.DataTypes.TEXT,
|
|
64
70
|
allowNull: true
|
|
65
71
|
},
|
|
66
|
-
snapshotId: {
|
|
67
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
68
|
-
allowNull: false,
|
|
69
|
-
field: 'snapshot_id'
|
|
70
|
-
},
|
|
71
|
-
id: {
|
|
72
|
-
type: sequelize_1.DataTypes.UUID,
|
|
73
|
-
allowNull: false,
|
|
74
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
75
|
-
primaryKey: true
|
|
76
|
-
},
|
|
77
72
|
public: {
|
|
78
73
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
79
74
|
allowNull: true,
|
|
80
75
|
defaultValue: false
|
|
81
76
|
},
|
|
77
|
+
snapshotId: {
|
|
78
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
79
|
+
allowNull: false,
|
|
80
|
+
field: 'snapshot_id'
|
|
81
|
+
},
|
|
82
82
|
collaborative: {
|
|
83
83
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
84
84
|
allowNull: false,
|
|
@@ -5,12 +5,12 @@ import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
|
5
5
|
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
6
6
|
export interface PlatformUserPlaylistArtistAffinityAttributes {
|
|
7
7
|
id: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
8
|
platformUserPlaylistId: string;
|
|
11
9
|
canonArtistId: string;
|
|
12
10
|
affinityTierId: number;
|
|
13
11
|
rank: number;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
14
|
}
|
|
15
15
|
export type PlatformUserPlaylistArtistAffinityPk = "id";
|
|
16
16
|
export type PlatformUserPlaylistArtistAffinityId = PlatformUserPlaylistArtistAffinity[PlatformUserPlaylistArtistAffinityPk];
|
|
@@ -18,12 +18,12 @@ export type PlatformUserPlaylistArtistAffinityOptionalAttributes = "id" | "creat
|
|
|
18
18
|
export type PlatformUserPlaylistArtistAffinityCreationAttributes = Optional<PlatformUserPlaylistArtistAffinityAttributes, PlatformUserPlaylistArtistAffinityOptionalAttributes>;
|
|
19
19
|
export declare class PlatformUserPlaylistArtistAffinity extends Model<PlatformUserPlaylistArtistAffinityAttributes, PlatformUserPlaylistArtistAffinityCreationAttributes> implements PlatformUserPlaylistArtistAffinityAttributes {
|
|
20
20
|
id: string;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
updatedAt: Date;
|
|
23
21
|
platformUserPlaylistId: string;
|
|
24
22
|
canonArtistId: string;
|
|
25
23
|
affinityTierId: number;
|
|
26
24
|
rank: number;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
27
|
affinityTier: AffinityTier;
|
|
28
28
|
getAffinityTier: Sequelize.BelongsToGetAssociationMixin<AffinityTier>;
|
|
29
29
|
setAffinityTier: Sequelize.BelongsToSetAssociationMixin<AffinityTier, AffinityTierId>;
|
|
@@ -35,18 +35,6 @@ class PlatformUserPlaylistArtistAffinity extends sequelize_1.Model {
|
|
|
35
35
|
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
36
|
primaryKey: true
|
|
37
37
|
},
|
|
38
|
-
createdAt: {
|
|
39
|
-
type: sequelize_1.DataTypes.DATE,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
42
|
-
field: 'created_at'
|
|
43
|
-
},
|
|
44
|
-
updatedAt: {
|
|
45
|
-
type: sequelize_1.DataTypes.DATE,
|
|
46
|
-
allowNull: false,
|
|
47
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
48
|
-
field: 'updated_at'
|
|
49
|
-
},
|
|
50
38
|
platformUserPlaylistId: {
|
|
51
39
|
type: sequelize_1.DataTypes.UUID,
|
|
52
40
|
allowNull: false,
|
|
@@ -79,6 +67,18 @@ class PlatformUserPlaylistArtistAffinity extends sequelize_1.Model {
|
|
|
79
67
|
rank: {
|
|
80
68
|
type: sequelize_1.DataTypes.INTEGER,
|
|
81
69
|
allowNull: false
|
|
70
|
+
},
|
|
71
|
+
createdAt: {
|
|
72
|
+
type: sequelize_1.DataTypes.DATE,
|
|
73
|
+
allowNull: false,
|
|
74
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
75
|
+
field: 'created_at'
|
|
76
|
+
},
|
|
77
|
+
updatedAt: {
|
|
78
|
+
type: sequelize_1.DataTypes.DATE,
|
|
79
|
+
allowNull: false,
|
|
80
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
81
|
+
field: 'updated_at'
|
|
82
82
|
}
|
|
83
83
|
}, {
|
|
84
84
|
sequelize,
|
|
@@ -4,11 +4,11 @@ import type { AffinityTier, AffinityTierId } from './AffinityTier';
|
|
|
4
4
|
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
5
5
|
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
6
6
|
export interface PlatformUserPlaylistGenreAffinityAttributes {
|
|
7
|
+
id: string;
|
|
7
8
|
platformUserPlaylistId: string;
|
|
8
9
|
canonGenreId: string;
|
|
9
10
|
affinityTierId: number;
|
|
10
11
|
rank: number;
|
|
11
|
-
id: string;
|
|
12
12
|
createdAt: Date;
|
|
13
13
|
updatedAt: Date;
|
|
14
14
|
}
|
|
@@ -17,11 +17,11 @@ export type PlatformUserPlaylistGenreAffinityId = PlatformUserPlaylistGenreAffin
|
|
|
17
17
|
export type PlatformUserPlaylistGenreAffinityOptionalAttributes = "id" | "createdAt" | "updatedAt";
|
|
18
18
|
export type PlatformUserPlaylistGenreAffinityCreationAttributes = Optional<PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityOptionalAttributes>;
|
|
19
19
|
export declare class PlatformUserPlaylistGenreAffinity extends Model<PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityCreationAttributes> implements PlatformUserPlaylistGenreAffinityAttributes {
|
|
20
|
+
id: string;
|
|
20
21
|
platformUserPlaylistId: string;
|
|
21
22
|
canonGenreId: string;
|
|
22
23
|
affinityTierId: number;
|
|
23
24
|
rank: number;
|
|
24
|
-
id: string;
|
|
25
25
|
createdAt: Date;
|
|
26
26
|
updatedAt: Date;
|
|
27
27
|
affinityTier: AffinityTier;
|
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class PlatformUserPlaylistGenreAffinity extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return PlatformUserPlaylistGenreAffinity.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
platformUserPlaylistId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -62,12 +68,6 @@ class PlatformUserPlaylistGenreAffinity extends sequelize_1.Model {
|
|
|
62
68
|
type: sequelize_1.DataTypes.INTEGER,
|
|
63
69
|
allowNull: false
|
|
64
70
|
},
|
|
65
|
-
id: {
|
|
66
|
-
type: sequelize_1.DataTypes.UUID,
|
|
67
|
-
allowNull: false,
|
|
68
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
69
|
-
primaryKey: true
|
|
70
|
-
},
|
|
71
71
|
createdAt: {
|
|
72
72
|
type: sequelize_1.DataTypes.DATE,
|
|
73
73
|
allowNull: false,
|
|
@@ -4,34 +4,34 @@ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
|
4
4
|
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
5
5
|
import type { State, StateId } from './State';
|
|
6
6
|
export interface PlatformUserPlaylistTrackAttributes {
|
|
7
|
+
id: string;
|
|
7
8
|
platformTrackId: string;
|
|
8
9
|
platformUserPlaylistId: string;
|
|
10
|
+
trackPosition: number;
|
|
9
11
|
addedDate?: Date;
|
|
10
12
|
addedByPlatformUserId?: string;
|
|
11
|
-
externalPlaylistTrackId: string;
|
|
12
|
-
id: string;
|
|
13
|
-
trackPosition: number;
|
|
14
13
|
isLocal: boolean;
|
|
15
14
|
createDate: Date;
|
|
16
15
|
updateDate: Date;
|
|
17
16
|
stateId: number;
|
|
17
|
+
externalPlaylistTrackId: string;
|
|
18
18
|
}
|
|
19
19
|
export type PlatformUserPlaylistTrackPk = "id";
|
|
20
20
|
export type PlatformUserPlaylistTrackId = PlatformUserPlaylistTrack[PlatformUserPlaylistTrackPk];
|
|
21
|
-
export type PlatformUserPlaylistTrackOptionalAttributes = "
|
|
21
|
+
export type PlatformUserPlaylistTrackOptionalAttributes = "id" | "trackPosition" | "addedDate" | "addedByPlatformUserId" | "createDate" | "updateDate" | "stateId";
|
|
22
22
|
export type PlatformUserPlaylistTrackCreationAttributes = Optional<PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackOptionalAttributes>;
|
|
23
23
|
export declare class PlatformUserPlaylistTrack extends Model<PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes> implements PlatformUserPlaylistTrackAttributes {
|
|
24
|
+
id: string;
|
|
24
25
|
platformTrackId: string;
|
|
25
26
|
platformUserPlaylistId: string;
|
|
27
|
+
trackPosition: number;
|
|
26
28
|
addedDate?: Date;
|
|
27
29
|
addedByPlatformUserId?: string;
|
|
28
|
-
externalPlaylistTrackId: string;
|
|
29
|
-
id: string;
|
|
30
|
-
trackPosition: number;
|
|
31
30
|
isLocal: boolean;
|
|
32
31
|
createDate: Date;
|
|
33
32
|
updateDate: Date;
|
|
34
33
|
stateId: number;
|
|
34
|
+
externalPlaylistTrackId: string;
|
|
35
35
|
platformTrack: PlatformTrack;
|
|
36
36
|
getPlatformTrack: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
|
|
37
37
|
setPlatformTrack: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class PlatformUserPlaylistTrack extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return PlatformUserPlaylistTrack.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
platformTrackId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -49,6 +55,12 @@ class PlatformUserPlaylistTrack extends sequelize_1.Model {
|
|
|
49
55
|
unique: "uk_playlist_id_track_id",
|
|
50
56
|
field: 'platform_user_playlist_id'
|
|
51
57
|
},
|
|
58
|
+
trackPosition: {
|
|
59
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: 0,
|
|
62
|
+
field: 'track_position'
|
|
63
|
+
},
|
|
52
64
|
addedDate: {
|
|
53
65
|
type: sequelize_1.DataTypes.DATE,
|
|
54
66
|
allowNull: true,
|
|
@@ -59,23 +71,6 @@ class PlatformUserPlaylistTrack extends sequelize_1.Model {
|
|
|
59
71
|
allowNull: true,
|
|
60
72
|
field: 'added_by_platform_user_id'
|
|
61
73
|
},
|
|
62
|
-
externalPlaylistTrackId: {
|
|
63
|
-
type: sequelize_1.DataTypes.STRING(255),
|
|
64
|
-
allowNull: false,
|
|
65
|
-
field: 'external_playlist_track_id'
|
|
66
|
-
},
|
|
67
|
-
id: {
|
|
68
|
-
type: sequelize_1.DataTypes.UUID,
|
|
69
|
-
allowNull: false,
|
|
70
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
71
|
-
primaryKey: true
|
|
72
|
-
},
|
|
73
|
-
trackPosition: {
|
|
74
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
75
|
-
allowNull: false,
|
|
76
|
-
defaultValue: 0,
|
|
77
|
-
field: 'track_position'
|
|
78
|
-
},
|
|
79
74
|
isLocal: {
|
|
80
75
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
81
76
|
allowNull: false,
|
|
@@ -103,6 +98,11 @@ class PlatformUserPlaylistTrack extends sequelize_1.Model {
|
|
|
103
98
|
key: 'id'
|
|
104
99
|
},
|
|
105
100
|
field: 'state_id'
|
|
101
|
+
},
|
|
102
|
+
externalPlaylistTrackId: {
|
|
103
|
+
type: sequelize_1.DataTypes.STRING(255),
|
|
104
|
+
allowNull: false,
|
|
105
|
+
field: 'external_playlist_track_id'
|
|
106
106
|
}
|
|
107
107
|
}, {
|
|
108
108
|
sequelize,
|
package/dist/PlaybackStatus.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
3
|
export interface PlaybackStatusAttributes {
|
|
4
|
-
description: string;
|
|
5
4
|
id: number;
|
|
5
|
+
description: string;
|
|
6
6
|
}
|
|
7
7
|
export type PlaybackStatusPk = "id";
|
|
8
8
|
export type PlaybackStatusId = PlaybackStatus[PlaybackStatusPk];
|
|
9
9
|
export type PlaybackStatusCreationAttributes = PlaybackStatusAttributes;
|
|
10
10
|
export declare class PlaybackStatus extends Model<PlaybackStatusAttributes, PlaybackStatusCreationAttributes> implements PlaybackStatusAttributes {
|
|
11
|
-
description: string;
|
|
12
11
|
id: number;
|
|
12
|
+
description: string;
|
|
13
13
|
static initModel(sequelize: Sequelize.Sequelize): typeof PlaybackStatus;
|
|
14
14
|
}
|
package/dist/PlaybackStatus.js
CHANGED
|
@@ -5,16 +5,16 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
class PlaybackStatus extends sequelize_1.Model {
|
|
6
6
|
static initModel(sequelize) {
|
|
7
7
|
return PlaybackStatus.init({
|
|
8
|
-
description: {
|
|
9
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
10
|
-
allowNull: false
|
|
11
|
-
},
|
|
12
8
|
id: {
|
|
13
9
|
autoIncrement: true,
|
|
14
10
|
autoIncrementIdentity: true,
|
|
15
11
|
type: sequelize_1.DataTypes.SMALLINT,
|
|
16
12
|
allowNull: false,
|
|
17
13
|
primaryKey: true
|
|
14
|
+
},
|
|
15
|
+
description: {
|
|
16
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
+
allowNull: false
|
|
18
18
|
}
|
|
19
19
|
}, {
|
|
20
20
|
sequelize,
|
package/dist/RadioShow.d.ts
CHANGED
|
@@ -10,26 +10,26 @@ import type { UserBookmarks, UserBookmarksId } from './UserBookmarks';
|
|
|
10
10
|
import type { UserComments, UserCommentsId } from './UserComments';
|
|
11
11
|
import type { UserLikes, UserLikesId } from './UserLikes';
|
|
12
12
|
export interface RadioShowAttributes {
|
|
13
|
+
id: string;
|
|
13
14
|
creatorUserId: string;
|
|
14
15
|
scheduledRelease?: Date;
|
|
15
16
|
title: string;
|
|
16
17
|
description?: string;
|
|
17
18
|
deleted?: boolean;
|
|
18
|
-
id: string;
|
|
19
19
|
createDate: Date;
|
|
20
20
|
updateDate: Date;
|
|
21
21
|
}
|
|
22
22
|
export type RadioShowPk = "id";
|
|
23
23
|
export type RadioShowId = RadioShow[RadioShowPk];
|
|
24
|
-
export type RadioShowOptionalAttributes = "
|
|
24
|
+
export type RadioShowOptionalAttributes = "id" | "scheduledRelease" | "description" | "deleted" | "createDate" | "updateDate";
|
|
25
25
|
export type RadioShowCreationAttributes = Optional<RadioShowAttributes, RadioShowOptionalAttributes>;
|
|
26
26
|
export declare class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttributes> implements RadioShowAttributes {
|
|
27
|
+
id: string;
|
|
27
28
|
creatorUserId: string;
|
|
28
29
|
scheduledRelease?: Date;
|
|
29
30
|
title: string;
|
|
30
31
|
description?: string;
|
|
31
32
|
deleted?: boolean;
|
|
32
|
-
id: string;
|
|
33
33
|
createDate: Date;
|
|
34
34
|
updateDate: Date;
|
|
35
35
|
creatorUser: AppUser;
|
package/dist/RadioShow.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class RadioShow extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return RadioShow.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
creatorUserId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -55,12 +61,6 @@ class RadioShow extends sequelize_1.Model {
|
|
|
55
61
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
56
62
|
allowNull: true
|
|
57
63
|
},
|
|
58
|
-
id: {
|
|
59
|
-
type: sequelize_1.DataTypes.UUID,
|
|
60
|
-
allowNull: false,
|
|
61
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
62
|
-
primaryKey: true
|
|
63
|
-
},
|
|
64
64
|
createDate: {
|
|
65
65
|
type: sequelize_1.DataTypes.DATE,
|
|
66
66
|
allowNull: false,
|
package/dist/RadioShowMedia.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
4
|
import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
|
|
5
5
|
export interface RadioShowMediaAttributes {
|
|
6
|
+
id: string;
|
|
6
7
|
radioShowId: string;
|
|
7
8
|
originalMediaType?: number;
|
|
8
9
|
s3VideoUrl?: string;
|
|
9
10
|
s3AudioUrl: string;
|
|
10
|
-
id: string;
|
|
11
11
|
createDate: Date;
|
|
12
12
|
description?: string;
|
|
13
13
|
cropInstructions?: string;
|
|
@@ -23,14 +23,14 @@ export interface RadioShowMediaAttributes {
|
|
|
23
23
|
}
|
|
24
24
|
export type RadioShowMediaPk = "id";
|
|
25
25
|
export type RadioShowMediaId = RadioShowMedia[RadioShowMediaPk];
|
|
26
|
-
export type RadioShowMediaOptionalAttributes = "
|
|
26
|
+
export type RadioShowMediaOptionalAttributes = "id" | "originalMediaType" | "s3VideoUrl" | "createDate" | "description" | "cropInstructions" | "deleted" | "sourceS3Key" | "isAppRecorded" | "automatedModerationApproved" | "automatedModerationRejectionMetadata" | "automatedModerationDecidedAt" | "manualModerationApproved" | "manualModerationDecidedAt" | "manualModerationBy";
|
|
27
27
|
export type RadioShowMediaCreationAttributes = Optional<RadioShowMediaAttributes, RadioShowMediaOptionalAttributes>;
|
|
28
28
|
export declare class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMediaCreationAttributes> implements RadioShowMediaAttributes {
|
|
29
|
+
id: string;
|
|
29
30
|
radioShowId: string;
|
|
30
31
|
originalMediaType?: number;
|
|
31
32
|
s3VideoUrl?: string;
|
|
32
33
|
s3AudioUrl: string;
|
|
33
|
-
id: string;
|
|
34
34
|
createDate: Date;
|
|
35
35
|
description?: string;
|
|
36
36
|
cropInstructions?: string;
|
package/dist/RadioShowMedia.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class RadioShowMedia extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return RadioShowMedia.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
radioShowId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -53,12 +59,6 @@ class RadioShowMedia extends sequelize_1.Model {
|
|
|
53
59
|
allowNull: false,
|
|
54
60
|
field: 's3_audio_url'
|
|
55
61
|
},
|
|
56
|
-
id: {
|
|
57
|
-
type: sequelize_1.DataTypes.UUID,
|
|
58
|
-
allowNull: false,
|
|
59
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
60
|
-
primaryKey: true
|
|
61
|
-
},
|
|
62
62
|
createDate: {
|
|
63
63
|
type: sequelize_1.DataTypes.DATE,
|
|
64
64
|
allowNull: false,
|
|
@@ -3,27 +3,27 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
4
4
|
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
5
5
|
export interface RadioShowPlacementAttributes {
|
|
6
|
+
id: string;
|
|
6
7
|
radioShowId: string;
|
|
7
8
|
canonTrackId?: string;
|
|
8
9
|
radioShowMediaId?: string;
|
|
9
10
|
seqNum: number;
|
|
10
11
|
startTime?: string;
|
|
11
12
|
endTime?: string;
|
|
12
|
-
id: string;
|
|
13
13
|
deleted?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export type RadioShowPlacementPk = "id";
|
|
16
16
|
export type RadioShowPlacementId = RadioShowPlacement[RadioShowPlacementPk];
|
|
17
|
-
export type RadioShowPlacementOptionalAttributes = "
|
|
17
|
+
export type RadioShowPlacementOptionalAttributes = "id" | "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "deleted";
|
|
18
18
|
export type RadioShowPlacementCreationAttributes = Optional<RadioShowPlacementAttributes, RadioShowPlacementOptionalAttributes>;
|
|
19
19
|
export declare class RadioShowPlacement extends Model<RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes> implements RadioShowPlacementAttributes {
|
|
20
|
+
id: string;
|
|
20
21
|
radioShowId: string;
|
|
21
22
|
canonTrackId?: string;
|
|
22
23
|
radioShowMediaId?: string;
|
|
23
24
|
seqNum: number;
|
|
24
25
|
startTime?: string;
|
|
25
26
|
endTime?: string;
|
|
26
|
-
id: string;
|
|
27
27
|
deleted?: boolean;
|
|
28
28
|
canonTrack: CanonTrack;
|
|
29
29
|
getCanonTrack: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
|
|
@@ -5,6 +5,12 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
class RadioShowPlacement extends sequelize_1.Model {
|
|
6
6
|
static initModel(sequelize) {
|
|
7
7
|
return RadioShowPlacement.init({
|
|
8
|
+
id: {
|
|
9
|
+
type: sequelize_1.DataTypes.UUID,
|
|
10
|
+
allowNull: false,
|
|
11
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
12
|
+
primaryKey: true
|
|
13
|
+
},
|
|
8
14
|
radioShowId: {
|
|
9
15
|
type: sequelize_1.DataTypes.UUID,
|
|
10
16
|
allowNull: false,
|
|
@@ -43,12 +49,6 @@ class RadioShowPlacement extends sequelize_1.Model {
|
|
|
43
49
|
allowNull: true,
|
|
44
50
|
field: 'end_time'
|
|
45
51
|
},
|
|
46
|
-
id: {
|
|
47
|
-
type: sequelize_1.DataTypes.UUID,
|
|
48
|
-
allowNull: false,
|
|
49
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
50
|
-
primaryKey: true
|
|
51
|
-
},
|
|
52
52
|
deleted: {
|
|
53
53
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
54
54
|
allowNull: true
|
|
@@ -2,20 +2,20 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
4
|
export interface RadioShowPublishRequestsAttributes {
|
|
5
|
+
id: string;
|
|
5
6
|
radioShowId: string;
|
|
6
7
|
approved?: boolean;
|
|
7
|
-
id: string;
|
|
8
8
|
createDate: Date;
|
|
9
9
|
updateDate: Date;
|
|
10
10
|
}
|
|
11
11
|
export type RadioShowPublishRequestsPk = "id";
|
|
12
12
|
export type RadioShowPublishRequestsId = RadioShowPublishRequests[RadioShowPublishRequestsPk];
|
|
13
|
-
export type RadioShowPublishRequestsOptionalAttributes = "
|
|
13
|
+
export type RadioShowPublishRequestsOptionalAttributes = "id" | "approved" | "createDate" | "updateDate";
|
|
14
14
|
export type RadioShowPublishRequestsCreationAttributes = Optional<RadioShowPublishRequestsAttributes, RadioShowPublishRequestsOptionalAttributes>;
|
|
15
15
|
export declare class RadioShowPublishRequests extends Model<RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes> implements RadioShowPublishRequestsAttributes {
|
|
16
|
+
id: string;
|
|
16
17
|
radioShowId: string;
|
|
17
18
|
approved?: boolean;
|
|
18
|
-
id: string;
|
|
19
19
|
createDate: Date;
|
|
20
20
|
updateDate: Date;
|
|
21
21
|
radioShow: RadioShow;
|
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class RadioShowPublishRequests extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return RadioShowPublishRequests.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
radioShowId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -42,12 +48,6 @@ class RadioShowPublishRequests extends sequelize_1.Model {
|
|
|
42
48
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
43
49
|
allowNull: true
|
|
44
50
|
},
|
|
45
|
-
id: {
|
|
46
|
-
type: sequelize_1.DataTypes.UUID,
|
|
47
|
-
allowNull: false,
|
|
48
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
49
|
-
primaryKey: true
|
|
50
|
-
},
|
|
51
51
|
createDate: {
|
|
52
52
|
type: sequelize_1.DataTypes.DATE,
|
|
53
53
|
allowNull: false,
|
package/dist/State.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import type { AppUser, AppUserId } from './AppUser';
|
|
|
4
4
|
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
5
5
|
import type { PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId } from './PlatformUserPlaylistTrack';
|
|
6
6
|
export interface StateAttributes {
|
|
7
|
-
description: string;
|
|
8
7
|
id: number;
|
|
8
|
+
description: string;
|
|
9
9
|
}
|
|
10
10
|
export type StatePk = "id";
|
|
11
11
|
export type StateId = State[StatePk];
|
|
12
12
|
export type StateCreationAttributes = StateAttributes;
|
|
13
13
|
export declare class State extends Model<StateAttributes, StateCreationAttributes> implements StateAttributes {
|
|
14
|
-
description: string;
|
|
15
14
|
id: number;
|
|
15
|
+
description: string;
|
|
16
16
|
appUsers: AppUser[];
|
|
17
17
|
getAppUsers: Sequelize.HasManyGetAssociationsMixin<AppUser>;
|
|
18
18
|
setAppUsers: Sequelize.HasManySetAssociationsMixin<AppUser, AppUserId>;
|
package/dist/State.js
CHANGED
|
@@ -5,16 +5,16 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
class State extends sequelize_1.Model {
|
|
6
6
|
static initModel(sequelize) {
|
|
7
7
|
return State.init({
|
|
8
|
-
description: {
|
|
9
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
10
|
-
allowNull: false
|
|
11
|
-
},
|
|
12
8
|
id: {
|
|
13
9
|
autoIncrement: true,
|
|
14
10
|
autoIncrementIdentity: true,
|
|
15
11
|
type: sequelize_1.DataTypes.SMALLINT,
|
|
16
12
|
allowNull: false,
|
|
17
13
|
primaryKey: true
|
|
14
|
+
},
|
|
15
|
+
description: {
|
|
16
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
+
allowNull: false
|
|
18
18
|
}
|
|
19
19
|
}, {
|
|
20
20
|
sequelize,
|
package/dist/UnmatchedAlbum.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
4
4
|
export interface UnmatchedAlbumAttributes {
|
|
5
|
-
platformAlbumId: string;
|
|
6
5
|
id: string;
|
|
6
|
+
platformAlbumId: string;
|
|
7
7
|
createDate: Date;
|
|
8
8
|
}
|
|
9
9
|
export type UnmatchedAlbumPk = "id";
|
|
@@ -11,8 +11,8 @@ export type UnmatchedAlbumId = UnmatchedAlbum[UnmatchedAlbumPk];
|
|
|
11
11
|
export type UnmatchedAlbumOptionalAttributes = "id" | "createDate";
|
|
12
12
|
export type UnmatchedAlbumCreationAttributes = Optional<UnmatchedAlbumAttributes, UnmatchedAlbumOptionalAttributes>;
|
|
13
13
|
export declare class UnmatchedAlbum extends Model<UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes> implements UnmatchedAlbumAttributes {
|
|
14
|
-
platformAlbumId: string;
|
|
15
14
|
id: string;
|
|
15
|
+
platformAlbumId: string;
|
|
16
16
|
createDate: Date;
|
|
17
17
|
platformAlbum: PlatformAlbum;
|
|
18
18
|
getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
package/dist/UnmatchedAlbum.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class UnmatchedAlbum extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return UnmatchedAlbum.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
platformAlbumId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -38,12 +44,6 @@ class UnmatchedAlbum extends sequelize_1.Model {
|
|
|
38
44
|
},
|
|
39
45
|
field: 'platform_album_id'
|
|
40
46
|
},
|
|
41
|
-
id: {
|
|
42
|
-
type: sequelize_1.DataTypes.UUID,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
45
|
-
primaryKey: true
|
|
46
|
-
},
|
|
47
47
|
createDate: {
|
|
48
48
|
type: sequelize_1.DataTypes.DATE,
|
|
49
49
|
allowNull: false,
|
|
@@ -2,9 +2,9 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
import type { Platform, PlatformId } from './Platform';
|
|
4
4
|
export interface UnmatchedArtistAttributes {
|
|
5
|
+
id: string;
|
|
5
6
|
platformId: number;
|
|
6
7
|
externalArtistId: number;
|
|
7
|
-
id: string;
|
|
8
8
|
createDate: Date;
|
|
9
9
|
updateDate: Date;
|
|
10
10
|
}
|
|
@@ -13,9 +13,9 @@ export type UnmatchedArtistId = UnmatchedArtist[UnmatchedArtistPk];
|
|
|
13
13
|
export type UnmatchedArtistOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
14
14
|
export type UnmatchedArtistCreationAttributes = Optional<UnmatchedArtistAttributes, UnmatchedArtistOptionalAttributes>;
|
|
15
15
|
export declare class UnmatchedArtist extends Model<UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes> implements UnmatchedArtistAttributes {
|
|
16
|
+
id: string;
|
|
16
17
|
platformId: number;
|
|
17
18
|
externalArtistId: number;
|
|
18
|
-
id: string;
|
|
19
19
|
createDate: Date;
|
|
20
20
|
updateDate: Date;
|
|
21
21
|
platform: Platform;
|