@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,201 +0,0 @@
|
|
|
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
|
-
name: string;
|
|
16
|
-
id: 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
|
-
name!: string;
|
|
28
|
-
id!: 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
|
-
name: {
|
|
156
|
-
type: DataTypes.TEXT,
|
|
157
|
-
allowNull: false,
|
|
158
|
-
unique: "external_reference_un"
|
|
159
|
-
},
|
|
160
|
-
id: {
|
|
161
|
-
type: DataTypes.UUID,
|
|
162
|
-
allowNull: false,
|
|
163
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
164
|
-
primaryKey: true
|
|
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
|
-
}
|
package/models/FeedConfig.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
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
|
-
name: string;
|
|
7
|
-
id: 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
|
-
name!: string;
|
|
25
|
-
id!: 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
|
-
name: {
|
|
51
|
-
type: DataTypes.STRING(50),
|
|
52
|
-
allowNull: false
|
|
53
|
-
},
|
|
54
|
-
id: {
|
|
55
|
-
type: DataTypes.UUID,
|
|
56
|
-
allowNull: false,
|
|
57
|
-
defaultValue: DataTypes.UUIDV4,
|
|
58
|
-
primaryKey: true
|
|
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
|
-
}
|
package/models/GuestUser.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
jukeboxSessionId?: string;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName?: string;
|
|
11
|
-
ipAddress?: string;
|
|
12
|
-
id: 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 = "jukeboxSessionId" | "lastName" | "ipAddress" | "id" | "createDate" | "updateDate" | "versusId";
|
|
21
|
-
export type GuestUserCreationAttributes = Optional<GuestUserAttributes, GuestUserOptionalAttributes>;
|
|
22
|
-
|
|
23
|
-
export class GuestUser extends Model<GuestUserAttributes, GuestUserCreationAttributes> implements GuestUserAttributes {
|
|
24
|
-
jukeboxSessionId?: string;
|
|
25
|
-
firstName!: string;
|
|
26
|
-
lastName?: string;
|
|
27
|
-
ipAddress?: string;
|
|
28
|
-
id!: 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
|
-
jukeboxSessionId: {
|
|
59
|
-
type: DataTypes.UUID,
|
|
60
|
-
allowNull: true,
|
|
61
|
-
references: {
|
|
62
|
-
model: 'jukebox_session',
|
|
63
|
-
key: 'id'
|
|
64
|
-
},
|
|
65
|
-
field: 'jukebox_session_id'
|
|
66
|
-
},
|
|
67
|
-
firstName: {
|
|
68
|
-
type: DataTypes.TEXT,
|
|
69
|
-
allowNull: false,
|
|
70
|
-
field: 'first_name'
|
|
71
|
-
},
|
|
72
|
-
lastName: {
|
|
73
|
-
type: DataTypes.TEXT,
|
|
74
|
-
allowNull: true,
|
|
75
|
-
field: 'last_name'
|
|
76
|
-
},
|
|
77
|
-
ipAddress: {
|
|
78
|
-
type: DataTypes.TEXT,
|
|
79
|
-
allowNull: true,
|
|
80
|
-
field: 'ip_address'
|
|
81
|
-
},
|
|
82
|
-
id: {
|
|
83
|
-
type: DataTypes.UUID,
|
|
84
|
-
allowNull: false,
|
|
85
|
-
defaultValue: DataTypes.UUIDV4,
|
|
86
|
-
primaryKey: true
|
|
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
|
-
}
|
|
@@ -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 JukeboxAccessTypeAttributes {
|
|
6
|
-
description: string;
|
|
7
|
-
id: number;
|
|
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
|
-
description!: string;
|
|
16
|
-
id!: number;
|
|
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
|
-
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_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
|
-
}
|