@earbug/db-models 0.0.59 → 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
package/models/CanonLabel.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonAlbumLabelRelation, CanonAlbumLabelRelationId } from './CanonAlbumLabelRelation';
|
|
4
|
-
import type { CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId } from './CanonLabelExternalReferenceRelation';
|
|
5
|
-
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
|
-
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
7
|
-
|
|
8
|
-
export interface CanonLabelAttributes {
|
|
9
|
-
name: string;
|
|
10
|
-
asciiName: string;
|
|
11
|
-
id: string;
|
|
12
|
-
createDate: Date;
|
|
13
|
-
updateDate: Date;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type CanonLabelPk = "id";
|
|
17
|
-
export type CanonLabelId = CanonLabel[CanonLabelPk];
|
|
18
|
-
export type CanonLabelOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
19
|
-
export type CanonLabelCreationAttributes = Optional<CanonLabelAttributes, CanonLabelOptionalAttributes>;
|
|
20
|
-
|
|
21
|
-
export class CanonLabel extends Model<CanonLabelAttributes, CanonLabelCreationAttributes> implements CanonLabelAttributes {
|
|
22
|
-
name!: string;
|
|
23
|
-
asciiName!: string;
|
|
24
|
-
id!: string;
|
|
25
|
-
createDate!: Date;
|
|
26
|
-
updateDate!: Date;
|
|
27
|
-
|
|
28
|
-
// CanonLabel hasMany CanonAlbumLabelRelation via canonLabelId
|
|
29
|
-
canonAlbumLabelRelations!: CanonAlbumLabelRelation[];
|
|
30
|
-
getCanonAlbumLabelRelations!: Sequelize.HasManyGetAssociationsMixin<CanonAlbumLabelRelation>;
|
|
31
|
-
setCanonAlbumLabelRelations!: Sequelize.HasManySetAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
32
|
-
addCanonAlbumLabelRelation!: Sequelize.HasManyAddAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
33
|
-
addCanonAlbumLabelRelations!: Sequelize.HasManyAddAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
34
|
-
createCanonAlbumLabelRelation!: Sequelize.HasManyCreateAssociationMixin<CanonAlbumLabelRelation>;
|
|
35
|
-
removeCanonAlbumLabelRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
36
|
-
removeCanonAlbumLabelRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
37
|
-
hasCanonAlbumLabelRelation!: Sequelize.HasManyHasAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
38
|
-
hasCanonAlbumLabelRelations!: Sequelize.HasManyHasAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
39
|
-
countCanonAlbumLabelRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
40
|
-
// CanonLabel hasMany CanonLabelExternalReferenceRelation via canonLabelId
|
|
41
|
-
canonLabelExternalReferenceRelations!: CanonLabelExternalReferenceRelation[];
|
|
42
|
-
getCanonLabelExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonLabelExternalReferenceRelation>;
|
|
43
|
-
setCanonLabelExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
44
|
-
addCanonLabelExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
45
|
-
addCanonLabelExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
46
|
-
createCanonLabelExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonLabelExternalReferenceRelation>;
|
|
47
|
-
removeCanonLabelExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
48
|
-
removeCanonLabelExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
49
|
-
hasCanonLabelExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
50
|
-
hasCanonLabelExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
51
|
-
countCanonLabelExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
52
|
-
// CanonLabel belongsToMany ExternalReference via canonLabelId and externalReferenceId
|
|
53
|
-
externalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: ExternalReference[];
|
|
54
|
-
getExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
55
|
-
setExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
56
|
-
addExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
57
|
-
addExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
58
|
-
createExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
59
|
-
removeExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
60
|
-
removeExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
61
|
-
hasExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
62
|
-
hasExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
63
|
-
countExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
64
|
-
// CanonLabel belongsToMany PlatformAlbum via canonLabelId and canonAlbumId
|
|
65
|
-
canonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: PlatformAlbum[];
|
|
66
|
-
getCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
|
|
67
|
-
setCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
68
|
-
addCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
69
|
-
addCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
70
|
-
createCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
|
|
71
|
-
removeCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
72
|
-
removeCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
73
|
-
hasCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
74
|
-
hasCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
75
|
-
countCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
76
|
-
|
|
77
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonLabel {
|
|
78
|
-
return CanonLabel.init({
|
|
79
|
-
name: {
|
|
80
|
-
type: DataTypes.TEXT,
|
|
81
|
-
allowNull: false
|
|
82
|
-
},
|
|
83
|
-
asciiName: {
|
|
84
|
-
type: DataTypes.TEXT,
|
|
85
|
-
allowNull: false,
|
|
86
|
-
field: 'ascii_name'
|
|
87
|
-
},
|
|
88
|
-
id: {
|
|
89
|
-
type: DataTypes.UUID,
|
|
90
|
-
allowNull: false,
|
|
91
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
92
|
-
primaryKey: true
|
|
93
|
-
},
|
|
94
|
-
createDate: {
|
|
95
|
-
type: DataTypes.DATE,
|
|
96
|
-
allowNull: false,
|
|
97
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
98
|
-
field: 'create_date'
|
|
99
|
-
},
|
|
100
|
-
updateDate: {
|
|
101
|
-
type: DataTypes.DATE,
|
|
102
|
-
allowNull: false,
|
|
103
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
104
|
-
field: 'update_date'
|
|
105
|
-
}
|
|
106
|
-
}, {
|
|
107
|
-
sequelize,
|
|
108
|
-
tableName: 'canon_label',
|
|
109
|
-
schema: 'eb',
|
|
110
|
-
timestamps: false,
|
|
111
|
-
indexes: [
|
|
112
|
-
{
|
|
113
|
-
name: "label_name_idx",
|
|
114
|
-
unique: true,
|
|
115
|
-
fields: [
|
|
116
|
-
{ name: "name" },
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: "label_pkey",
|
|
121
|
-
unique: true,
|
|
122
|
-
fields: [
|
|
123
|
-
{ name: "id" },
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
]
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonLabel, CanonLabelId } from './CanonLabel';
|
|
4
|
-
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
|
-
|
|
6
|
-
export interface CanonLabelExternalReferenceRelationAttributes {
|
|
7
|
-
canonLabelId: string;
|
|
8
|
-
externalReferenceId: string;
|
|
9
|
-
url: string;
|
|
10
|
-
createDate: Date;
|
|
11
|
-
updateDate: Date;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type CanonLabelExternalReferenceRelationPk = "canonLabelId" | "externalReferenceId";
|
|
15
|
-
export type CanonLabelExternalReferenceRelationId = CanonLabelExternalReferenceRelation[CanonLabelExternalReferenceRelationPk];
|
|
16
|
-
export type CanonLabelExternalReferenceRelationOptionalAttributes = "createDate" | "updateDate";
|
|
17
|
-
export type CanonLabelExternalReferenceRelationCreationAttributes = Optional<CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationOptionalAttributes>;
|
|
18
|
-
|
|
19
|
-
export class CanonLabelExternalReferenceRelation extends Model<CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes> implements CanonLabelExternalReferenceRelationAttributes {
|
|
20
|
-
canonLabelId!: string;
|
|
21
|
-
externalReferenceId!: string;
|
|
22
|
-
url!: string;
|
|
23
|
-
createDate!: Date;
|
|
24
|
-
updateDate!: Date;
|
|
25
|
-
|
|
26
|
-
// CanonLabelExternalReferenceRelation belongsTo CanonLabel via canonLabelId
|
|
27
|
-
canonLabel!: CanonLabel;
|
|
28
|
-
getCanonLabel!: Sequelize.BelongsToGetAssociationMixin<CanonLabel>;
|
|
29
|
-
setCanonLabel!: Sequelize.BelongsToSetAssociationMixin<CanonLabel, CanonLabelId>;
|
|
30
|
-
createCanonLabel!: Sequelize.BelongsToCreateAssociationMixin<CanonLabel>;
|
|
31
|
-
// CanonLabelExternalReferenceRelation belongsTo ExternalReference via externalReferenceId
|
|
32
|
-
externalReference!: ExternalReference;
|
|
33
|
-
getExternalReference!: Sequelize.BelongsToGetAssociationMixin<ExternalReference>;
|
|
34
|
-
setExternalReference!: Sequelize.BelongsToSetAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
35
|
-
createExternalReference!: Sequelize.BelongsToCreateAssociationMixin<ExternalReference>;
|
|
36
|
-
|
|
37
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonLabelExternalReferenceRelation {
|
|
38
|
-
return CanonLabelExternalReferenceRelation.init({
|
|
39
|
-
canonLabelId: {
|
|
40
|
-
type: DataTypes.UUID,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
primaryKey: true,
|
|
43
|
-
references: {
|
|
44
|
-
model: 'canon_label',
|
|
45
|
-
key: 'id'
|
|
46
|
-
},
|
|
47
|
-
field: 'canon_label_id'
|
|
48
|
-
},
|
|
49
|
-
externalReferenceId: {
|
|
50
|
-
type: DataTypes.UUID,
|
|
51
|
-
allowNull: false,
|
|
52
|
-
primaryKey: true,
|
|
53
|
-
references: {
|
|
54
|
-
model: 'external_reference',
|
|
55
|
-
key: 'id'
|
|
56
|
-
},
|
|
57
|
-
field: 'external_reference_id'
|
|
58
|
-
},
|
|
59
|
-
url: {
|
|
60
|
-
type: DataTypes.TEXT,
|
|
61
|
-
allowNull: false
|
|
62
|
-
},
|
|
63
|
-
createDate: {
|
|
64
|
-
type: DataTypes.DATE,
|
|
65
|
-
allowNull: false,
|
|
66
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
-
field: 'create_date'
|
|
68
|
-
},
|
|
69
|
-
updateDate: {
|
|
70
|
-
type: DataTypes.DATE,
|
|
71
|
-
allowNull: false,
|
|
72
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
73
|
-
field: 'update_date'
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
sequelize,
|
|
77
|
-
tableName: 'canon_label_external_reference_relation',
|
|
78
|
-
schema: 'eb',
|
|
79
|
-
timestamps: false,
|
|
80
|
-
indexes: [
|
|
81
|
-
{
|
|
82
|
-
name: "canon_label_external_reference_relation_pk",
|
|
83
|
-
unique: true,
|
|
84
|
-
fields: [
|
|
85
|
-
{ name: "canon_label_id" },
|
|
86
|
-
{ name: "external_reference_id" },
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
package/models/CanonMember.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonArtistMemberRelation, CanonArtistMemberRelationId } from './CanonArtistMemberRelation';
|
|
4
|
-
import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId } from './CanonMemberExternalReferenceRelation';
|
|
5
|
-
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
|
-
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
7
|
-
|
|
8
|
-
export interface CanonMemberAttributes {
|
|
9
|
-
name?: string;
|
|
10
|
-
asciiName?: string;
|
|
11
|
-
id: string;
|
|
12
|
-
createDate?: Date;
|
|
13
|
-
updateDate?: Date;
|
|
14
|
-
isPast?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type CanonMemberPk = "id";
|
|
18
|
-
export type CanonMemberId = CanonMember[CanonMemberPk];
|
|
19
|
-
export type CanonMemberOptionalAttributes = "name" | "asciiName" | "id" | "createDate" | "updateDate" | "isPast";
|
|
20
|
-
export type CanonMemberCreationAttributes = Optional<CanonMemberAttributes, CanonMemberOptionalAttributes>;
|
|
21
|
-
|
|
22
|
-
export class CanonMember extends Model<CanonMemberAttributes, CanonMemberCreationAttributes> implements CanonMemberAttributes {
|
|
23
|
-
name?: string;
|
|
24
|
-
asciiName?: string;
|
|
25
|
-
id!: string;
|
|
26
|
-
createDate?: Date;
|
|
27
|
-
updateDate?: Date;
|
|
28
|
-
isPast?: boolean;
|
|
29
|
-
|
|
30
|
-
// CanonMember hasMany CanonArtistMemberRelation via canonMemberId
|
|
31
|
-
canonArtistMemberRelations!: CanonArtistMemberRelation[];
|
|
32
|
-
getCanonArtistMemberRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistMemberRelation>;
|
|
33
|
-
setCanonArtistMemberRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
34
|
-
addCanonArtistMemberRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
35
|
-
addCanonArtistMemberRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
36
|
-
createCanonArtistMemberRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistMemberRelation>;
|
|
37
|
-
removeCanonArtistMemberRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
38
|
-
removeCanonArtistMemberRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
39
|
-
hasCanonArtistMemberRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
40
|
-
hasCanonArtistMemberRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
41
|
-
countCanonArtistMemberRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
42
|
-
// CanonMember hasMany CanonMemberExternalReferenceRelation via canonMemberId
|
|
43
|
-
canonMemberExternalReferenceRelations!: CanonMemberExternalReferenceRelation[];
|
|
44
|
-
getCanonMemberExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonMemberExternalReferenceRelation>;
|
|
45
|
-
setCanonMemberExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
46
|
-
addCanonMemberExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
47
|
-
addCanonMemberExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
48
|
-
createCanonMemberExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonMemberExternalReferenceRelation>;
|
|
49
|
-
removeCanonMemberExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
50
|
-
removeCanonMemberExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
51
|
-
hasCanonMemberExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
52
|
-
hasCanonMemberExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
53
|
-
countCanonMemberExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
54
|
-
// CanonMember belongsToMany ExternalReference via canonMemberId and externalReferenceId
|
|
55
|
-
externalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: ExternalReference[];
|
|
56
|
-
getExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
57
|
-
setExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
58
|
-
addExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
59
|
-
addExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
60
|
-
createExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
61
|
-
removeExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
62
|
-
removeExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
63
|
-
hasExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
64
|
-
hasExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
65
|
-
countExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
66
|
-
// CanonMember belongsToMany PlatformArtist via canonMemberId and canonArtistId
|
|
67
|
-
canonArtistIdPlatformArtistCanonArtistMemberRelations!: PlatformArtist[];
|
|
68
|
-
getCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
69
|
-
setCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
70
|
-
addCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
71
|
-
addCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
72
|
-
createCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
73
|
-
removeCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
74
|
-
removeCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
75
|
-
hasCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
76
|
-
hasCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
77
|
-
countCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
78
|
-
|
|
79
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonMember {
|
|
80
|
-
return CanonMember.init({
|
|
81
|
-
name: {
|
|
82
|
-
type: DataTypes.TEXT,
|
|
83
|
-
allowNull: true
|
|
84
|
-
},
|
|
85
|
-
asciiName: {
|
|
86
|
-
type: DataTypes.TEXT,
|
|
87
|
-
allowNull: true,
|
|
88
|
-
field: 'ascii_name'
|
|
89
|
-
},
|
|
90
|
-
id: {
|
|
91
|
-
type: DataTypes.UUID,
|
|
92
|
-
allowNull: false,
|
|
93
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
94
|
-
primaryKey: true
|
|
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
|
-
isPast: {
|
|
109
|
-
type: DataTypes.BOOLEAN,
|
|
110
|
-
allowNull: true,
|
|
111
|
-
defaultValue: false,
|
|
112
|
-
field: 'is_past'
|
|
113
|
-
}
|
|
114
|
-
}, {
|
|
115
|
-
sequelize,
|
|
116
|
-
tableName: 'canon_member',
|
|
117
|
-
schema: 'eb',
|
|
118
|
-
timestamps: false,
|
|
119
|
-
indexes: [
|
|
120
|
-
{
|
|
121
|
-
name: "member_pkey",
|
|
122
|
-
unique: true,
|
|
123
|
-
fields: [
|
|
124
|
-
{ name: "id" },
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
]
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
4
|
-
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
|
-
|
|
6
|
-
export interface CanonMemberExternalReferenceRelationAttributes {
|
|
7
|
-
canonMemberId: string;
|
|
8
|
-
externalReferenceId: string;
|
|
9
|
-
url: string;
|
|
10
|
-
id: string;
|
|
11
|
-
createDate: Date;
|
|
12
|
-
updateDate: Date;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type CanonMemberExternalReferenceRelationPk = "canonMemberId" | "externalReferenceId";
|
|
16
|
-
export type CanonMemberExternalReferenceRelationId = CanonMemberExternalReferenceRelation[CanonMemberExternalReferenceRelationPk];
|
|
17
|
-
export type CanonMemberExternalReferenceRelationOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
18
|
-
export type CanonMemberExternalReferenceRelationCreationAttributes = Optional<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationOptionalAttributes>;
|
|
19
|
-
|
|
20
|
-
export class CanonMemberExternalReferenceRelation extends Model<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes> implements CanonMemberExternalReferenceRelationAttributes {
|
|
21
|
-
canonMemberId!: string;
|
|
22
|
-
externalReferenceId!: string;
|
|
23
|
-
url!: string;
|
|
24
|
-
id!: string;
|
|
25
|
-
createDate!: Date;
|
|
26
|
-
updateDate!: Date;
|
|
27
|
-
|
|
28
|
-
// CanonMemberExternalReferenceRelation belongsTo CanonMember via canonMemberId
|
|
29
|
-
canonMember!: CanonMember;
|
|
30
|
-
getCanonMember!: Sequelize.BelongsToGetAssociationMixin<CanonMember>;
|
|
31
|
-
setCanonMember!: Sequelize.BelongsToSetAssociationMixin<CanonMember, CanonMemberId>;
|
|
32
|
-
createCanonMember!: Sequelize.BelongsToCreateAssociationMixin<CanonMember>;
|
|
33
|
-
// CanonMemberExternalReferenceRelation belongsTo ExternalReference via externalReferenceId
|
|
34
|
-
externalReference!: ExternalReference;
|
|
35
|
-
getExternalReference!: Sequelize.BelongsToGetAssociationMixin<ExternalReference>;
|
|
36
|
-
setExternalReference!: Sequelize.BelongsToSetAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
37
|
-
createExternalReference!: Sequelize.BelongsToCreateAssociationMixin<ExternalReference>;
|
|
38
|
-
|
|
39
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonMemberExternalReferenceRelation {
|
|
40
|
-
return CanonMemberExternalReferenceRelation.init({
|
|
41
|
-
canonMemberId: {
|
|
42
|
-
type: DataTypes.UUID,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
primaryKey: true,
|
|
45
|
-
references: {
|
|
46
|
-
model: 'canon_member',
|
|
47
|
-
key: 'id'
|
|
48
|
-
},
|
|
49
|
-
field: 'canon_member_id'
|
|
50
|
-
},
|
|
51
|
-
externalReferenceId: {
|
|
52
|
-
type: DataTypes.UUID,
|
|
53
|
-
allowNull: false,
|
|
54
|
-
primaryKey: true,
|
|
55
|
-
references: {
|
|
56
|
-
model: 'external_reference',
|
|
57
|
-
key: 'id'
|
|
58
|
-
},
|
|
59
|
-
field: 'external_reference_id'
|
|
60
|
-
},
|
|
61
|
-
url: {
|
|
62
|
-
type: DataTypes.TEXT,
|
|
63
|
-
allowNull: false
|
|
64
|
-
},
|
|
65
|
-
id: {
|
|
66
|
-
type: DataTypes.UUID,
|
|
67
|
-
allowNull: false,
|
|
68
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1')
|
|
69
|
-
},
|
|
70
|
-
createDate: {
|
|
71
|
-
type: DataTypes.DATE,
|
|
72
|
-
allowNull: false,
|
|
73
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
74
|
-
field: 'create_date'
|
|
75
|
-
},
|
|
76
|
-
updateDate: {
|
|
77
|
-
type: DataTypes.DATE,
|
|
78
|
-
allowNull: false,
|
|
79
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
80
|
-
field: 'update_date'
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
sequelize,
|
|
84
|
-
tableName: 'canon_member_external_reference_relation',
|
|
85
|
-
schema: 'eb',
|
|
86
|
-
timestamps: false,
|
|
87
|
-
indexes: [
|
|
88
|
-
{
|
|
89
|
-
name: "canon_member_external_reference_relation_pk",
|
|
90
|
-
unique: true,
|
|
91
|
-
fields: [
|
|
92
|
-
{ name: "canon_member_id" },
|
|
93
|
-
{ name: "external_reference_id" },
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
]
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,92 +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 { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
5
|
-
|
|
6
|
-
export interface CanonToPlatformAlbumRelationAttributes {
|
|
7
|
-
canonAlbumId: string;
|
|
8
|
-
platformAlbumId: string;
|
|
9
|
-
createDate: Date;
|
|
10
|
-
updateDate: Date;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CanonToPlatformAlbumRelationPk = "canonAlbumId" | "platformAlbumId";
|
|
14
|
-
export type CanonToPlatformAlbumRelationId = CanonToPlatformAlbumRelation[CanonToPlatformAlbumRelationPk];
|
|
15
|
-
export type CanonToPlatformAlbumRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
-
export type CanonToPlatformAlbumRelationCreationAttributes = Optional<CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationOptionalAttributes>;
|
|
17
|
-
|
|
18
|
-
export class CanonToPlatformAlbumRelation extends Model<CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes> implements CanonToPlatformAlbumRelationAttributes {
|
|
19
|
-
canonAlbumId!: string;
|
|
20
|
-
platformAlbumId!: string;
|
|
21
|
-
createDate!: Date;
|
|
22
|
-
updateDate!: Date;
|
|
23
|
-
|
|
24
|
-
// CanonToPlatformAlbumRelation belongsTo CanonAlbum via canonAlbumId
|
|
25
|
-
canonAlbum!: CanonAlbum;
|
|
26
|
-
getCanonAlbum!: Sequelize.BelongsToGetAssociationMixin<CanonAlbum>;
|
|
27
|
-
setCanonAlbum!: Sequelize.BelongsToSetAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
28
|
-
createCanonAlbum!: Sequelize.BelongsToCreateAssociationMixin<CanonAlbum>;
|
|
29
|
-
// CanonToPlatformAlbumRelation belongsTo PlatformAlbum via platformAlbumId
|
|
30
|
-
platformAlbum!: PlatformAlbum;
|
|
31
|
-
getPlatformAlbum!: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
32
|
-
setPlatformAlbum!: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
33
|
-
createPlatformAlbum!: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
34
|
-
|
|
35
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonToPlatformAlbumRelation {
|
|
36
|
-
return CanonToPlatformAlbumRelation.init({
|
|
37
|
-
canonAlbumId: {
|
|
38
|
-
type: DataTypes.UUID,
|
|
39
|
-
allowNull: false,
|
|
40
|
-
primaryKey: true,
|
|
41
|
-
references: {
|
|
42
|
-
model: 'canon_album',
|
|
43
|
-
key: 'id'
|
|
44
|
-
},
|
|
45
|
-
field: 'canon_album_id'
|
|
46
|
-
},
|
|
47
|
-
platformAlbumId: {
|
|
48
|
-
type: DataTypes.UUID,
|
|
49
|
-
allowNull: false,
|
|
50
|
-
primaryKey: true,
|
|
51
|
-
references: {
|
|
52
|
-
model: 'platform_album',
|
|
53
|
-
key: 'id'
|
|
54
|
-
},
|
|
55
|
-
field: 'platform_album_id'
|
|
56
|
-
},
|
|
57
|
-
createDate: {
|
|
58
|
-
type: DataTypes.DATE,
|
|
59
|
-
allowNull: false,
|
|
60
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
-
field: 'create_date'
|
|
62
|
-
},
|
|
63
|
-
updateDate: {
|
|
64
|
-
type: DataTypes.DATE,
|
|
65
|
-
allowNull: false,
|
|
66
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
-
field: 'update_date'
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
sequelize,
|
|
71
|
-
tableName: 'canon_to_platform_album_relation',
|
|
72
|
-
schema: 'eb',
|
|
73
|
-
timestamps: false,
|
|
74
|
-
indexes: [
|
|
75
|
-
{
|
|
76
|
-
name: "canon_to_platform_album_relation_pkey",
|
|
77
|
-
unique: true,
|
|
78
|
-
fields: [
|
|
79
|
-
{ name: "canon_album_id" },
|
|
80
|
-
{ name: "platform_album_id" },
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: "idx_c2p_album_platform",
|
|
85
|
-
fields: [
|
|
86
|
-
{ name: "platform_album_id" },
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
|
-
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
5
|
-
|
|
6
|
-
export interface CanonToPlatformArtistRelationAttributes {
|
|
7
|
-
canonArtistId: string;
|
|
8
|
-
platformArtistId: string;
|
|
9
|
-
createDate: Date;
|
|
10
|
-
updateDate: Date;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CanonToPlatformArtistRelationPk = "canonArtistId" | "platformArtistId";
|
|
14
|
-
export type CanonToPlatformArtistRelationId = CanonToPlatformArtistRelation[CanonToPlatformArtistRelationPk];
|
|
15
|
-
export type CanonToPlatformArtistRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
-
export type CanonToPlatformArtistRelationCreationAttributes = Optional<CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationOptionalAttributes>;
|
|
17
|
-
|
|
18
|
-
export class CanonToPlatformArtistRelation extends Model<CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes> implements CanonToPlatformArtistRelationAttributes {
|
|
19
|
-
canonArtistId!: string;
|
|
20
|
-
platformArtistId!: string;
|
|
21
|
-
createDate!: Date;
|
|
22
|
-
updateDate!: Date;
|
|
23
|
-
|
|
24
|
-
// CanonToPlatformArtistRelation belongsTo CanonArtist via canonArtistId
|
|
25
|
-
canonArtist!: CanonArtist;
|
|
26
|
-
getCanonArtist!: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
|
|
27
|
-
setCanonArtist!: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
|
|
28
|
-
createCanonArtist!: Sequelize.BelongsToCreateAssociationMixin<CanonArtist>;
|
|
29
|
-
// CanonToPlatformArtistRelation belongsTo PlatformArtist via platformArtistId
|
|
30
|
-
platformArtist!: PlatformArtist;
|
|
31
|
-
getPlatformArtist!: Sequelize.BelongsToGetAssociationMixin<PlatformArtist>;
|
|
32
|
-
setPlatformArtist!: Sequelize.BelongsToSetAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
33
|
-
createPlatformArtist!: Sequelize.BelongsToCreateAssociationMixin<PlatformArtist>;
|
|
34
|
-
|
|
35
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonToPlatformArtistRelation {
|
|
36
|
-
return CanonToPlatformArtistRelation.init({
|
|
37
|
-
canonArtistId: {
|
|
38
|
-
type: DataTypes.UUID,
|
|
39
|
-
allowNull: false,
|
|
40
|
-
primaryKey: true,
|
|
41
|
-
references: {
|
|
42
|
-
model: 'canon_artist',
|
|
43
|
-
key: 'id'
|
|
44
|
-
},
|
|
45
|
-
field: 'canon_artist_id'
|
|
46
|
-
},
|
|
47
|
-
platformArtistId: {
|
|
48
|
-
type: DataTypes.UUID,
|
|
49
|
-
allowNull: false,
|
|
50
|
-
primaryKey: true,
|
|
51
|
-
references: {
|
|
52
|
-
model: 'platform_artist',
|
|
53
|
-
key: 'id'
|
|
54
|
-
},
|
|
55
|
-
field: 'platform_artist_id'
|
|
56
|
-
},
|
|
57
|
-
createDate: {
|
|
58
|
-
type: DataTypes.DATE,
|
|
59
|
-
allowNull: false,
|
|
60
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
-
field: 'create_date'
|
|
62
|
-
},
|
|
63
|
-
updateDate: {
|
|
64
|
-
type: DataTypes.DATE,
|
|
65
|
-
allowNull: false,
|
|
66
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
-
field: 'update_date'
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
sequelize,
|
|
71
|
-
tableName: 'canon_to_platform_artist_relation',
|
|
72
|
-
schema: 'eb',
|
|
73
|
-
timestamps: false,
|
|
74
|
-
indexes: [
|
|
75
|
-
{
|
|
76
|
-
name: "canon_to_platform_artist_relation_pkey",
|
|
77
|
-
unique: true,
|
|
78
|
-
fields: [
|
|
79
|
-
{ name: "canon_artist_id" },
|
|
80
|
-
{ name: "platform_artist_id" },
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: "idx_c2p_artist_platform",
|
|
85
|
-
fields: [
|
|
86
|
-
{ name: "platform_artist_id" },
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|