@earbug/db-models 0.0.62 → 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 +303 -0
- package/.nvmrc +1 -0
- package/Dockerfile.generate +19 -0
- package/model_options.json +3 -0
- package/models/AccessControlPreference.ts +53 -0
- package/models/AffinityRelationshipType.ts +96 -0
- package/models/AffinityTier.ts +131 -0
- package/models/AppUser.ts +577 -0
- package/models/AppUserDevice.ts +101 -0
- package/models/AppUserDeviceClassicBackup20260906.ts +66 -0
- package/models/AppUserFollowRelation.ts +128 -0
- package/models/AppUserPlatformRelation.ts +150 -0
- package/models/CanonAlbum.ts +229 -0
- package/models/CanonAlbumExternalReferenceRelation.ts +92 -0
- package/models/CanonAlbumGenreRelation.ts +86 -0
- package/models/CanonAlbumLabelRelation.ts +86 -0
- package/models/CanonAlbumTrackRelation.ts +92 -0
- package/models/CanonArtist.ts +356 -0
- package/models/CanonArtistAlbumRelation.ts +92 -0
- package/models/CanonArtistExternalReferenceRelation.ts +92 -0
- package/models/CanonArtistGenreRelation.ts +86 -0
- package/models/CanonArtistMemberRelation.ts +86 -0
- package/models/CanonArtistTrackRelation.ts +92 -0
- package/models/CanonGenre.ts +273 -0
- package/models/CanonGenreExternalReferenceRelation.ts +92 -0
- package/models/CanonLabel.ts +129 -0
- package/models/CanonLabelExternalReferenceRelation.ts +92 -0
- package/models/CanonMember.ts +130 -0
- package/models/CanonMemberExternalReferenceRelation.ts +99 -0
- package/models/CanonToPlatformAlbumRelation.ts +92 -0
- package/models/CanonToPlatformArtistRelation.ts +92 -0
- package/models/CanonToPlatformGenreRelation.ts +86 -0
- package/models/CanonToPlatformTrackRelation.ts +92 -0
- package/models/CanonTrack.ts +232 -0
- package/models/ConfigParam.ts +62 -0
- package/models/ExternalReference.ts +201 -0
- package/models/FeedConfig.ts +65 -0
- package/models/FeedContentType.ts +124 -0
- package/models/GuestUser.ts +137 -0
- package/models/JukeboxAccessType.ts +60 -0
- package/models/JukeboxCanonGenreRelation.ts +108 -0
- package/models/JukeboxInvite.ts +125 -0
- package/models/JukeboxQueueEntry.ts +247 -0
- package/models/JukeboxQueueMode.ts +60 -0
- package/models/JukeboxSession.ts +334 -0
- package/models/JukeboxSessionArtistAffinity.ts +136 -0
- package/models/JukeboxSessionGenreAffinity.ts +136 -0
- package/models/JukeboxStatus.ts +58 -0
- package/models/JukeboxTerminationCondition.ts +60 -0
- package/models/JukeboxType.ts +60 -0
- package/models/JukeboxUser.ts +182 -0
- package/models/JukeboxUserType.ts +58 -0
- package/models/KnexMigrations.ts +60 -0
- package/models/KnexMigrationsLock.ts +48 -0
- package/models/MerchItem.ts +198 -0
- package/models/MerchOrchestration.ts +130 -0
- package/models/MerchPlatform.ts +95 -0
- package/models/MerchType.ts +89 -0
- package/models/MetricsDaily.ts +79 -0
- package/models/MetricsEvent.ts +124 -0
- package/models/NewsArticle.ts +177 -0
- package/models/NewsPlatform.ts +76 -0
- package/models/NewsSite.ts +75 -0
- package/models/Notification.ts +214 -0
- package/models/NotificationType.ts +66 -0
- package/models/PauseStatusType.ts +58 -0
- package/models/Platform.ts +189 -0
- package/models/PlatformAlbum.ts +398 -0
- package/models/PlatformAlbumGenreRelation.ts +86 -0
- package/models/PlatformAlbumTrackRelation.ts +92 -0
- package/models/PlatformArtist.ts +358 -0
- package/models/PlatformArtistAlbumRelation.ts +92 -0
- package/models/PlatformArtistGenreRelation.ts +86 -0
- package/models/PlatformArtistTrackRelation.ts +92 -0
- package/models/PlatformGenre.ts +194 -0
- package/models/PlatformTrack.ts +339 -0
- package/models/PlatformTrackGenreRelation.ts +86 -0
- package/models/PlatformUserAlbum.ts +152 -0
- package/models/PlatformUserAlbumTrack.ts +138 -0
- package/models/PlatformUserPlaylist.ts +260 -0
- package/models/PlatformUserPlaylistArtistAffinity.ts +136 -0
- package/models/PlatformUserPlaylistGenreAffinity.ts +136 -0
- package/models/PlatformUserPlaylistTrack.ts +162 -0
- package/models/PlaybackStatus.ts +47 -0
- package/models/PlaybackStatusType.ts +58 -0
- package/models/RadioShow.ts +209 -0
- package/models/RadioShowGenres.ts +107 -0
- package/models/RadioShowMedia.ts +181 -0
- package/models/RadioShowPlacement.ts +115 -0
- package/models/RadioShowPublishRequests.ts +86 -0
- package/models/State.ts +86 -0
- package/models/TrackDeletionReason.ts +58 -0
- package/models/UnmatchedAlbum.ts +66 -0
- package/models/UnmatchedArtist.ts +81 -0
- package/models/UserAbuseReports.ts +232 -0
- package/models/UserAffinity.ts +117 -0
- package/models/UserArtistAffinity.ts +136 -0
- package/models/UserBookmarks.ts +235 -0
- package/models/UserComments.ts +271 -0
- package/models/UserContacts.ts +155 -0
- package/models/UserEngagementFactor.ts +109 -0
- package/models/UserGenreAffinity.ts +136 -0
- package/models/UserLikes.ts +235 -0
- package/models/UserMessages.ts +189 -0
- package/models/Versus.ts +438 -0
- package/models/VersusAccessType.ts +66 -0
- package/models/VersusCoCreator.ts +111 -0
- package/models/VersusCreatorScope.ts +66 -0
- package/models/VersusEndMode.ts +66 -0
- package/models/VersusEndTimerDuration.ts +81 -0
- package/models/VersusEndVoteThreshold.ts +67 -0
- package/models/VersusEntityKind.ts +79 -0
- package/models/VersusOption.ts +258 -0
- package/models/VersusPublishIssue.ts +146 -0
- package/models/VersusQuestion.ts +123 -0
- package/models/VersusQuestionVariableType.ts +66 -0
- package/models/VersusVote.ts +99 -0
- package/models/VersusVotingListType.ts +66 -0
- package/models/VersusVotingMode.ts +66 -0
- package/models/index.ts +3 -0
- package/models/init-models.ts +1259 -0
- package/models/initDb.ts +72 -0
- package/models/rdsCaBundle.ts +5 -0
- package/package.json +2 -5
- package/scripts/generate-and-upload.mjs +123 -0
- package/scripts/update-rds-ca-bundle.mjs +44 -0
- package/tsconfig.json +52 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId } from './CanonAlbumExternalReferenceRelation';
|
|
5
|
+
import type { CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId } from './CanonArtistExternalReferenceRelation';
|
|
6
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
7
|
+
import type { CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId } from './CanonGenreExternalReferenceRelation';
|
|
8
|
+
import type { CanonLabel, CanonLabelId } from './CanonLabel';
|
|
9
|
+
import type { CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId } from './CanonLabelExternalReferenceRelation';
|
|
10
|
+
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
11
|
+
import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId } from './CanonMemberExternalReferenceRelation';
|
|
12
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
13
|
+
|
|
14
|
+
export interface ExternalReferenceAttributes {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
createDate: Date;
|
|
18
|
+
updateDate: Date;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type ExternalReferencePk = "id";
|
|
22
|
+
export type ExternalReferenceId = ExternalReference[ExternalReferencePk];
|
|
23
|
+
export type ExternalReferenceOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
24
|
+
export type ExternalReferenceCreationAttributes = Optional<ExternalReferenceAttributes, ExternalReferenceOptionalAttributes>;
|
|
25
|
+
|
|
26
|
+
export class ExternalReference extends Model<ExternalReferenceAttributes, ExternalReferenceCreationAttributes> implements ExternalReferenceAttributes {
|
|
27
|
+
id!: string;
|
|
28
|
+
name!: string;
|
|
29
|
+
createDate!: Date;
|
|
30
|
+
updateDate!: Date;
|
|
31
|
+
|
|
32
|
+
// ExternalReference belongsToMany CanonAlbum via externalReferenceId and canonAlbumId
|
|
33
|
+
canonAlbumIdCanonAlbums!: CanonAlbum[];
|
|
34
|
+
getCanonAlbumIdCanonAlbums!: Sequelize.BelongsToManyGetAssociationsMixin<CanonAlbum>;
|
|
35
|
+
setCanonAlbumIdCanonAlbums!: Sequelize.BelongsToManySetAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
36
|
+
addCanonAlbumIdCanonAlbum!: Sequelize.BelongsToManyAddAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
37
|
+
addCanonAlbumIdCanonAlbums!: Sequelize.BelongsToManyAddAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
38
|
+
createCanonAlbumIdCanonAlbum!: Sequelize.BelongsToManyCreateAssociationMixin<CanonAlbum>;
|
|
39
|
+
removeCanonAlbumIdCanonAlbum!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
40
|
+
removeCanonAlbumIdCanonAlbums!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
41
|
+
hasCanonAlbumIdCanonAlbum!: Sequelize.BelongsToManyHasAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
42
|
+
hasCanonAlbumIdCanonAlbums!: Sequelize.BelongsToManyHasAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
43
|
+
countCanonAlbumIdCanonAlbums!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
44
|
+
// ExternalReference hasMany CanonAlbumExternalReferenceRelation via externalReferenceId
|
|
45
|
+
canonAlbumExternalReferenceRelations!: CanonAlbumExternalReferenceRelation[];
|
|
46
|
+
getCanonAlbumExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonAlbumExternalReferenceRelation>;
|
|
47
|
+
setCanonAlbumExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
48
|
+
addCanonAlbumExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
49
|
+
addCanonAlbumExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
50
|
+
createCanonAlbumExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonAlbumExternalReferenceRelation>;
|
|
51
|
+
removeCanonAlbumExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
52
|
+
removeCanonAlbumExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
53
|
+
hasCanonAlbumExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
54
|
+
hasCanonAlbumExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
55
|
+
countCanonAlbumExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
56
|
+
// ExternalReference hasMany CanonArtistExternalReferenceRelation via externalReferenceId
|
|
57
|
+
canonArtistExternalReferenceRelations!: CanonArtistExternalReferenceRelation[];
|
|
58
|
+
getCanonArtistExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistExternalReferenceRelation>;
|
|
59
|
+
setCanonArtistExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
60
|
+
addCanonArtistExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
61
|
+
addCanonArtistExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
62
|
+
createCanonArtistExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistExternalReferenceRelation>;
|
|
63
|
+
removeCanonArtistExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
64
|
+
removeCanonArtistExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
65
|
+
hasCanonArtistExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
66
|
+
hasCanonArtistExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
67
|
+
countCanonArtistExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
68
|
+
// ExternalReference belongsToMany CanonGenre via externalReferenceId and canonGenreId
|
|
69
|
+
canonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: CanonGenre[];
|
|
70
|
+
getCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonGenre>;
|
|
71
|
+
setCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
72
|
+
addCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<CanonGenre, CanonGenreId>;
|
|
73
|
+
addCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
74
|
+
createCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonGenre>;
|
|
75
|
+
removeCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonGenre, CanonGenreId>;
|
|
76
|
+
removeCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
77
|
+
hasCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<CanonGenre, CanonGenreId>;
|
|
78
|
+
hasCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
79
|
+
countCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
80
|
+
// ExternalReference hasMany CanonGenreExternalReferenceRelation via externalReferenceId
|
|
81
|
+
canonGenreExternalReferenceRelations!: CanonGenreExternalReferenceRelation[];
|
|
82
|
+
getCanonGenreExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonGenreExternalReferenceRelation>;
|
|
83
|
+
setCanonGenreExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
84
|
+
addCanonGenreExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
85
|
+
addCanonGenreExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
86
|
+
createCanonGenreExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonGenreExternalReferenceRelation>;
|
|
87
|
+
removeCanonGenreExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
88
|
+
removeCanonGenreExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
89
|
+
hasCanonGenreExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
90
|
+
hasCanonGenreExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
91
|
+
countCanonGenreExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
92
|
+
// ExternalReference belongsToMany CanonLabel via externalReferenceId and canonLabelId
|
|
93
|
+
canonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: CanonLabel[];
|
|
94
|
+
getCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonLabel>;
|
|
95
|
+
setCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
96
|
+
addCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<CanonLabel, CanonLabelId>;
|
|
97
|
+
addCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
98
|
+
createCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonLabel>;
|
|
99
|
+
removeCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonLabel, CanonLabelId>;
|
|
100
|
+
removeCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
101
|
+
hasCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<CanonLabel, CanonLabelId>;
|
|
102
|
+
hasCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
103
|
+
countCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
104
|
+
// ExternalReference hasMany CanonLabelExternalReferenceRelation via externalReferenceId
|
|
105
|
+
canonLabelExternalReferenceRelations!: CanonLabelExternalReferenceRelation[];
|
|
106
|
+
getCanonLabelExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonLabelExternalReferenceRelation>;
|
|
107
|
+
setCanonLabelExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
108
|
+
addCanonLabelExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
109
|
+
addCanonLabelExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
110
|
+
createCanonLabelExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonLabelExternalReferenceRelation>;
|
|
111
|
+
removeCanonLabelExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
112
|
+
removeCanonLabelExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
113
|
+
hasCanonLabelExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
114
|
+
hasCanonLabelExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
115
|
+
countCanonLabelExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
116
|
+
// ExternalReference belongsToMany CanonMember via externalReferenceId and canonMemberId
|
|
117
|
+
canonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: CanonMember[];
|
|
118
|
+
getCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonMember>;
|
|
119
|
+
setCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<CanonMember, CanonMemberId>;
|
|
120
|
+
addCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<CanonMember, CanonMemberId>;
|
|
121
|
+
addCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<CanonMember, CanonMemberId>;
|
|
122
|
+
createCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonMember>;
|
|
123
|
+
removeCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonMember, CanonMemberId>;
|
|
124
|
+
removeCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonMember, CanonMemberId>;
|
|
125
|
+
hasCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<CanonMember, CanonMemberId>;
|
|
126
|
+
hasCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<CanonMember, CanonMemberId>;
|
|
127
|
+
countCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
128
|
+
// ExternalReference hasMany CanonMemberExternalReferenceRelation via externalReferenceId
|
|
129
|
+
canonMemberExternalReferenceRelations!: CanonMemberExternalReferenceRelation[];
|
|
130
|
+
getCanonMemberExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonMemberExternalReferenceRelation>;
|
|
131
|
+
setCanonMemberExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
132
|
+
addCanonMemberExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
133
|
+
addCanonMemberExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
134
|
+
createCanonMemberExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonMemberExternalReferenceRelation>;
|
|
135
|
+
removeCanonMemberExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
136
|
+
removeCanonMemberExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
137
|
+
hasCanonMemberExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
138
|
+
hasCanonMemberExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
139
|
+
countCanonMemberExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
140
|
+
// ExternalReference belongsToMany PlatformArtist via externalReferenceId and canonArtistId
|
|
141
|
+
canonArtistIdPlatformArtists!: PlatformArtist[];
|
|
142
|
+
getCanonArtistIdPlatformArtists!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
143
|
+
setCanonArtistIdPlatformArtists!: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
144
|
+
addCanonArtistIdPlatformArtist!: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
145
|
+
addCanonArtistIdPlatformArtists!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
146
|
+
createCanonArtistIdPlatformArtist!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
147
|
+
removeCanonArtistIdPlatformArtist!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
148
|
+
removeCanonArtistIdPlatformArtists!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
149
|
+
hasCanonArtistIdPlatformArtist!: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
150
|
+
hasCanonArtistIdPlatformArtists!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
151
|
+
countCanonArtistIdPlatformArtists!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
152
|
+
|
|
153
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof ExternalReference {
|
|
154
|
+
return ExternalReference.init({
|
|
155
|
+
id: {
|
|
156
|
+
type: DataTypes.UUID,
|
|
157
|
+
allowNull: false,
|
|
158
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
159
|
+
primaryKey: true
|
|
160
|
+
},
|
|
161
|
+
name: {
|
|
162
|
+
type: DataTypes.TEXT,
|
|
163
|
+
allowNull: false,
|
|
164
|
+
unique: "external_reference_un"
|
|
165
|
+
},
|
|
166
|
+
createDate: {
|
|
167
|
+
type: DataTypes.DATE,
|
|
168
|
+
allowNull: false,
|
|
169
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
170
|
+
field: 'create_date'
|
|
171
|
+
},
|
|
172
|
+
updateDate: {
|
|
173
|
+
type: DataTypes.DATE,
|
|
174
|
+
allowNull: false,
|
|
175
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
176
|
+
field: 'update_date'
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
sequelize,
|
|
180
|
+
tableName: 'external_reference',
|
|
181
|
+
schema: 'eb',
|
|
182
|
+
timestamps: false,
|
|
183
|
+
indexes: [
|
|
184
|
+
{
|
|
185
|
+
name: "external_reference_un",
|
|
186
|
+
unique: true,
|
|
187
|
+
fields: [
|
|
188
|
+
{ name: "name" },
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: "reference_source_pkey",
|
|
193
|
+
unique: true,
|
|
194
|
+
fields: [
|
|
195
|
+
{ name: "id" },
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
]
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
|
|
4
|
+
export interface FeedConfigAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
resultsCount: number;
|
|
7
|
+
createDate?: Date;
|
|
8
|
+
updateDate?: Date;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type FeedConfigPk = "id";
|
|
12
|
+
export type FeedConfigId = FeedConfig[FeedConfigPk];
|
|
13
|
+
export type FeedConfigOptionalAttributes = "id" | "resultsCount" | "createDate" | "updateDate";
|
|
14
|
+
export type FeedConfigCreationAttributes = Optional<FeedConfigAttributes, FeedConfigOptionalAttributes>;
|
|
15
|
+
|
|
16
|
+
export class FeedConfig extends Model<FeedConfigAttributes, FeedConfigCreationAttributes> implements FeedConfigAttributes {
|
|
17
|
+
id!: string;
|
|
18
|
+
resultsCount!: number;
|
|
19
|
+
createDate?: Date;
|
|
20
|
+
updateDate?: Date;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof FeedConfig {
|
|
24
|
+
return FeedConfig.init({
|
|
25
|
+
id: {
|
|
26
|
+
type: DataTypes.UUID,
|
|
27
|
+
allowNull: false,
|
|
28
|
+
defaultValue: DataTypes.UUIDV4,
|
|
29
|
+
primaryKey: true
|
|
30
|
+
},
|
|
31
|
+
resultsCount: {
|
|
32
|
+
type: DataTypes.INTEGER,
|
|
33
|
+
allowNull: false,
|
|
34
|
+
defaultValue: 100,
|
|
35
|
+
field: 'results_count'
|
|
36
|
+
},
|
|
37
|
+
createDate: {
|
|
38
|
+
type: DataTypes.DATE,
|
|
39
|
+
allowNull: true,
|
|
40
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
41
|
+
field: 'create_date'
|
|
42
|
+
},
|
|
43
|
+
updateDate: {
|
|
44
|
+
type: DataTypes.DATE,
|
|
45
|
+
allowNull: true,
|
|
46
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
47
|
+
field: 'update_date'
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
sequelize,
|
|
51
|
+
tableName: 'feed_config',
|
|
52
|
+
schema: 'eb',
|
|
53
|
+
timestamps: false,
|
|
54
|
+
indexes: [
|
|
55
|
+
{
|
|
56
|
+
name: "feed_config_pkey",
|
|
57
|
+
unique: true,
|
|
58
|
+
fields: [
|
|
59
|
+
{ name: "id" },
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
]
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { UserEngagementFactor, UserEngagementFactorId } from './UserEngagementFactor';
|
|
4
|
+
|
|
5
|
+
export interface FeedContentTypeAttributes {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
mixPercentage: number;
|
|
9
|
+
affinityMixHigh: number;
|
|
10
|
+
affinityMixMedium: number;
|
|
11
|
+
affinityMixLow: number;
|
|
12
|
+
apiEndpoint?: string;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
createDate?: Date;
|
|
15
|
+
updateDate?: Date;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type FeedContentTypePk = "id";
|
|
19
|
+
export type FeedContentTypeId = FeedContentType[FeedContentTypePk];
|
|
20
|
+
export type FeedContentTypeOptionalAttributes = "id" | "mixPercentage" | "affinityMixHigh" | "affinityMixMedium" | "affinityMixLow" | "apiEndpoint" | "isActive" | "createDate" | "updateDate";
|
|
21
|
+
export type FeedContentTypeCreationAttributes = Optional<FeedContentTypeAttributes, FeedContentTypeOptionalAttributes>;
|
|
22
|
+
|
|
23
|
+
export class FeedContentType extends Model<FeedContentTypeAttributes, FeedContentTypeCreationAttributes> implements FeedContentTypeAttributes {
|
|
24
|
+
id!: string;
|
|
25
|
+
name!: string;
|
|
26
|
+
mixPercentage!: number;
|
|
27
|
+
affinityMixHigh!: number;
|
|
28
|
+
affinityMixMedium!: number;
|
|
29
|
+
affinityMixLow!: number;
|
|
30
|
+
apiEndpoint?: string;
|
|
31
|
+
isActive!: boolean;
|
|
32
|
+
createDate?: Date;
|
|
33
|
+
updateDate?: Date;
|
|
34
|
+
|
|
35
|
+
// FeedContentType hasMany UserEngagementFactor via contentTypeId
|
|
36
|
+
userEngagementFactors!: UserEngagementFactor[];
|
|
37
|
+
getUserEngagementFactors!: Sequelize.HasManyGetAssociationsMixin<UserEngagementFactor>;
|
|
38
|
+
setUserEngagementFactors!: Sequelize.HasManySetAssociationsMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
39
|
+
addUserEngagementFactor!: Sequelize.HasManyAddAssociationMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
40
|
+
addUserEngagementFactors!: Sequelize.HasManyAddAssociationsMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
41
|
+
createUserEngagementFactor!: Sequelize.HasManyCreateAssociationMixin<UserEngagementFactor>;
|
|
42
|
+
removeUserEngagementFactor!: Sequelize.HasManyRemoveAssociationMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
43
|
+
removeUserEngagementFactors!: Sequelize.HasManyRemoveAssociationsMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
44
|
+
hasUserEngagementFactor!: Sequelize.HasManyHasAssociationMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
45
|
+
hasUserEngagementFactors!: Sequelize.HasManyHasAssociationsMixin<UserEngagementFactor, UserEngagementFactorId>;
|
|
46
|
+
countUserEngagementFactors!: Sequelize.HasManyCountAssociationsMixin;
|
|
47
|
+
|
|
48
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof FeedContentType {
|
|
49
|
+
return FeedContentType.init({
|
|
50
|
+
id: {
|
|
51
|
+
type: DataTypes.UUID,
|
|
52
|
+
allowNull: false,
|
|
53
|
+
defaultValue: DataTypes.UUIDV4,
|
|
54
|
+
primaryKey: true
|
|
55
|
+
},
|
|
56
|
+
name: {
|
|
57
|
+
type: DataTypes.STRING(50),
|
|
58
|
+
allowNull: false
|
|
59
|
+
},
|
|
60
|
+
mixPercentage: {
|
|
61
|
+
type: DataTypes.DECIMAL,
|
|
62
|
+
allowNull: false,
|
|
63
|
+
defaultValue: 20,
|
|
64
|
+
field: 'mix_percentage'
|
|
65
|
+
},
|
|
66
|
+
affinityMixHigh: {
|
|
67
|
+
type: DataTypes.DECIMAL,
|
|
68
|
+
allowNull: false,
|
|
69
|
+
defaultValue: 30,
|
|
70
|
+
field: 'affinity_mix_high'
|
|
71
|
+
},
|
|
72
|
+
affinityMixMedium: {
|
|
73
|
+
type: DataTypes.DECIMAL,
|
|
74
|
+
allowNull: false,
|
|
75
|
+
defaultValue: 50,
|
|
76
|
+
field: 'affinity_mix_medium'
|
|
77
|
+
},
|
|
78
|
+
affinityMixLow: {
|
|
79
|
+
type: DataTypes.DECIMAL,
|
|
80
|
+
allowNull: false,
|
|
81
|
+
defaultValue: 20,
|
|
82
|
+
field: 'affinity_mix_low'
|
|
83
|
+
},
|
|
84
|
+
apiEndpoint: {
|
|
85
|
+
type: DataTypes.STRING(255),
|
|
86
|
+
allowNull: true,
|
|
87
|
+
defaultValue: "",
|
|
88
|
+
field: 'api_endpoint'
|
|
89
|
+
},
|
|
90
|
+
isActive: {
|
|
91
|
+
type: DataTypes.BOOLEAN,
|
|
92
|
+
allowNull: false,
|
|
93
|
+
defaultValue: true,
|
|
94
|
+
field: 'is_active'
|
|
95
|
+
},
|
|
96
|
+
createDate: {
|
|
97
|
+
type: DataTypes.DATE,
|
|
98
|
+
allowNull: true,
|
|
99
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
100
|
+
field: 'create_date'
|
|
101
|
+
},
|
|
102
|
+
updateDate: {
|
|
103
|
+
type: DataTypes.DATE,
|
|
104
|
+
allowNull: true,
|
|
105
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
106
|
+
field: 'update_date'
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
sequelize,
|
|
110
|
+
tableName: 'feed_content_type',
|
|
111
|
+
schema: 'eb',
|
|
112
|
+
timestamps: false,
|
|
113
|
+
indexes: [
|
|
114
|
+
{
|
|
115
|
+
name: "feed_content_type_pkey",
|
|
116
|
+
unique: true,
|
|
117
|
+
fields: [
|
|
118
|
+
{ name: "id" },
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
4
|
+
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
+
import type { Versus, VersusId } from './Versus';
|
|
6
|
+
|
|
7
|
+
export interface GuestUserAttributes {
|
|
8
|
+
id: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
jukeboxSessionId?: string;
|
|
12
|
+
ipAddress?: string;
|
|
13
|
+
createDate: Date;
|
|
14
|
+
updateDate: Date;
|
|
15
|
+
versusId?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type GuestUserPk = "id";
|
|
19
|
+
export type GuestUserId = GuestUser[GuestUserPk];
|
|
20
|
+
export type GuestUserOptionalAttributes = "id" | "lastName" | "jukeboxSessionId" | "ipAddress" | "createDate" | "updateDate" | "versusId";
|
|
21
|
+
export type GuestUserCreationAttributes = Optional<GuestUserAttributes, GuestUserOptionalAttributes>;
|
|
22
|
+
|
|
23
|
+
export class GuestUser extends Model<GuestUserAttributes, GuestUserCreationAttributes> implements GuestUserAttributes {
|
|
24
|
+
id!: string;
|
|
25
|
+
firstName!: string;
|
|
26
|
+
lastName?: string;
|
|
27
|
+
jukeboxSessionId?: string;
|
|
28
|
+
ipAddress?: string;
|
|
29
|
+
createDate!: Date;
|
|
30
|
+
updateDate!: Date;
|
|
31
|
+
versusId?: string;
|
|
32
|
+
|
|
33
|
+
// GuestUser hasMany JukeboxQueueEntry via trackAddedGuestUserId
|
|
34
|
+
jukeboxQueueEntries!: JukeboxQueueEntry[];
|
|
35
|
+
getJukeboxQueueEntries!: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
|
|
36
|
+
setJukeboxQueueEntries!: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
37
|
+
addJukeboxQueueEntry!: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
38
|
+
addJukeboxQueueEntries!: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
39
|
+
createJukeboxQueueEntry!: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
|
|
40
|
+
removeJukeboxQueueEntry!: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
41
|
+
removeJukeboxQueueEntries!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
42
|
+
hasJukeboxQueueEntry!: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
43
|
+
hasJukeboxQueueEntries!: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
44
|
+
countJukeboxQueueEntries!: Sequelize.HasManyCountAssociationsMixin;
|
|
45
|
+
// GuestUser belongsTo JukeboxSession via jukeboxSessionId
|
|
46
|
+
jukeboxSession!: JukeboxSession;
|
|
47
|
+
getJukeboxSession!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
48
|
+
setJukeboxSession!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
49
|
+
createJukeboxSession!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
50
|
+
// GuestUser belongsTo Versus via versusId
|
|
51
|
+
versu!: Versus;
|
|
52
|
+
getVersu!: Sequelize.BelongsToGetAssociationMixin<Versus>;
|
|
53
|
+
setVersu!: Sequelize.BelongsToSetAssociationMixin<Versus, VersusId>;
|
|
54
|
+
createVersu!: Sequelize.BelongsToCreateAssociationMixin<Versus>;
|
|
55
|
+
|
|
56
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof GuestUser {
|
|
57
|
+
return GuestUser.init({
|
|
58
|
+
id: {
|
|
59
|
+
type: DataTypes.UUID,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: DataTypes.UUIDV4,
|
|
62
|
+
primaryKey: true
|
|
63
|
+
},
|
|
64
|
+
firstName: {
|
|
65
|
+
type: DataTypes.TEXT,
|
|
66
|
+
allowNull: false,
|
|
67
|
+
field: 'first_name'
|
|
68
|
+
},
|
|
69
|
+
lastName: {
|
|
70
|
+
type: DataTypes.TEXT,
|
|
71
|
+
allowNull: true,
|
|
72
|
+
field: 'last_name'
|
|
73
|
+
},
|
|
74
|
+
jukeboxSessionId: {
|
|
75
|
+
type: DataTypes.UUID,
|
|
76
|
+
allowNull: true,
|
|
77
|
+
references: {
|
|
78
|
+
model: 'jukebox_session',
|
|
79
|
+
key: 'id'
|
|
80
|
+
},
|
|
81
|
+
field: 'jukebox_session_id'
|
|
82
|
+
},
|
|
83
|
+
ipAddress: {
|
|
84
|
+
type: DataTypes.TEXT,
|
|
85
|
+
allowNull: true,
|
|
86
|
+
field: 'ip_address'
|
|
87
|
+
},
|
|
88
|
+
createDate: {
|
|
89
|
+
type: DataTypes.DATE,
|
|
90
|
+
allowNull: false,
|
|
91
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
92
|
+
field: 'create_date'
|
|
93
|
+
},
|
|
94
|
+
updateDate: {
|
|
95
|
+
type: DataTypes.DATE,
|
|
96
|
+
allowNull: false,
|
|
97
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
98
|
+
field: 'update_date'
|
|
99
|
+
},
|
|
100
|
+
versusId: {
|
|
101
|
+
type: DataTypes.UUID,
|
|
102
|
+
allowNull: true,
|
|
103
|
+
references: {
|
|
104
|
+
model: 'versus',
|
|
105
|
+
key: 'id'
|
|
106
|
+
},
|
|
107
|
+
field: 'versus_id'
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
sequelize,
|
|
111
|
+
tableName: 'guest_user',
|
|
112
|
+
schema: 'eb',
|
|
113
|
+
timestamps: false,
|
|
114
|
+
indexes: [
|
|
115
|
+
{
|
|
116
|
+
name: "guest_user_pkey",
|
|
117
|
+
unique: true,
|
|
118
|
+
fields: [
|
|
119
|
+
{ name: "id" },
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "idx_guest_user_session",
|
|
124
|
+
fields: [
|
|
125
|
+
{ name: "jukebox_session_id" },
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "idx_guest_user_versus",
|
|
130
|
+
fields: [
|
|
131
|
+
{ name: "versus_id" },
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
|
+
|
|
5
|
+
export interface JukeboxAccessTypeAttributes {
|
|
6
|
+
id: number;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type JukeboxAccessTypePk = "id";
|
|
11
|
+
export type JukeboxAccessTypeId = JukeboxAccessType[JukeboxAccessTypePk];
|
|
12
|
+
export type JukeboxAccessTypeCreationAttributes = JukeboxAccessTypeAttributes;
|
|
13
|
+
|
|
14
|
+
export class JukeboxAccessType extends Model<JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes> implements JukeboxAccessTypeAttributes {
|
|
15
|
+
id!: number;
|
|
16
|
+
description!: string;
|
|
17
|
+
|
|
18
|
+
// JukeboxAccessType hasMany JukeboxSession via accessTypeId
|
|
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 JukeboxAccessType {
|
|
32
|
+
return JukeboxAccessType.init({
|
|
33
|
+
id: {
|
|
34
|
+
autoIncrement: true,
|
|
35
|
+
autoIncrementIdentity: true,
|
|
36
|
+
type: DataTypes.SMALLINT,
|
|
37
|
+
allowNull: false,
|
|
38
|
+
primaryKey: true
|
|
39
|
+
},
|
|
40
|
+
description: {
|
|
41
|
+
type: DataTypes.TEXT,
|
|
42
|
+
allowNull: false
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
sequelize,
|
|
46
|
+
tableName: 'jukebox_access_type',
|
|
47
|
+
schema: 'eb',
|
|
48
|
+
timestamps: false,
|
|
49
|
+
indexes: [
|
|
50
|
+
{
|
|
51
|
+
name: "jukebox_access_type_pkey",
|
|
52
|
+
unique: true,
|
|
53
|
+
fields: [
|
|
54
|
+
{ name: "id" },
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|