@earbug/db-models 0.0.1
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/.nvmrc +1 -0
- package/dist/AppUser.d.ts +161 -0
- package/dist/AppUser.js +121 -0
- package/dist/AppUserDevice.d.ts +26 -0
- package/dist/AppUserDevice.js +88 -0
- package/dist/AppUserFollowRelation.d.ts +34 -0
- package/dist/AppUserFollowRelation.js +113 -0
- package/dist/AppUserPlatformRelation.d.ts +43 -0
- package/dist/AppUserPlatformRelation.js +132 -0
- package/dist/CanonAlbum.d.ts +119 -0
- package/dist/CanonAlbum.js +117 -0
- package/dist/CanonAlbumExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonAlbumExternalReferenceRelation.js +86 -0
- package/dist/CanonAlbumGenreRelation.d.ts +29 -0
- package/dist/CanonAlbumGenreRelation.js +82 -0
- package/dist/CanonAlbumImageHarvested.d.ts +30 -0
- package/dist/CanonAlbumImageHarvested.js +78 -0
- package/dist/CanonAlbumLabelRelation.d.ts +29 -0
- package/dist/CanonAlbumLabelRelation.js +82 -0
- package/dist/CanonAlbumTrackRelation.d.ts +29 -0
- package/dist/CanonAlbumTrackRelation.js +82 -0
- package/dist/CanonArtist.d.ts +91 -0
- package/dist/CanonArtist.js +114 -0
- package/dist/CanonArtistAlbumRelation.d.ts +29 -0
- package/dist/CanonArtistAlbumRelation.js +82 -0
- package/dist/CanonArtistExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonArtistExternalReferenceRelation.js +86 -0
- package/dist/CanonArtistGenreRelation.d.ts +29 -0
- package/dist/CanonArtistGenreRelation.js +82 -0
- package/dist/CanonArtistImageHarvested.d.ts +30 -0
- package/dist/CanonArtistImageHarvested.js +70 -0
- package/dist/CanonArtistMemberRelation.d.ts +29 -0
- package/dist/CanonArtistMemberRelation.js +82 -0
- package/dist/CanonArtistTrackRelation.d.ts +29 -0
- package/dist/CanonArtistTrackRelation.js +82 -0
- package/dist/CanonGenre.d.ts +133 -0
- package/dist/CanonGenre.js +93 -0
- package/dist/CanonGenreExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonGenreExternalReferenceRelation.js +86 -0
- package/dist/CanonLabel.d.ts +69 -0
- package/dist/CanonLabel.js +83 -0
- package/dist/CanonLabelExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonLabelExternalReferenceRelation.js +86 -0
- package/dist/CanonMember.d.ts +71 -0
- package/dist/CanonMember.js +82 -0
- package/dist/CanonMemberExternalReferenceRelation.d.ts +33 -0
- package/dist/CanonMemberExternalReferenceRelation.js +91 -0
- package/dist/CanonToPlatformAlbumRelation.d.ts +29 -0
- package/dist/CanonToPlatformAlbumRelation.js +82 -0
- package/dist/CanonToPlatformArtistRelation.d.ts +29 -0
- package/dist/CanonToPlatformArtistRelation.js +82 -0
- package/dist/CanonToPlatformGenreRelation.d.ts +29 -0
- package/dist/CanonToPlatformGenreRelation.js +82 -0
- package/dist/CanonToPlatformTrackRelation.d.ts +29 -0
- package/dist/CanonToPlatformTrackRelation.js +82 -0
- package/dist/CanonTrack.d.ts +89 -0
- package/dist/CanonTrack.js +99 -0
- package/dist/ConfigParam.d.ts +19 -0
- package/dist/ConfigParam.js +70 -0
- package/dist/ExternalReference.d.ts +139 -0
- package/dist/ExternalReference.js +79 -0
- package/dist/JukeboxAccessType.d.ts +26 -0
- package/dist/JukeboxAccessType.js +36 -0
- package/dist/JukeboxCanonGenreRelation.d.ts +33 -0
- package/dist/JukeboxCanonGenreRelation.js +101 -0
- package/dist/JukeboxInvite.d.ts +39 -0
- package/dist/JukeboxInvite.js +98 -0
- package/dist/JukeboxQueueEntry.d.ts +74 -0
- package/dist/JukeboxQueueEntry.js +142 -0
- package/dist/JukeboxQueueMode.d.ts +26 -0
- package/dist/JukeboxQueueMode.js +36 -0
- package/dist/JukeboxSession.d.ts +108 -0
- package/dist/JukeboxSession.js +133 -0
- package/dist/JukeboxStatus.d.ts +26 -0
- package/dist/JukeboxStatus.js +34 -0
- package/dist/JukeboxTerminationCondition.d.ts +26 -0
- package/dist/JukeboxTerminationCondition.js +36 -0
- package/dist/JukeboxType.d.ts +26 -0
- package/dist/JukeboxType.js +36 -0
- package/dist/JukeboxUser.d.ts +56 -0
- package/dist/JukeboxUser.js +135 -0
- package/dist/JukeboxUserType.d.ts +26 -0
- package/dist/JukeboxUserType.js +34 -0
- package/dist/KnexMigrations.d.ts +19 -0
- package/dist/KnexMigrations.js +44 -0
- package/dist/KnexMigrationsLock.d.ts +15 -0
- package/dist/KnexMigrationsLock.js +36 -0
- package/dist/MetricsDaily.d.ts +19 -0
- package/dist/MetricsDaily.js +87 -0
- package/dist/MetricsEvent.d.ts +23 -0
- package/dist/MetricsEvent.js +117 -0
- package/dist/NewsSite.d.ts +21 -0
- package/dist/NewsSite.js +57 -0
- package/dist/PauseStatusType.d.ts +26 -0
- package/dist/PauseStatusType.js +34 -0
- package/dist/Platform.d.ts +127 -0
- package/dist/Platform.js +80 -0
- package/dist/PlatformAlbum.d.ts +232 -0
- package/dist/PlatformAlbum.js +123 -0
- package/dist/PlatformAlbumGenreRelation.d.ts +29 -0
- package/dist/PlatformAlbumGenreRelation.js +82 -0
- package/dist/PlatformAlbumTrackRelation.d.ts +29 -0
- package/dist/PlatformAlbumTrackRelation.js +82 -0
- package/dist/PlatformArtist.d.ts +225 -0
- package/dist/PlatformArtist.js +109 -0
- package/dist/PlatformArtistAlbumRelation.d.ts +29 -0
- package/dist/PlatformArtistAlbumRelation.js +82 -0
- package/dist/PlatformArtistGenreRelation.d.ts +29 -0
- package/dist/PlatformArtistGenreRelation.js +82 -0
- package/dist/PlatformArtistTrackRelation.d.ts +29 -0
- package/dist/PlatformArtistTrackRelation.js +82 -0
- package/dist/PlatformGenre.d.ts +122 -0
- package/dist/PlatformGenre.js +90 -0
- package/dist/PlatformTrack.d.ts +183 -0
- package/dist/PlatformTrack.js +129 -0
- package/dist/PlatformTrackGenreRelation.d.ts +29 -0
- package/dist/PlatformTrackGenreRelation.js +82 -0
- package/dist/PlatformUserAlbum.d.ts +54 -0
- package/dist/PlatformUserAlbum.js +121 -0
- package/dist/PlatformUserAlbumTrack.d.ts +42 -0
- package/dist/PlatformUserAlbumTrack.js +121 -0
- package/dist/PlatformUserPlaylist.d.ts +62 -0
- package/dist/PlatformUserPlaylist.js +135 -0
- package/dist/PlatformUserPlaylistTrack.d.ts +48 -0
- package/dist/PlatformUserPlaylistTrack.js +132 -0
- package/dist/PlaybackStatus.d.ts +26 -0
- package/dist/PlaybackStatus.js +36 -0
- package/dist/State.d.ts +50 -0
- package/dist/State.js +36 -0
- package/dist/TrackDeletionReason.d.ts +26 -0
- package/dist/TrackDeletionReason.js +34 -0
- package/dist/UnmatchedAlbum.d.ts +22 -0
- package/dist/UnmatchedAlbum.js +70 -0
- package/dist/UnmatchedArtist.d.ts +26 -0
- package/dist/UnmatchedArtist.js +81 -0
- package/dist/UserContacts.d.ts +46 -0
- package/dist/UserContacts.js +105 -0
- package/dist/init-models.d.ts +209 -0
- package/dist/init-models.js +507 -0
- package/model_options.json +3 -0
- package/models/AppUser.ts +267 -0
- package/models/AppUserDevice.ts +88 -0
- package/models/AppUserFollowRelation.ts +122 -0
- package/models/AppUserPlatformRelation.ts +150 -0
- package/models/CanonAlbum.ts +216 -0
- package/models/CanonAlbumExternalReferenceRelation.ts +92 -0
- package/models/CanonAlbumGenreRelation.ts +86 -0
- package/models/CanonAlbumImageHarvested.ts +106 -0
- package/models/CanonAlbumLabelRelation.ts +86 -0
- package/models/CanonAlbumTrackRelation.ts +86 -0
- package/models/CanonArtist.ts +183 -0
- package/models/CanonArtistAlbumRelation.ts +86 -0
- package/models/CanonArtistExternalReferenceRelation.ts +92 -0
- package/models/CanonArtistGenreRelation.ts +86 -0
- package/models/CanonArtistImageHarvested.ts +98 -0
- package/models/CanonArtistMemberRelation.ts +86 -0
- package/models/CanonArtistTrackRelation.ts +86 -0
- package/models/CanonGenre.ts +208 -0
- package/models/CanonGenreExternalReferenceRelation.ts +92 -0
- package/models/CanonLabel.ts +129 -0
- package/models/CanonLabelExternalReferenceRelation.ts +92 -0
- package/models/CanonMember.ts +130 -0
- package/models/CanonMemberExternalReferenceRelation.ts +99 -0
- package/models/CanonToPlatformAlbumRelation.ts +86 -0
- package/models/CanonToPlatformArtistRelation.ts +86 -0
- package/models/CanonToPlatformGenreRelation.ts +86 -0
- package/models/CanonToPlatformTrackRelation.ts +86 -0
- package/models/CanonTrack.ts +167 -0
- package/models/ConfigParam.ts +62 -0
- package/models/ExternalReference.ts +201 -0
- package/models/JukeboxAccessType.ts +60 -0
- package/models/JukeboxCanonGenreRelation.ts +109 -0
- package/models/JukeboxInvite.ts +113 -0
- package/models/JukeboxQueueEntry.ts +195 -0
- package/models/JukeboxQueueMode.ts +60 -0
- package/models/JukeboxSession.ts +223 -0
- package/models/JukeboxStatus.ts +58 -0
- package/models/JukeboxTerminationCondition.ts +60 -0
- package/models/JukeboxType.ts +60 -0
- package/models/JukeboxUser.ts +169 -0
- package/models/JukeboxUserType.ts +58 -0
- package/models/KnexMigrations.ts +60 -0
- package/models/KnexMigrationsLock.ts +48 -0
- package/models/MetricsDaily.ts +79 -0
- package/models/MetricsEvent.ts +114 -0
- package/models/NewsSite.ts +75 -0
- package/models/PauseStatusType.ts +58 -0
- package/models/Platform.ts +189 -0
- package/models/PlatformAlbum.ts +345 -0
- package/models/PlatformAlbumGenreRelation.ts +86 -0
- package/models/PlatformAlbumTrackRelation.ts +86 -0
- package/models/PlatformArtist.ts +324 -0
- package/models/PlatformArtistAlbumRelation.ts +86 -0
- package/models/PlatformArtistGenreRelation.ts +86 -0
- package/models/PlatformArtistTrackRelation.ts +86 -0
- package/models/PlatformGenre.ts +194 -0
- package/models/PlatformTrack.ts +298 -0
- package/models/PlatformTrackGenreRelation.ts +86 -0
- package/models/PlatformUserAlbum.ts +152 -0
- package/models/PlatformUserAlbumTrack.ts +139 -0
- package/models/PlatformUserPlaylist.ts +174 -0
- package/models/PlatformUserPlaylistTrack.ts +156 -0
- package/models/PlaybackStatus.ts +60 -0
- package/models/State.ts +86 -0
- package/models/TrackDeletionReason.ts +58 -0
- package/models/UnmatchedAlbum.ts +66 -0
- package/models/UnmatchedArtist.ts +81 -0
- package/models/UserContacts.ts +149 -0
- package/models/init-models.ts +716 -0
- package/package.json +19 -0
- package/tsconfig.json +52 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
|
+
import type { CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId } from './CanonArtistExternalReferenceRelation';
|
|
5
|
+
import type { CanonArtistGenreRelation, CanonArtistGenreRelationId } from './CanonArtistGenreRelation';
|
|
6
|
+
import type { CanonArtistMemberRelation, CanonArtistMemberRelationId } from './CanonArtistMemberRelation';
|
|
7
|
+
import type { CanonArtistTrackRelation, CanonArtistTrackRelationId } from './CanonArtistTrackRelation';
|
|
8
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
9
|
+
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
10
|
+
import type { CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId } from './CanonToPlatformArtistRelation';
|
|
11
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
12
|
+
import type { Platform, PlatformId } from './Platform';
|
|
13
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
14
|
+
import type { PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId } from './PlatformArtistAlbumRelation';
|
|
15
|
+
import type { PlatformArtistGenreRelation, PlatformArtistGenreRelationId } from './PlatformArtistGenreRelation';
|
|
16
|
+
import type { PlatformArtistTrackRelation, PlatformArtistTrackRelationId } from './PlatformArtistTrackRelation';
|
|
17
|
+
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
18
|
+
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
19
|
+
|
|
20
|
+
export interface PlatformArtistAttributes {
|
|
21
|
+
id: string;
|
|
22
|
+
externalArtistId: string;
|
|
23
|
+
platformId: number;
|
|
24
|
+
name: string;
|
|
25
|
+
asciiName: string;
|
|
26
|
+
externalUri?: string;
|
|
27
|
+
createDate: Date;
|
|
28
|
+
updateDate: Date;
|
|
29
|
+
genres?: string[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type PlatformArtistPk = "id";
|
|
33
|
+
export type PlatformArtistId = PlatformArtist[PlatformArtistPk];
|
|
34
|
+
export type PlatformArtistOptionalAttributes = "id" | "externalUri" | "createDate" | "updateDate" | "genres";
|
|
35
|
+
export type PlatformArtistCreationAttributes = Optional<PlatformArtistAttributes, PlatformArtistOptionalAttributes>;
|
|
36
|
+
|
|
37
|
+
export class PlatformArtist extends Model<PlatformArtistAttributes, PlatformArtistCreationAttributes> implements PlatformArtistAttributes {
|
|
38
|
+
id!: string;
|
|
39
|
+
externalArtistId!: string;
|
|
40
|
+
platformId!: number;
|
|
41
|
+
name!: string;
|
|
42
|
+
asciiName!: string;
|
|
43
|
+
externalUri?: string;
|
|
44
|
+
createDate!: Date;
|
|
45
|
+
updateDate!: Date;
|
|
46
|
+
genres?: string[];
|
|
47
|
+
|
|
48
|
+
// PlatformArtist belongsTo Platform via platformId
|
|
49
|
+
platform!: Platform;
|
|
50
|
+
getPlatform!: Sequelize.BelongsToGetAssociationMixin<Platform>;
|
|
51
|
+
setPlatform!: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
|
|
52
|
+
createPlatform!: Sequelize.BelongsToCreateAssociationMixin<Platform>;
|
|
53
|
+
// PlatformArtist belongsToMany CanonArtist via platformArtistId and canonArtistId
|
|
54
|
+
canonArtistIdCanonArtistCanonToPlatformArtistRelations!: CanonArtist[];
|
|
55
|
+
getCanonArtistIdCanonArtistCanonToPlatformArtistRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonArtist>;
|
|
56
|
+
setCanonArtistIdCanonArtistCanonToPlatformArtistRelations!: Sequelize.BelongsToManySetAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
57
|
+
addCanonArtistIdCanonArtistCanonToPlatformArtistRelation!: Sequelize.BelongsToManyAddAssociationMixin<CanonArtist, CanonArtistId>;
|
|
58
|
+
addCanonArtistIdCanonArtistCanonToPlatformArtistRelations!: Sequelize.BelongsToManyAddAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
59
|
+
createCanonArtistIdCanonArtistCanonToPlatformArtistRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonArtist>;
|
|
60
|
+
removeCanonArtistIdCanonArtistCanonToPlatformArtistRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonArtist, CanonArtistId>;
|
|
61
|
+
removeCanonArtistIdCanonArtistCanonToPlatformArtistRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
62
|
+
hasCanonArtistIdCanonArtistCanonToPlatformArtistRelation!: Sequelize.BelongsToManyHasAssociationMixin<CanonArtist, CanonArtistId>;
|
|
63
|
+
hasCanonArtistIdCanonArtistCanonToPlatformArtistRelations!: Sequelize.BelongsToManyHasAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
64
|
+
countCanonArtistIdCanonArtistCanonToPlatformArtistRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
65
|
+
// PlatformArtist hasMany CanonArtistExternalReferenceRelation via canonArtistId
|
|
66
|
+
canonArtistExternalReferenceRelations!: CanonArtistExternalReferenceRelation[];
|
|
67
|
+
getCanonArtistExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistExternalReferenceRelation>;
|
|
68
|
+
setCanonArtistExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
69
|
+
addCanonArtistExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
70
|
+
addCanonArtistExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
71
|
+
createCanonArtistExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistExternalReferenceRelation>;
|
|
72
|
+
removeCanonArtistExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
73
|
+
removeCanonArtistExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
74
|
+
hasCanonArtistExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
75
|
+
hasCanonArtistExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
76
|
+
countCanonArtistExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
77
|
+
// PlatformArtist hasMany CanonArtistGenreRelation via canonArtistId
|
|
78
|
+
canonArtistGenreRelations!: CanonArtistGenreRelation[];
|
|
79
|
+
getCanonArtistGenreRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistGenreRelation>;
|
|
80
|
+
setCanonArtistGenreRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
81
|
+
addCanonArtistGenreRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
82
|
+
addCanonArtistGenreRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
83
|
+
createCanonArtistGenreRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistGenreRelation>;
|
|
84
|
+
removeCanonArtistGenreRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
85
|
+
removeCanonArtistGenreRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
86
|
+
hasCanonArtistGenreRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
87
|
+
hasCanonArtistGenreRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistGenreRelation, CanonArtistGenreRelationId>;
|
|
88
|
+
countCanonArtistGenreRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
89
|
+
// PlatformArtist hasMany CanonArtistMemberRelation via canonArtistId
|
|
90
|
+
canonArtistMemberRelations!: CanonArtistMemberRelation[];
|
|
91
|
+
getCanonArtistMemberRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistMemberRelation>;
|
|
92
|
+
setCanonArtistMemberRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
93
|
+
addCanonArtistMemberRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
94
|
+
addCanonArtistMemberRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
95
|
+
createCanonArtistMemberRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistMemberRelation>;
|
|
96
|
+
removeCanonArtistMemberRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
97
|
+
removeCanonArtistMemberRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
98
|
+
hasCanonArtistMemberRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
99
|
+
hasCanonArtistMemberRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
100
|
+
countCanonArtistMemberRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
101
|
+
// PlatformArtist hasMany CanonArtistTrackRelation via canonArtistId
|
|
102
|
+
canonArtistTrackRelations!: CanonArtistTrackRelation[];
|
|
103
|
+
getCanonArtistTrackRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistTrackRelation>;
|
|
104
|
+
setCanonArtistTrackRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
105
|
+
addCanonArtistTrackRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
106
|
+
addCanonArtistTrackRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
107
|
+
createCanonArtistTrackRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistTrackRelation>;
|
|
108
|
+
removeCanonArtistTrackRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
109
|
+
removeCanonArtistTrackRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
110
|
+
hasCanonArtistTrackRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
111
|
+
hasCanonArtistTrackRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistTrackRelation, CanonArtistTrackRelationId>;
|
|
112
|
+
countCanonArtistTrackRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
113
|
+
// PlatformArtist belongsToMany CanonGenre via canonArtistId and canonGenreId
|
|
114
|
+
canonGenreIdCanonGenreCanonArtistGenreRelations!: CanonGenre[];
|
|
115
|
+
getCanonGenreIdCanonGenreCanonArtistGenreRelations!: Sequelize.BelongsToManyGetAssociationsMixin<CanonGenre>;
|
|
116
|
+
setCanonGenreIdCanonGenreCanonArtistGenreRelations!: Sequelize.BelongsToManySetAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
117
|
+
addCanonGenreIdCanonGenreCanonArtistGenreRelation!: Sequelize.BelongsToManyAddAssociationMixin<CanonGenre, CanonGenreId>;
|
|
118
|
+
addCanonGenreIdCanonGenreCanonArtistGenreRelations!: Sequelize.BelongsToManyAddAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
119
|
+
createCanonGenreIdCanonGenreCanonArtistGenreRelation!: Sequelize.BelongsToManyCreateAssociationMixin<CanonGenre>;
|
|
120
|
+
removeCanonGenreIdCanonGenreCanonArtistGenreRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonGenre, CanonGenreId>;
|
|
121
|
+
removeCanonGenreIdCanonGenreCanonArtistGenreRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
122
|
+
hasCanonGenreIdCanonGenreCanonArtistGenreRelation!: Sequelize.BelongsToManyHasAssociationMixin<CanonGenre, CanonGenreId>;
|
|
123
|
+
hasCanonGenreIdCanonGenreCanonArtistGenreRelations!: Sequelize.BelongsToManyHasAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
124
|
+
countCanonGenreIdCanonGenreCanonArtistGenreRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
125
|
+
// PlatformArtist belongsToMany CanonMember via canonArtistId and canonMemberId
|
|
126
|
+
canonMemberIdCanonMembers!: CanonMember[];
|
|
127
|
+
getCanonMemberIdCanonMembers!: Sequelize.BelongsToManyGetAssociationsMixin<CanonMember>;
|
|
128
|
+
setCanonMemberIdCanonMembers!: Sequelize.BelongsToManySetAssociationsMixin<CanonMember, CanonMemberId>;
|
|
129
|
+
addCanonMemberIdCanonMember!: Sequelize.BelongsToManyAddAssociationMixin<CanonMember, CanonMemberId>;
|
|
130
|
+
addCanonMemberIdCanonMembers!: Sequelize.BelongsToManyAddAssociationsMixin<CanonMember, CanonMemberId>;
|
|
131
|
+
createCanonMemberIdCanonMember!: Sequelize.BelongsToManyCreateAssociationMixin<CanonMember>;
|
|
132
|
+
removeCanonMemberIdCanonMember!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonMember, CanonMemberId>;
|
|
133
|
+
removeCanonMemberIdCanonMembers!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonMember, CanonMemberId>;
|
|
134
|
+
hasCanonMemberIdCanonMember!: Sequelize.BelongsToManyHasAssociationMixin<CanonMember, CanonMemberId>;
|
|
135
|
+
hasCanonMemberIdCanonMembers!: Sequelize.BelongsToManyHasAssociationsMixin<CanonMember, CanonMemberId>;
|
|
136
|
+
countCanonMemberIdCanonMembers!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
137
|
+
// PlatformArtist hasMany CanonToPlatformArtistRelation via platformArtistId
|
|
138
|
+
canonToPlatformArtistRelations!: CanonToPlatformArtistRelation[];
|
|
139
|
+
getCanonToPlatformArtistRelations!: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformArtistRelation>;
|
|
140
|
+
setCanonToPlatformArtistRelations!: Sequelize.HasManySetAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
141
|
+
addCanonToPlatformArtistRelation!: Sequelize.HasManyAddAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
142
|
+
addCanonToPlatformArtistRelations!: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
143
|
+
createCanonToPlatformArtistRelation!: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformArtistRelation>;
|
|
144
|
+
removeCanonToPlatformArtistRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
145
|
+
removeCanonToPlatformArtistRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
146
|
+
hasCanonToPlatformArtistRelation!: Sequelize.HasManyHasAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
147
|
+
hasCanonToPlatformArtistRelations!: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
148
|
+
countCanonToPlatformArtistRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
149
|
+
// PlatformArtist belongsToMany ExternalReference via canonArtistId and externalReferenceId
|
|
150
|
+
externalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: ExternalReference[];
|
|
151
|
+
getExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
152
|
+
setExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
153
|
+
addExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
154
|
+
addExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
155
|
+
createExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
156
|
+
removeExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
157
|
+
removeExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
158
|
+
hasExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
159
|
+
hasExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
160
|
+
countExternalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
161
|
+
// PlatformArtist belongsToMany PlatformAlbum via platformArtistId and platformAlbumId
|
|
162
|
+
platformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: PlatformAlbum[];
|
|
163
|
+
getPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
|
|
164
|
+
setPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
165
|
+
addPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
166
|
+
addPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
167
|
+
createPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
|
|
168
|
+
removePlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
169
|
+
removePlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
170
|
+
hasPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
171
|
+
hasPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
172
|
+
countPlatformAlbumIdPlatformAlbumPlatformArtistAlbumRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
173
|
+
// PlatformArtist hasMany PlatformArtistAlbumRelation via platformArtistId
|
|
174
|
+
platformArtistAlbumRelations!: PlatformArtistAlbumRelation[];
|
|
175
|
+
getPlatformArtistAlbumRelations!: Sequelize.HasManyGetAssociationsMixin<PlatformArtistAlbumRelation>;
|
|
176
|
+
setPlatformArtistAlbumRelations!: Sequelize.HasManySetAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
177
|
+
addPlatformArtistAlbumRelation!: Sequelize.HasManyAddAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
178
|
+
addPlatformArtistAlbumRelations!: Sequelize.HasManyAddAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
179
|
+
createPlatformArtistAlbumRelation!: Sequelize.HasManyCreateAssociationMixin<PlatformArtistAlbumRelation>;
|
|
180
|
+
removePlatformArtistAlbumRelation!: Sequelize.HasManyRemoveAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
181
|
+
removePlatformArtistAlbumRelations!: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
182
|
+
hasPlatformArtistAlbumRelation!: Sequelize.HasManyHasAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
183
|
+
hasPlatformArtistAlbumRelations!: Sequelize.HasManyHasAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
184
|
+
countPlatformArtistAlbumRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
185
|
+
// PlatformArtist hasMany PlatformArtistGenreRelation via platformArtistId
|
|
186
|
+
platformArtistGenreRelations!: PlatformArtistGenreRelation[];
|
|
187
|
+
getPlatformArtistGenreRelations!: Sequelize.HasManyGetAssociationsMixin<PlatformArtistGenreRelation>;
|
|
188
|
+
setPlatformArtistGenreRelations!: Sequelize.HasManySetAssociationsMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
189
|
+
addPlatformArtistGenreRelation!: Sequelize.HasManyAddAssociationMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
190
|
+
addPlatformArtistGenreRelations!: Sequelize.HasManyAddAssociationsMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
191
|
+
createPlatformArtistGenreRelation!: Sequelize.HasManyCreateAssociationMixin<PlatformArtistGenreRelation>;
|
|
192
|
+
removePlatformArtistGenreRelation!: Sequelize.HasManyRemoveAssociationMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
193
|
+
removePlatformArtistGenreRelations!: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
194
|
+
hasPlatformArtistGenreRelation!: Sequelize.HasManyHasAssociationMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
195
|
+
hasPlatformArtistGenreRelations!: Sequelize.HasManyHasAssociationsMixin<PlatformArtistGenreRelation, PlatformArtistGenreRelationId>;
|
|
196
|
+
countPlatformArtistGenreRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
197
|
+
// PlatformArtist hasMany PlatformArtistTrackRelation via platformArtistId
|
|
198
|
+
platformArtistTrackRelations!: PlatformArtistTrackRelation[];
|
|
199
|
+
getPlatformArtistTrackRelations!: Sequelize.HasManyGetAssociationsMixin<PlatformArtistTrackRelation>;
|
|
200
|
+
setPlatformArtistTrackRelations!: Sequelize.HasManySetAssociationsMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
201
|
+
addPlatformArtistTrackRelation!: Sequelize.HasManyAddAssociationMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
202
|
+
addPlatformArtistTrackRelations!: Sequelize.HasManyAddAssociationsMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
203
|
+
createPlatformArtistTrackRelation!: Sequelize.HasManyCreateAssociationMixin<PlatformArtistTrackRelation>;
|
|
204
|
+
removePlatformArtistTrackRelation!: Sequelize.HasManyRemoveAssociationMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
205
|
+
removePlatformArtistTrackRelations!: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
206
|
+
hasPlatformArtistTrackRelation!: Sequelize.HasManyHasAssociationMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
207
|
+
hasPlatformArtistTrackRelations!: Sequelize.HasManyHasAssociationsMixin<PlatformArtistTrackRelation, PlatformArtistTrackRelationId>;
|
|
208
|
+
countPlatformArtistTrackRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
209
|
+
// PlatformArtist belongsToMany PlatformGenre via platformArtistId and platformGenreId
|
|
210
|
+
platformGenreIdPlatformGenrePlatformArtistGenreRelations!: PlatformGenre[];
|
|
211
|
+
getPlatformGenreIdPlatformGenrePlatformArtistGenreRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformGenre>;
|
|
212
|
+
setPlatformGenreIdPlatformGenrePlatformArtistGenreRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
213
|
+
addPlatformGenreIdPlatformGenrePlatformArtistGenreRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
214
|
+
addPlatformGenreIdPlatformGenrePlatformArtistGenreRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
215
|
+
createPlatformGenreIdPlatformGenrePlatformArtistGenreRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformGenre>;
|
|
216
|
+
removePlatformGenreIdPlatformGenrePlatformArtistGenreRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
217
|
+
removePlatformGenreIdPlatformGenrePlatformArtistGenreRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
218
|
+
hasPlatformGenreIdPlatformGenrePlatformArtistGenreRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
219
|
+
hasPlatformGenreIdPlatformGenrePlatformArtistGenreRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
220
|
+
countPlatformGenreIdPlatformGenrePlatformArtistGenreRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
221
|
+
// PlatformArtist belongsToMany PlatformTrack via canonArtistId and canonTrackId
|
|
222
|
+
canonTrackIdPlatformTracks!: PlatformTrack[];
|
|
223
|
+
getCanonTrackIdPlatformTracks!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformTrack>;
|
|
224
|
+
setCanonTrackIdPlatformTracks!: Sequelize.BelongsToManySetAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
225
|
+
addCanonTrackIdPlatformTrack!: Sequelize.BelongsToManyAddAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
226
|
+
addCanonTrackIdPlatformTracks!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
227
|
+
createCanonTrackIdPlatformTrack!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformTrack>;
|
|
228
|
+
removeCanonTrackIdPlatformTrack!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
229
|
+
removeCanonTrackIdPlatformTracks!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
230
|
+
hasCanonTrackIdPlatformTrack!: Sequelize.BelongsToManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
231
|
+
hasCanonTrackIdPlatformTracks!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
232
|
+
countCanonTrackIdPlatformTracks!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
233
|
+
// PlatformArtist belongsToMany PlatformTrack via platformArtistId and platformTrackId
|
|
234
|
+
platformTrackIdPlatformTrackPlatformArtistTrackRelations!: PlatformTrack[];
|
|
235
|
+
getPlatformTrackIdPlatformTrackPlatformArtistTrackRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformTrack>;
|
|
236
|
+
setPlatformTrackIdPlatformTrackPlatformArtistTrackRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
237
|
+
addPlatformTrackIdPlatformTrackPlatformArtistTrackRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
238
|
+
addPlatformTrackIdPlatformTrackPlatformArtistTrackRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
239
|
+
createPlatformTrackIdPlatformTrackPlatformArtistTrackRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformTrack>;
|
|
240
|
+
removePlatformTrackIdPlatformTrackPlatformArtistTrackRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
241
|
+
removePlatformTrackIdPlatformTrackPlatformArtistTrackRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
242
|
+
hasPlatformTrackIdPlatformTrackPlatformArtistTrackRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
243
|
+
hasPlatformTrackIdPlatformTrackPlatformArtistTrackRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
244
|
+
countPlatformTrackIdPlatformTrackPlatformArtistTrackRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
245
|
+
|
|
246
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformArtist {
|
|
247
|
+
return PlatformArtist.init({
|
|
248
|
+
id: {
|
|
249
|
+
type: DataTypes.UUID,
|
|
250
|
+
allowNull: false,
|
|
251
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
252
|
+
primaryKey: true
|
|
253
|
+
},
|
|
254
|
+
externalArtistId: {
|
|
255
|
+
type: DataTypes.TEXT,
|
|
256
|
+
allowNull: false,
|
|
257
|
+
unique: "uk_platform_id_external_artist_id",
|
|
258
|
+
field: 'external_artist_id'
|
|
259
|
+
},
|
|
260
|
+
platformId: {
|
|
261
|
+
type: DataTypes.SMALLINT,
|
|
262
|
+
allowNull: false,
|
|
263
|
+
references: {
|
|
264
|
+
model: 'platform',
|
|
265
|
+
key: 'id'
|
|
266
|
+
},
|
|
267
|
+
unique: "uk_platform_id_external_artist_id",
|
|
268
|
+
field: 'platform_id'
|
|
269
|
+
},
|
|
270
|
+
name: {
|
|
271
|
+
type: DataTypes.TEXT,
|
|
272
|
+
allowNull: false
|
|
273
|
+
},
|
|
274
|
+
asciiName: {
|
|
275
|
+
type: DataTypes.TEXT,
|
|
276
|
+
allowNull: false,
|
|
277
|
+
field: 'ascii_name'
|
|
278
|
+
},
|
|
279
|
+
externalUri: {
|
|
280
|
+
type: DataTypes.TEXT,
|
|
281
|
+
allowNull: true,
|
|
282
|
+
field: 'external_uri'
|
|
283
|
+
},
|
|
284
|
+
createDate: {
|
|
285
|
+
type: DataTypes.DATE,
|
|
286
|
+
allowNull: false,
|
|
287
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
288
|
+
field: 'create_date'
|
|
289
|
+
},
|
|
290
|
+
updateDate: {
|
|
291
|
+
type: DataTypes.DATE,
|
|
292
|
+
allowNull: false,
|
|
293
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
294
|
+
field: 'update_date'
|
|
295
|
+
},
|
|
296
|
+
genres: {
|
|
297
|
+
type: DataTypes.ARRAY(DataTypes.TEXT),
|
|
298
|
+
allowNull: true
|
|
299
|
+
}
|
|
300
|
+
}, {
|
|
301
|
+
sequelize,
|
|
302
|
+
tableName: 'platform_artist',
|
|
303
|
+
schema: 'eb',
|
|
304
|
+
timestamps: false,
|
|
305
|
+
indexes: [
|
|
306
|
+
{
|
|
307
|
+
name: "platform_artist_pkey",
|
|
308
|
+
unique: true,
|
|
309
|
+
fields: [
|
|
310
|
+
{ name: "id" },
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
name: "uk_platform_id_external_artist_id",
|
|
315
|
+
unique: true,
|
|
316
|
+
fields: [
|
|
317
|
+
{ name: "platform_id" },
|
|
318
|
+
{ name: "external_artist_id" },
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
]
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
4
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
5
|
+
|
|
6
|
+
export interface PlatformArtistAlbumRelationAttributes {
|
|
7
|
+
platformArtistId: string;
|
|
8
|
+
platformAlbumId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type PlatformArtistAlbumRelationPk = "platformArtistId" | "platformAlbumId";
|
|
14
|
+
export type PlatformArtistAlbumRelationId = PlatformArtistAlbumRelation[PlatformArtistAlbumRelationPk];
|
|
15
|
+
export type PlatformArtistAlbumRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type PlatformArtistAlbumRelationCreationAttributes = Optional<PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class PlatformArtistAlbumRelation extends Model<PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationCreationAttributes> implements PlatformArtistAlbumRelationAttributes {
|
|
19
|
+
platformArtistId!: string;
|
|
20
|
+
platformAlbumId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// PlatformArtistAlbumRelation belongsTo PlatformAlbum via platformAlbumId
|
|
25
|
+
platformAlbum!: PlatformAlbum;
|
|
26
|
+
getPlatformAlbum!: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
27
|
+
setPlatformAlbum!: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
28
|
+
createPlatformAlbum!: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
29
|
+
// PlatformArtistAlbumRelation 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 PlatformArtistAlbumRelation {
|
|
36
|
+
return PlatformArtistAlbumRelation.init({
|
|
37
|
+
platformArtistId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform_artist',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'platform_artist_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: 'platform_artist_album_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "platform_artist_album_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "platform_artist_id" },
|
|
80
|
+
{ name: "platform_album_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
4
|
+
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
5
|
+
|
|
6
|
+
export interface PlatformArtistGenreRelationAttributes {
|
|
7
|
+
platformArtistId: string;
|
|
8
|
+
platformGenreId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type PlatformArtistGenreRelationPk = "platformArtistId" | "platformGenreId";
|
|
14
|
+
export type PlatformArtistGenreRelationId = PlatformArtistGenreRelation[PlatformArtistGenreRelationPk];
|
|
15
|
+
export type PlatformArtistGenreRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type PlatformArtistGenreRelationCreationAttributes = Optional<PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class PlatformArtistGenreRelation extends Model<PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationCreationAttributes> implements PlatformArtistGenreRelationAttributes {
|
|
19
|
+
platformArtistId!: string;
|
|
20
|
+
platformGenreId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// PlatformArtistGenreRelation belongsTo PlatformArtist via platformArtistId
|
|
25
|
+
platformArtist!: PlatformArtist;
|
|
26
|
+
getPlatformArtist!: Sequelize.BelongsToGetAssociationMixin<PlatformArtist>;
|
|
27
|
+
setPlatformArtist!: Sequelize.BelongsToSetAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
28
|
+
createPlatformArtist!: Sequelize.BelongsToCreateAssociationMixin<PlatformArtist>;
|
|
29
|
+
// PlatformArtistGenreRelation belongsTo PlatformGenre via platformGenreId
|
|
30
|
+
platformGenre!: PlatformGenre;
|
|
31
|
+
getPlatformGenre!: Sequelize.BelongsToGetAssociationMixin<PlatformGenre>;
|
|
32
|
+
setPlatformGenre!: Sequelize.BelongsToSetAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
33
|
+
createPlatformGenre!: Sequelize.BelongsToCreateAssociationMixin<PlatformGenre>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformArtistGenreRelation {
|
|
36
|
+
return PlatformArtistGenreRelation.init({
|
|
37
|
+
platformArtistId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform_artist',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'platform_artist_id'
|
|
46
|
+
},
|
|
47
|
+
platformGenreId: {
|
|
48
|
+
type: DataTypes.UUID,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
primaryKey: true,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_genre',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_genre_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: 'platform_artist_genre_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "platform_artist_genre_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "platform_artist_id" },
|
|
80
|
+
{ name: "platform_genre_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
4
|
+
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
5
|
+
|
|
6
|
+
export interface PlatformArtistTrackRelationAttributes {
|
|
7
|
+
platformArtistId: string;
|
|
8
|
+
platformTrackId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type PlatformArtistTrackRelationPk = "platformArtistId" | "platformTrackId";
|
|
14
|
+
export type PlatformArtistTrackRelationId = PlatformArtistTrackRelation[PlatformArtistTrackRelationPk];
|
|
15
|
+
export type PlatformArtistTrackRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type PlatformArtistTrackRelationCreationAttributes = Optional<PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class PlatformArtistTrackRelation extends Model<PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationCreationAttributes> implements PlatformArtistTrackRelationAttributes {
|
|
19
|
+
platformArtistId!: string;
|
|
20
|
+
platformTrackId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// PlatformArtistTrackRelation belongsTo PlatformArtist via platformArtistId
|
|
25
|
+
platformArtist!: PlatformArtist;
|
|
26
|
+
getPlatformArtist!: Sequelize.BelongsToGetAssociationMixin<PlatformArtist>;
|
|
27
|
+
setPlatformArtist!: Sequelize.BelongsToSetAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
28
|
+
createPlatformArtist!: Sequelize.BelongsToCreateAssociationMixin<PlatformArtist>;
|
|
29
|
+
// PlatformArtistTrackRelation belongsTo PlatformTrack via platformTrackId
|
|
30
|
+
platformTrack!: PlatformTrack;
|
|
31
|
+
getPlatformTrack!: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
|
|
32
|
+
setPlatformTrack!: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
33
|
+
createPlatformTrack!: Sequelize.BelongsToCreateAssociationMixin<PlatformTrack>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformArtistTrackRelation {
|
|
36
|
+
return PlatformArtistTrackRelation.init({
|
|
37
|
+
platformArtistId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform_artist',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'platform_artist_id'
|
|
46
|
+
},
|
|
47
|
+
platformTrackId: {
|
|
48
|
+
type: DataTypes.UUID,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
primaryKey: true,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_track',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_track_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: 'platform_artist_track_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "platform_artist_track_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "platform_artist_id" },
|
|
80
|
+
{ name: "platform_track_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|