@earbug/db-models 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/package.json +5 -2
- package/.github/workflows/publish.yaml +0 -56
- package/.nvmrc +0 -1
- 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/model_options.json +0 -3
- package/models/AccessControlPreference.ts +0 -53
- package/models/AffinityRelationshipType.ts +0 -96
- package/models/AffinityTier.ts +0 -131
- package/models/AppUser.ts +0 -577
- package/models/AppUserDevice.ts +0 -101
- package/models/AppUserFollowRelation.ts +0 -128
- package/models/AppUserPlatformRelation.ts +0 -150
- package/models/CanonAlbum.ts +0 -229
- package/models/CanonAlbumExternalReferenceRelation.ts +0 -92
- package/models/CanonAlbumGenreRelation.ts +0 -86
- package/models/CanonAlbumImageHarvested.ts +0 -98
- package/models/CanonAlbumLabelRelation.ts +0 -86
- package/models/CanonAlbumTrackRelation.ts +0 -92
- package/models/CanonArtist.ts +0 -356
- package/models/CanonArtistAlbumRelation.ts +0 -92
- package/models/CanonArtistExternalReferenceRelation.ts +0 -92
- package/models/CanonArtistGenreRelation.ts +0 -86
- package/models/CanonArtistImageHarvested.ts +0 -98
- package/models/CanonArtistMemberRelation.ts +0 -86
- package/models/CanonArtistTrackRelation.ts +0 -92
- package/models/CanonGenre.ts +0 -273
- package/models/CanonGenreExternalReferenceRelation.ts +0 -92
- package/models/CanonLabel.ts +0 -129
- package/models/CanonLabelExternalReferenceRelation.ts +0 -92
- package/models/CanonMember.ts +0 -130
- package/models/CanonMemberExternalReferenceRelation.ts +0 -99
- package/models/CanonToPlatformAlbumRelation.ts +0 -92
- package/models/CanonToPlatformArtistRelation.ts +0 -92
- package/models/CanonToPlatformGenreRelation.ts +0 -86
- package/models/CanonToPlatformTrackRelation.ts +0 -92
- package/models/CanonTrack.ts +0 -232
- package/models/ConfigParam.ts +0 -62
- package/models/ExternalReference.ts +0 -201
- package/models/FeedConfig.ts +0 -65
- package/models/FeedContentType.ts +0 -124
- package/models/GuestUser.ts +0 -137
- package/models/JukeboxAccessType.ts +0 -60
- package/models/JukeboxCanonGenreRelation.ts +0 -108
- package/models/JukeboxInvite.ts +0 -125
- package/models/JukeboxQueueEntry.ts +0 -247
- package/models/JukeboxQueueMode.ts +0 -60
- package/models/JukeboxSession.ts +0 -334
- package/models/JukeboxSessionArtistAffinity.ts +0 -136
- package/models/JukeboxSessionGenreAffinity.ts +0 -136
- package/models/JukeboxStatus.ts +0 -58
- package/models/JukeboxTerminationCondition.ts +0 -60
- package/models/JukeboxType.ts +0 -60
- package/models/JukeboxUser.ts +0 -182
- package/models/JukeboxUserType.ts +0 -58
- package/models/KnexMigrations.ts +0 -60
- package/models/KnexMigrationsLock.ts +0 -48
- package/models/MerchItem.ts +0 -198
- package/models/MerchOrchestration.ts +0 -130
- package/models/MerchPlatform.ts +0 -95
- package/models/MerchType.ts +0 -89
- package/models/MetricsDaily.ts +0 -79
- package/models/MetricsEvent.ts +0 -124
- package/models/NewsArticle.ts +0 -177
- package/models/NewsPlatform.ts +0 -76
- package/models/NewsSite.ts +0 -75
- package/models/Notification.ts +0 -214
- package/models/NotificationType.ts +0 -66
- package/models/PauseStatusType.ts +0 -58
- package/models/Platform.ts +0 -189
- package/models/PlatformAlbum.ts +0 -398
- package/models/PlatformAlbumGenreRelation.ts +0 -86
- package/models/PlatformAlbumTrackRelation.ts +0 -92
- package/models/PlatformArtist.ts +0 -358
- package/models/PlatformArtistAlbumRelation.ts +0 -92
- package/models/PlatformArtistGenreRelation.ts +0 -86
- package/models/PlatformArtistTrackRelation.ts +0 -92
- package/models/PlatformGenre.ts +0 -194
- package/models/PlatformTrack.ts +0 -339
- package/models/PlatformTrackGenreRelation.ts +0 -86
- package/models/PlatformUserAlbum.ts +0 -152
- package/models/PlatformUserAlbumTrack.ts +0 -138
- package/models/PlatformUserPlaylist.ts +0 -260
- package/models/PlatformUserPlaylistArtistAffinity.ts +0 -136
- package/models/PlatformUserPlaylistGenreAffinity.ts +0 -136
- package/models/PlatformUserPlaylistTrack.ts +0 -162
- package/models/PlaybackStatus.ts +0 -47
- package/models/PlaybackStatusType.ts +0 -58
- package/models/RadioShow.ts +0 -209
- package/models/RadioShowGenres.ts +0 -107
- package/models/RadioShowMedia.ts +0 -181
- package/models/RadioShowPlacement.ts +0 -115
- package/models/RadioShowPublishRequests.ts +0 -86
- package/models/State.ts +0 -86
- package/models/TrackDeletionReason.ts +0 -58
- package/models/UnmatchedAlbum.ts +0 -66
- package/models/UnmatchedArtist.ts +0 -81
- package/models/UserAbuseReports.ts +0 -232
- package/models/UserAffinity.ts +0 -117
- package/models/UserArtistAffinity.ts +0 -136
- package/models/UserBookmarks.ts +0 -235
- package/models/UserComments.ts +0 -271
- package/models/UserContacts.ts +0 -155
- package/models/UserEngagementFactor.ts +0 -109
- package/models/UserGenreAffinity.ts +0 -136
- package/models/UserLikes.ts +0 -235
- package/models/UserMessages.ts +0 -189
- package/models/Versus.ts +0 -438
- package/models/VersusAccessType.ts +0 -66
- package/models/VersusCoCreator.ts +0 -111
- package/models/VersusCreatorScope.ts +0 -66
- package/models/VersusEndMode.ts +0 -66
- package/models/VersusEndTimerDuration.ts +0 -81
- package/models/VersusEndVoteThreshold.ts +0 -67
- package/models/VersusEntityKind.ts +0 -79
- package/models/VersusOption.ts +0 -258
- package/models/VersusPublishIssue.ts +0 -146
- package/models/VersusQuestion.ts +0 -123
- package/models/VersusQuestionVariableType.ts +0 -66
- package/models/VersusVote.ts +0 -99
- package/models/VersusVotingListType.ts +0 -66
- package/models/VersusVotingMode.ts +0 -66
- package/models/index.ts +0 -3
- package/models/init-models.ts +0 -14
- package/models/initDb.ts +0 -72
- package/models/rdsCaBundle.ts +0 -5
- package/scripts/update-rds-ca-bundle.mjs +0 -44
- package/tsconfig.json +0 -52
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
-
|
|
6
|
-
export interface JukeboxCanonGenreRelationAttributes {
|
|
7
|
-
jukeboxSessionId: string;
|
|
8
|
-
canonGenreId: string;
|
|
9
|
-
stateId: number;
|
|
10
|
-
id: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type JukeboxCanonGenreRelationPk = "id";
|
|
16
|
-
export type JukeboxCanonGenreRelationId = JukeboxCanonGenreRelation[JukeboxCanonGenreRelationPk];
|
|
17
|
-
export type JukeboxCanonGenreRelationOptionalAttributes = "id" | "createdAt" | "updatedAt";
|
|
18
|
-
export type JukeboxCanonGenreRelationCreationAttributes = Optional<JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationOptionalAttributes>;
|
|
19
|
-
|
|
20
|
-
export class JukeboxCanonGenreRelation extends Model<JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes> implements JukeboxCanonGenreRelationAttributes {
|
|
21
|
-
jukeboxSessionId!: string;
|
|
22
|
-
canonGenreId!: string;
|
|
23
|
-
stateId!: number;
|
|
24
|
-
id!: string;
|
|
25
|
-
createdAt!: Date;
|
|
26
|
-
updatedAt!: Date;
|
|
27
|
-
|
|
28
|
-
// JukeboxCanonGenreRelation belongsTo CanonGenre via canonGenreId
|
|
29
|
-
canonGenre!: CanonGenre;
|
|
30
|
-
getCanonGenre!: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
31
|
-
setCanonGenre!: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
32
|
-
createCanonGenre!: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
33
|
-
// JukeboxCanonGenreRelation belongsTo JukeboxSession via jukeboxSessionId
|
|
34
|
-
jukeboxSession!: JukeboxSession;
|
|
35
|
-
getJukeboxSession!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
36
|
-
setJukeboxSession!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
37
|
-
createJukeboxSession!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
38
|
-
|
|
39
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxCanonGenreRelation {
|
|
40
|
-
return JukeboxCanonGenreRelation.init({
|
|
41
|
-
jukeboxSessionId: {
|
|
42
|
-
type: DataTypes.UUID,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
references: {
|
|
45
|
-
model: 'jukebox_session',
|
|
46
|
-
key: 'id'
|
|
47
|
-
},
|
|
48
|
-
unique: "unique_jukebox_canon_genre",
|
|
49
|
-
field: 'jukebox_session_id'
|
|
50
|
-
},
|
|
51
|
-
canonGenreId: {
|
|
52
|
-
type: DataTypes.UUID,
|
|
53
|
-
allowNull: false,
|
|
54
|
-
references: {
|
|
55
|
-
model: 'canon_genre',
|
|
56
|
-
key: 'id'
|
|
57
|
-
},
|
|
58
|
-
unique: "unique_jukebox_canon_genre",
|
|
59
|
-
field: 'canon_genre_id'
|
|
60
|
-
},
|
|
61
|
-
stateId: {
|
|
62
|
-
type: DataTypes.SMALLINT,
|
|
63
|
-
allowNull: false,
|
|
64
|
-
field: 'state_id'
|
|
65
|
-
},
|
|
66
|
-
id: {
|
|
67
|
-
type: DataTypes.UUID,
|
|
68
|
-
allowNull: false,
|
|
69
|
-
defaultValue: DataTypes.UUIDV4,
|
|
70
|
-
primaryKey: true
|
|
71
|
-
},
|
|
72
|
-
createdAt: {
|
|
73
|
-
type: DataTypes.DATE,
|
|
74
|
-
allowNull: false,
|
|
75
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
76
|
-
field: 'created_at'
|
|
77
|
-
},
|
|
78
|
-
updatedAt: {
|
|
79
|
-
type: DataTypes.DATE,
|
|
80
|
-
allowNull: false,
|
|
81
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
82
|
-
field: 'updated_at'
|
|
83
|
-
}
|
|
84
|
-
}, {
|
|
85
|
-
sequelize,
|
|
86
|
-
tableName: 'jukebox_canon_genre_relation',
|
|
87
|
-
schema: 'eb',
|
|
88
|
-
timestamps: false,
|
|
89
|
-
indexes: [
|
|
90
|
-
{
|
|
91
|
-
name: "jukebox_canon_genre_relation_pkey",
|
|
92
|
-
unique: true,
|
|
93
|
-
fields: [
|
|
94
|
-
{ name: "id" },
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "unique_jukebox_canon_genre",
|
|
99
|
-
unique: true,
|
|
100
|
-
fields: [
|
|
101
|
-
{ name: "jukebox_session_id" },
|
|
102
|
-
{ name: "canon_genre_id" },
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
]
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
package/models/JukeboxInvite.ts
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
-
|
|
6
|
-
export interface JukeboxInviteAttributes {
|
|
7
|
-
jukeboxSessionId: string;
|
|
8
|
-
inviterUserId: string;
|
|
9
|
-
invitedUserId?: string;
|
|
10
|
-
email?: string;
|
|
11
|
-
id: string;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
updatedAt: Date;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type JukeboxInvitePk = "id";
|
|
17
|
-
export type JukeboxInviteId = JukeboxInvite[JukeboxInvitePk];
|
|
18
|
-
export type JukeboxInviteOptionalAttributes = "invitedUserId" | "email" | "id" | "createdAt" | "updatedAt";
|
|
19
|
-
export type JukeboxInviteCreationAttributes = Optional<JukeboxInviteAttributes, JukeboxInviteOptionalAttributes>;
|
|
20
|
-
|
|
21
|
-
export class JukeboxInvite extends Model<JukeboxInviteAttributes, JukeboxInviteCreationAttributes> implements JukeboxInviteAttributes {
|
|
22
|
-
jukeboxSessionId!: string;
|
|
23
|
-
inviterUserId!: string;
|
|
24
|
-
invitedUserId?: string;
|
|
25
|
-
email?: string;
|
|
26
|
-
id!: string;
|
|
27
|
-
createdAt!: Date;
|
|
28
|
-
updatedAt!: Date;
|
|
29
|
-
|
|
30
|
-
// JukeboxInvite belongsTo AppUser via invitedUserId
|
|
31
|
-
invitedUser!: AppUser;
|
|
32
|
-
getInvitedUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
33
|
-
setInvitedUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
34
|
-
createInvitedUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
35
|
-
// JukeboxInvite belongsTo AppUser via inviterUserId
|
|
36
|
-
inviterUser!: AppUser;
|
|
37
|
-
getInviterUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
38
|
-
setInviterUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
39
|
-
createInviterUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
40
|
-
// JukeboxInvite belongsTo JukeboxSession via jukeboxSessionId
|
|
41
|
-
jukeboxSession!: JukeboxSession;
|
|
42
|
-
getJukeboxSession!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
43
|
-
setJukeboxSession!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
44
|
-
createJukeboxSession!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
45
|
-
|
|
46
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxInvite {
|
|
47
|
-
return JukeboxInvite.init({
|
|
48
|
-
jukeboxSessionId: {
|
|
49
|
-
type: DataTypes.UUID,
|
|
50
|
-
allowNull: false,
|
|
51
|
-
references: {
|
|
52
|
-
model: 'jukebox_session',
|
|
53
|
-
key: 'id'
|
|
54
|
-
},
|
|
55
|
-
field: 'jukebox_session_id'
|
|
56
|
-
},
|
|
57
|
-
inviterUserId: {
|
|
58
|
-
type: DataTypes.UUID,
|
|
59
|
-
allowNull: false,
|
|
60
|
-
references: {
|
|
61
|
-
model: 'app_user',
|
|
62
|
-
key: 'id'
|
|
63
|
-
},
|
|
64
|
-
field: 'inviter_user_id'
|
|
65
|
-
},
|
|
66
|
-
invitedUserId: {
|
|
67
|
-
type: DataTypes.UUID,
|
|
68
|
-
allowNull: true,
|
|
69
|
-
references: {
|
|
70
|
-
model: 'app_user',
|
|
71
|
-
key: 'id'
|
|
72
|
-
},
|
|
73
|
-
field: 'invited_user_id'
|
|
74
|
-
},
|
|
75
|
-
email: {
|
|
76
|
-
type: DataTypes.TEXT,
|
|
77
|
-
allowNull: true
|
|
78
|
-
},
|
|
79
|
-
id: {
|
|
80
|
-
type: DataTypes.UUID,
|
|
81
|
-
allowNull: false,
|
|
82
|
-
defaultValue: DataTypes.UUIDV4,
|
|
83
|
-
primaryKey: true
|
|
84
|
-
},
|
|
85
|
-
createdAt: {
|
|
86
|
-
type: DataTypes.DATE,
|
|
87
|
-
allowNull: false,
|
|
88
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
89
|
-
field: 'created_at'
|
|
90
|
-
},
|
|
91
|
-
updatedAt: {
|
|
92
|
-
type: DataTypes.DATE,
|
|
93
|
-
allowNull: false,
|
|
94
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
95
|
-
field: 'updated_at'
|
|
96
|
-
}
|
|
97
|
-
}, {
|
|
98
|
-
sequelize,
|
|
99
|
-
tableName: 'jukebox_invite',
|
|
100
|
-
schema: 'eb',
|
|
101
|
-
timestamps: false,
|
|
102
|
-
indexes: [
|
|
103
|
-
{
|
|
104
|
-
name: "idx_jukebox_invite_invited_user",
|
|
105
|
-
fields: [
|
|
106
|
-
{ name: "invited_user_id" },
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: "idx_jukebox_invite_session",
|
|
111
|
-
fields: [
|
|
112
|
-
{ name: "jukebox_session_id" },
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "jukebox_invite_pkey",
|
|
117
|
-
unique: true,
|
|
118
|
-
fields: [
|
|
119
|
-
{ name: "id" },
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
]
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
5
|
-
import type { GuestUser, GuestUserId } from './GuestUser';
|
|
6
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
7
|
-
import type { JukeboxUser, JukeboxUserId } from './JukeboxUser';
|
|
8
|
-
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
9
|
-
import type { PlaybackStatusType, PlaybackStatusTypeId } from './PlaybackStatusType';
|
|
10
|
-
import type { TrackDeletionReason, TrackDeletionReasonId } from './TrackDeletionReason';
|
|
11
|
-
|
|
12
|
-
export interface JukeboxQueueEntryAttributes {
|
|
13
|
-
jukeboxSessionId: string;
|
|
14
|
-
playbackPriority?: number;
|
|
15
|
-
playbackStarted?: Date;
|
|
16
|
-
id: string;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
setOrder: number;
|
|
20
|
-
trackDeletionReasonId: number;
|
|
21
|
-
playbackStatusTypeId: number;
|
|
22
|
-
trackId?: string;
|
|
23
|
-
trackAddedUserId?: string;
|
|
24
|
-
trackThumbsUp?: string[];
|
|
25
|
-
trackThumbsDown?: string[];
|
|
26
|
-
platformTrackId?: string;
|
|
27
|
-
trackAddedGuestUserId?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type JukeboxQueueEntryPk = "id";
|
|
31
|
-
export type JukeboxQueueEntryId = JukeboxQueueEntry[JukeboxQueueEntryPk];
|
|
32
|
-
export type JukeboxQueueEntryOptionalAttributes = "playbackPriority" | "playbackStarted" | "id" | "createdAt" | "updatedAt" | "setOrder" | "trackDeletionReasonId" | "playbackStatusTypeId" | "trackId" | "trackAddedUserId" | "trackThumbsUp" | "trackThumbsDown" | "platformTrackId" | "trackAddedGuestUserId";
|
|
33
|
-
export type JukeboxQueueEntryCreationAttributes = Optional<JukeboxQueueEntryAttributes, JukeboxQueueEntryOptionalAttributes>;
|
|
34
|
-
|
|
35
|
-
export class JukeboxQueueEntry extends Model<JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes> implements JukeboxQueueEntryAttributes {
|
|
36
|
-
jukeboxSessionId!: string;
|
|
37
|
-
playbackPriority?: number;
|
|
38
|
-
playbackStarted?: Date;
|
|
39
|
-
id!: string;
|
|
40
|
-
createdAt!: Date;
|
|
41
|
-
updatedAt!: Date;
|
|
42
|
-
setOrder!: number;
|
|
43
|
-
trackDeletionReasonId!: number;
|
|
44
|
-
playbackStatusTypeId!: number;
|
|
45
|
-
trackId?: string;
|
|
46
|
-
trackAddedUserId?: string;
|
|
47
|
-
trackThumbsUp?: string[];
|
|
48
|
-
trackThumbsDown?: string[];
|
|
49
|
-
platformTrackId?: string;
|
|
50
|
-
trackAddedGuestUserId?: string;
|
|
51
|
-
|
|
52
|
-
// JukeboxQueueEntry belongsTo AppUser via trackAddedUserId
|
|
53
|
-
trackAddedUser!: AppUser;
|
|
54
|
-
getTrackAddedUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
55
|
-
setTrackAddedUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
56
|
-
createTrackAddedUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
57
|
-
// JukeboxQueueEntry belongsTo CanonTrack via trackId
|
|
58
|
-
track!: CanonTrack;
|
|
59
|
-
getTrack!: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
|
|
60
|
-
setTrack!: Sequelize.BelongsToSetAssociationMixin<CanonTrack, CanonTrackId>;
|
|
61
|
-
createTrack!: Sequelize.BelongsToCreateAssociationMixin<CanonTrack>;
|
|
62
|
-
// JukeboxQueueEntry belongsTo GuestUser via trackAddedGuestUserId
|
|
63
|
-
trackAddedGuestUser!: GuestUser;
|
|
64
|
-
getTrackAddedGuestUser!: Sequelize.BelongsToGetAssociationMixin<GuestUser>;
|
|
65
|
-
setTrackAddedGuestUser!: Sequelize.BelongsToSetAssociationMixin<GuestUser, GuestUserId>;
|
|
66
|
-
createTrackAddedGuestUser!: Sequelize.BelongsToCreateAssociationMixin<GuestUser>;
|
|
67
|
-
// JukeboxQueueEntry hasMany JukeboxUser via pausedQueueEntryId
|
|
68
|
-
jukeboxUsers!: JukeboxUser[];
|
|
69
|
-
getJukeboxUsers!: Sequelize.HasManyGetAssociationsMixin<JukeboxUser>;
|
|
70
|
-
setJukeboxUsers!: Sequelize.HasManySetAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
71
|
-
addJukeboxUser!: Sequelize.HasManyAddAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
72
|
-
addJukeboxUsers!: Sequelize.HasManyAddAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
73
|
-
createJukeboxUser!: Sequelize.HasManyCreateAssociationMixin<JukeboxUser>;
|
|
74
|
-
removeJukeboxUser!: Sequelize.HasManyRemoveAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
75
|
-
removeJukeboxUsers!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
76
|
-
hasJukeboxUser!: Sequelize.HasManyHasAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
77
|
-
hasJukeboxUsers!: Sequelize.HasManyHasAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
78
|
-
countJukeboxUsers!: Sequelize.HasManyCountAssociationsMixin;
|
|
79
|
-
// JukeboxQueueEntry belongsTo JukeboxSession via jukeboxSessionId
|
|
80
|
-
jukeboxSession!: JukeboxSession;
|
|
81
|
-
getJukeboxSession!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
82
|
-
setJukeboxSession!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
83
|
-
createJukeboxSession!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
84
|
-
// JukeboxQueueEntry belongsTo PlatformTrack via platformTrackId
|
|
85
|
-
platformTrack!: PlatformTrack;
|
|
86
|
-
getPlatformTrack!: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
|
|
87
|
-
setPlatformTrack!: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
88
|
-
createPlatformTrack!: Sequelize.BelongsToCreateAssociationMixin<PlatformTrack>;
|
|
89
|
-
// JukeboxQueueEntry belongsTo PlaybackStatusType via playbackStatusTypeId
|
|
90
|
-
playbackStatusType!: PlaybackStatusType;
|
|
91
|
-
getPlaybackStatusType!: Sequelize.BelongsToGetAssociationMixin<PlaybackStatusType>;
|
|
92
|
-
setPlaybackStatusType!: Sequelize.BelongsToSetAssociationMixin<PlaybackStatusType, PlaybackStatusTypeId>;
|
|
93
|
-
createPlaybackStatusType!: Sequelize.BelongsToCreateAssociationMixin<PlaybackStatusType>;
|
|
94
|
-
// JukeboxQueueEntry belongsTo TrackDeletionReason via trackDeletionReasonId
|
|
95
|
-
trackDeletionReason!: TrackDeletionReason;
|
|
96
|
-
getTrackDeletionReason!: Sequelize.BelongsToGetAssociationMixin<TrackDeletionReason>;
|
|
97
|
-
setTrackDeletionReason!: Sequelize.BelongsToSetAssociationMixin<TrackDeletionReason, TrackDeletionReasonId>;
|
|
98
|
-
createTrackDeletionReason!: Sequelize.BelongsToCreateAssociationMixin<TrackDeletionReason>;
|
|
99
|
-
|
|
100
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxQueueEntry {
|
|
101
|
-
return JukeboxQueueEntry.init({
|
|
102
|
-
jukeboxSessionId: {
|
|
103
|
-
type: DataTypes.UUID,
|
|
104
|
-
allowNull: false,
|
|
105
|
-
references: {
|
|
106
|
-
model: 'jukebox_session',
|
|
107
|
-
key: 'id'
|
|
108
|
-
},
|
|
109
|
-
field: 'jukebox_session_id'
|
|
110
|
-
},
|
|
111
|
-
playbackPriority: {
|
|
112
|
-
type: DataTypes.DECIMAL,
|
|
113
|
-
allowNull: true,
|
|
114
|
-
field: 'playback_priority'
|
|
115
|
-
},
|
|
116
|
-
playbackStarted: {
|
|
117
|
-
type: DataTypes.DATE,
|
|
118
|
-
allowNull: true,
|
|
119
|
-
field: 'playback_started'
|
|
120
|
-
},
|
|
121
|
-
id: {
|
|
122
|
-
type: DataTypes.UUID,
|
|
123
|
-
allowNull: false,
|
|
124
|
-
defaultValue: DataTypes.UUIDV4,
|
|
125
|
-
primaryKey: true
|
|
126
|
-
},
|
|
127
|
-
createdAt: {
|
|
128
|
-
type: DataTypes.DATE,
|
|
129
|
-
allowNull: false,
|
|
130
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
131
|
-
field: 'created_at'
|
|
132
|
-
},
|
|
133
|
-
updatedAt: {
|
|
134
|
-
type: DataTypes.DATE,
|
|
135
|
-
allowNull: false,
|
|
136
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
137
|
-
field: 'updated_at'
|
|
138
|
-
},
|
|
139
|
-
setOrder: {
|
|
140
|
-
type: DataTypes.INTEGER,
|
|
141
|
-
allowNull: false,
|
|
142
|
-
defaultValue: 1,
|
|
143
|
-
field: 'set_order'
|
|
144
|
-
},
|
|
145
|
-
trackDeletionReasonId: {
|
|
146
|
-
type: DataTypes.SMALLINT,
|
|
147
|
-
allowNull: false,
|
|
148
|
-
defaultValue: 0,
|
|
149
|
-
references: {
|
|
150
|
-
model: 'track_deletion_reason',
|
|
151
|
-
key: 'id'
|
|
152
|
-
},
|
|
153
|
-
field: 'track_deletion_reason_id'
|
|
154
|
-
},
|
|
155
|
-
playbackStatusTypeId: {
|
|
156
|
-
type: DataTypes.SMALLINT,
|
|
157
|
-
allowNull: false,
|
|
158
|
-
defaultValue: 0,
|
|
159
|
-
references: {
|
|
160
|
-
model: 'playback_status_type',
|
|
161
|
-
key: 'id'
|
|
162
|
-
},
|
|
163
|
-
field: 'playback_status_type_id'
|
|
164
|
-
},
|
|
165
|
-
trackId: {
|
|
166
|
-
type: DataTypes.UUID,
|
|
167
|
-
allowNull: true,
|
|
168
|
-
references: {
|
|
169
|
-
model: 'canon_track',
|
|
170
|
-
key: 'id'
|
|
171
|
-
},
|
|
172
|
-
field: 'track_id'
|
|
173
|
-
},
|
|
174
|
-
trackAddedUserId: {
|
|
175
|
-
type: DataTypes.UUID,
|
|
176
|
-
allowNull: true,
|
|
177
|
-
references: {
|
|
178
|
-
model: 'app_user',
|
|
179
|
-
key: 'id'
|
|
180
|
-
},
|
|
181
|
-
field: 'track_added_user_id'
|
|
182
|
-
},
|
|
183
|
-
trackThumbsUp: {
|
|
184
|
-
type: DataTypes.ARRAY(DataTypes.UUID),
|
|
185
|
-
allowNull: true,
|
|
186
|
-
defaultValue: ["ARRAY[]"],
|
|
187
|
-
field: 'track_thumbs_up'
|
|
188
|
-
},
|
|
189
|
-
trackThumbsDown: {
|
|
190
|
-
type: DataTypes.ARRAY(DataTypes.UUID),
|
|
191
|
-
allowNull: true,
|
|
192
|
-
defaultValue: ["ARRAY[]"],
|
|
193
|
-
field: 'track_thumbs_down'
|
|
194
|
-
},
|
|
195
|
-
platformTrackId: {
|
|
196
|
-
type: DataTypes.UUID,
|
|
197
|
-
allowNull: true,
|
|
198
|
-
references: {
|
|
199
|
-
model: 'platform_track',
|
|
200
|
-
key: 'id'
|
|
201
|
-
},
|
|
202
|
-
field: 'platform_track_id'
|
|
203
|
-
},
|
|
204
|
-
trackAddedGuestUserId: {
|
|
205
|
-
type: DataTypes.UUID,
|
|
206
|
-
allowNull: true,
|
|
207
|
-
references: {
|
|
208
|
-
model: 'guest_user',
|
|
209
|
-
key: 'id'
|
|
210
|
-
},
|
|
211
|
-
field: 'track_added_guest_user_id'
|
|
212
|
-
}
|
|
213
|
-
}, {
|
|
214
|
-
sequelize,
|
|
215
|
-
tableName: 'jukebox_queue_entry',
|
|
216
|
-
schema: 'eb',
|
|
217
|
-
timestamps: false,
|
|
218
|
-
indexes: [
|
|
219
|
-
{
|
|
220
|
-
name: "idx_jukebox_queue_entry_platform_track",
|
|
221
|
-
fields: [
|
|
222
|
-
{ name: "platform_track_id" },
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: "idx_jukebox_queue_entry_session",
|
|
227
|
-
fields: [
|
|
228
|
-
{ name: "jukebox_session_id" },
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: "idx_jukebox_queue_entry_track",
|
|
233
|
-
fields: [
|
|
234
|
-
{ name: "track_id" },
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
name: "jukebox_queue_entry_pkey",
|
|
239
|
-
unique: true,
|
|
240
|
-
fields: [
|
|
241
|
-
{ name: "id" },
|
|
242
|
-
]
|
|
243
|
-
},
|
|
244
|
-
]
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
|
-
|
|
5
|
-
export interface JukeboxQueueModeAttributes {
|
|
6
|
-
description: string;
|
|
7
|
-
id: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type JukeboxQueueModePk = "id";
|
|
11
|
-
export type JukeboxQueueModeId = JukeboxQueueMode[JukeboxQueueModePk];
|
|
12
|
-
export type JukeboxQueueModeCreationAttributes = JukeboxQueueModeAttributes;
|
|
13
|
-
|
|
14
|
-
export class JukeboxQueueMode extends Model<JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes> implements JukeboxQueueModeAttributes {
|
|
15
|
-
description!: string;
|
|
16
|
-
id!: number;
|
|
17
|
-
|
|
18
|
-
// JukeboxQueueMode hasMany JukeboxSession via jukeboxQueueModeId
|
|
19
|
-
jukeboxSessions!: JukeboxSession[];
|
|
20
|
-
getJukeboxSessions!: Sequelize.HasManyGetAssociationsMixin<JukeboxSession>;
|
|
21
|
-
setJukeboxSessions!: Sequelize.HasManySetAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
22
|
-
addJukeboxSession!: Sequelize.HasManyAddAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
23
|
-
addJukeboxSessions!: Sequelize.HasManyAddAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
24
|
-
createJukeboxSession!: Sequelize.HasManyCreateAssociationMixin<JukeboxSession>;
|
|
25
|
-
removeJukeboxSession!: Sequelize.HasManyRemoveAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
26
|
-
removeJukeboxSessions!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
27
|
-
hasJukeboxSession!: Sequelize.HasManyHasAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
28
|
-
hasJukeboxSessions!: Sequelize.HasManyHasAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
29
|
-
countJukeboxSessions!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxQueueMode {
|
|
32
|
-
return JukeboxQueueMode.init({
|
|
33
|
-
description: {
|
|
34
|
-
type: DataTypes.TEXT,
|
|
35
|
-
allowNull: false
|
|
36
|
-
},
|
|
37
|
-
id: {
|
|
38
|
-
autoIncrement: true,
|
|
39
|
-
autoIncrementIdentity: true,
|
|
40
|
-
type: DataTypes.SMALLINT,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
primaryKey: true
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
sequelize,
|
|
46
|
-
tableName: 'jukebox_queue_mode',
|
|
47
|
-
schema: 'eb',
|
|
48
|
-
timestamps: false,
|
|
49
|
-
indexes: [
|
|
50
|
-
{
|
|
51
|
-
name: "jukebox_queue_mode_pkey",
|
|
52
|
-
unique: true,
|
|
53
|
-
fields: [
|
|
54
|
-
{ name: "id" },
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|