@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,232 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { CanonAlbumGenreRelation, CanonAlbumGenreRelationId } from './CanonAlbumGenreRelation';
|
|
5
|
+
import type { CanonAlbumLabelRelation, CanonAlbumLabelRelationId } from './CanonAlbumLabelRelation';
|
|
6
|
+
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
7
|
+
import type { CanonArtistAlbumRelation, CanonArtistAlbumRelationId } from './CanonArtistAlbumRelation';
|
|
8
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
9
|
+
import type { CanonLabel, CanonLabelId } from './CanonLabel';
|
|
10
|
+
import type { CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId } from './CanonToPlatformAlbumRelation';
|
|
11
|
+
import type { Platform, PlatformId } from './Platform';
|
|
12
|
+
import type { PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId } from './PlatformAlbumGenreRelation';
|
|
13
|
+
import type { PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId } from './PlatformAlbumTrackRelation';
|
|
14
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
15
|
+
import type { PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId } from './PlatformArtistAlbumRelation';
|
|
16
|
+
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
17
|
+
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
18
|
+
import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
|
|
19
|
+
import type { UnmatchedAlbum, UnmatchedAlbumId } from './UnmatchedAlbum';
|
|
20
|
+
export interface PlatformAlbumAttributes {
|
|
21
|
+
id: string;
|
|
22
|
+
platformId: number;
|
|
23
|
+
externalAlbumId: string;
|
|
24
|
+
name: string;
|
|
25
|
+
asciiName: string;
|
|
26
|
+
albumType?: string;
|
|
27
|
+
releaseDate?: string;
|
|
28
|
+
popularity?: number;
|
|
29
|
+
recordLabel?: string;
|
|
30
|
+
createDate: Date;
|
|
31
|
+
updateDate: Date;
|
|
32
|
+
images?: object;
|
|
33
|
+
}
|
|
34
|
+
export type PlatformAlbumPk = "id";
|
|
35
|
+
export type PlatformAlbumId = PlatformAlbum[PlatformAlbumPk];
|
|
36
|
+
export type PlatformAlbumOptionalAttributes = "id" | "albumType" | "releaseDate" | "popularity" | "recordLabel" | "createDate" | "updateDate" | "images";
|
|
37
|
+
export type PlatformAlbumCreationAttributes = Optional<PlatformAlbumAttributes, PlatformAlbumOptionalAttributes>;
|
|
38
|
+
export declare class PlatformAlbum extends Model<PlatformAlbumAttributes, PlatformAlbumCreationAttributes> implements PlatformAlbumAttributes {
|
|
39
|
+
id: string;
|
|
40
|
+
platformId: number;
|
|
41
|
+
externalAlbumId: string;
|
|
42
|
+
name: string;
|
|
43
|
+
asciiName: string;
|
|
44
|
+
albumType?: string;
|
|
45
|
+
releaseDate?: string;
|
|
46
|
+
popularity?: number;
|
|
47
|
+
recordLabel?: string;
|
|
48
|
+
createDate: Date;
|
|
49
|
+
updateDate: Date;
|
|
50
|
+
images?: object;
|
|
51
|
+
platform: Platform;
|
|
52
|
+
getPlatform: Sequelize.BelongsToGetAssociationMixin<Platform>;
|
|
53
|
+
setPlatform: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
|
|
54
|
+
createPlatform: Sequelize.BelongsToCreateAssociationMixin<Platform>;
|
|
55
|
+
canonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: CanonAlbum[];
|
|
56
|
+
getCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonAlbum>;
|
|
57
|
+
setCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
58
|
+
addCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyAddAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
59
|
+
addCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyAddAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
60
|
+
createCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyCreateAssociationMixin<CanonAlbum>;
|
|
61
|
+
removeCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyRemoveAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
62
|
+
removeCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
63
|
+
hasCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyHasAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
64
|
+
hasCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyHasAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
65
|
+
countCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
66
|
+
canonAlbumGenreRelations: CanonAlbumGenreRelation[];
|
|
67
|
+
getCanonAlbumGenreRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumGenreRelation>;
|
|
68
|
+
setCanonAlbumGenreRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
69
|
+
addCanonAlbumGenreRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
70
|
+
addCanonAlbumGenreRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
71
|
+
createCanonAlbumGenreRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumGenreRelation>;
|
|
72
|
+
removeCanonAlbumGenreRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
73
|
+
removeCanonAlbumGenreRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
74
|
+
hasCanonAlbumGenreRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
75
|
+
hasCanonAlbumGenreRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
|
|
76
|
+
countCanonAlbumGenreRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
77
|
+
canonAlbumLabelRelations: CanonAlbumLabelRelation[];
|
|
78
|
+
getCanonAlbumLabelRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumLabelRelation>;
|
|
79
|
+
setCanonAlbumLabelRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
80
|
+
addCanonAlbumLabelRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
81
|
+
addCanonAlbumLabelRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
82
|
+
createCanonAlbumLabelRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumLabelRelation>;
|
|
83
|
+
removeCanonAlbumLabelRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
84
|
+
removeCanonAlbumLabelRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
85
|
+
hasCanonAlbumLabelRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
86
|
+
hasCanonAlbumLabelRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
87
|
+
countCanonAlbumLabelRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
88
|
+
canonArtistIdCanonArtists: CanonArtist[];
|
|
89
|
+
getCanonArtistIdCanonArtists: Sequelize.BelongsToManyGetAssociationsMixin<CanonArtist>;
|
|
90
|
+
setCanonArtistIdCanonArtists: Sequelize.BelongsToManySetAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
91
|
+
addCanonArtistIdCanonArtist: Sequelize.BelongsToManyAddAssociationMixin<CanonArtist, CanonArtistId>;
|
|
92
|
+
addCanonArtistIdCanonArtists: Sequelize.BelongsToManyAddAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
93
|
+
createCanonArtistIdCanonArtist: Sequelize.BelongsToManyCreateAssociationMixin<CanonArtist>;
|
|
94
|
+
removeCanonArtistIdCanonArtist: Sequelize.BelongsToManyRemoveAssociationMixin<CanonArtist, CanonArtistId>;
|
|
95
|
+
removeCanonArtistIdCanonArtists: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
96
|
+
hasCanonArtistIdCanonArtist: Sequelize.BelongsToManyHasAssociationMixin<CanonArtist, CanonArtistId>;
|
|
97
|
+
hasCanonArtistIdCanonArtists: Sequelize.BelongsToManyHasAssociationsMixin<CanonArtist, CanonArtistId>;
|
|
98
|
+
countCanonArtistIdCanonArtists: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
99
|
+
canonArtistAlbumRelations: CanonArtistAlbumRelation[];
|
|
100
|
+
getCanonArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
|
|
101
|
+
setCanonArtistAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
102
|
+
addCanonArtistAlbumRelation: Sequelize.HasManyAddAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
103
|
+
addCanonArtistAlbumRelations: Sequelize.HasManyAddAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
104
|
+
createCanonArtistAlbumRelation: Sequelize.HasManyCreateAssociationMixin<CanonArtistAlbumRelation>;
|
|
105
|
+
removeCanonArtistAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
106
|
+
removeCanonArtistAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
107
|
+
hasCanonArtistAlbumRelation: Sequelize.HasManyHasAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
108
|
+
hasCanonArtistAlbumRelations: Sequelize.HasManyHasAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
109
|
+
countCanonArtistAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
110
|
+
canonGenreIdCanonGenres: CanonGenre[];
|
|
111
|
+
getCanonGenreIdCanonGenres: Sequelize.BelongsToManyGetAssociationsMixin<CanonGenre>;
|
|
112
|
+
setCanonGenreIdCanonGenres: Sequelize.BelongsToManySetAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
113
|
+
addCanonGenreIdCanonGenre: Sequelize.BelongsToManyAddAssociationMixin<CanonGenre, CanonGenreId>;
|
|
114
|
+
addCanonGenreIdCanonGenres: Sequelize.BelongsToManyAddAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
115
|
+
createCanonGenreIdCanonGenre: Sequelize.BelongsToManyCreateAssociationMixin<CanonGenre>;
|
|
116
|
+
removeCanonGenreIdCanonGenre: Sequelize.BelongsToManyRemoveAssociationMixin<CanonGenre, CanonGenreId>;
|
|
117
|
+
removeCanonGenreIdCanonGenres: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
118
|
+
hasCanonGenreIdCanonGenre: Sequelize.BelongsToManyHasAssociationMixin<CanonGenre, CanonGenreId>;
|
|
119
|
+
hasCanonGenreIdCanonGenres: Sequelize.BelongsToManyHasAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
120
|
+
countCanonGenreIdCanonGenres: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
121
|
+
canonLabelIdCanonLabels: CanonLabel[];
|
|
122
|
+
getCanonLabelIdCanonLabels: Sequelize.BelongsToManyGetAssociationsMixin<CanonLabel>;
|
|
123
|
+
setCanonLabelIdCanonLabels: Sequelize.BelongsToManySetAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
124
|
+
addCanonLabelIdCanonLabel: Sequelize.BelongsToManyAddAssociationMixin<CanonLabel, CanonLabelId>;
|
|
125
|
+
addCanonLabelIdCanonLabels: Sequelize.BelongsToManyAddAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
126
|
+
createCanonLabelIdCanonLabel: Sequelize.BelongsToManyCreateAssociationMixin<CanonLabel>;
|
|
127
|
+
removeCanonLabelIdCanonLabel: Sequelize.BelongsToManyRemoveAssociationMixin<CanonLabel, CanonLabelId>;
|
|
128
|
+
removeCanonLabelIdCanonLabels: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
129
|
+
hasCanonLabelIdCanonLabel: Sequelize.BelongsToManyHasAssociationMixin<CanonLabel, CanonLabelId>;
|
|
130
|
+
hasCanonLabelIdCanonLabels: Sequelize.BelongsToManyHasAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
131
|
+
countCanonLabelIdCanonLabels: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
132
|
+
canonToPlatformAlbumRelations: CanonToPlatformAlbumRelation[];
|
|
133
|
+
getCanonToPlatformAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformAlbumRelation>;
|
|
134
|
+
setCanonToPlatformAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
135
|
+
addCanonToPlatformAlbumRelation: Sequelize.HasManyAddAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
136
|
+
addCanonToPlatformAlbumRelations: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
137
|
+
createCanonToPlatformAlbumRelation: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformAlbumRelation>;
|
|
138
|
+
removeCanonToPlatformAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
139
|
+
removeCanonToPlatformAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
140
|
+
hasCanonToPlatformAlbumRelation: Sequelize.HasManyHasAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
141
|
+
hasCanonToPlatformAlbumRelations: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
142
|
+
countCanonToPlatformAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
143
|
+
platformAlbumGenreRelations: PlatformAlbumGenreRelation[];
|
|
144
|
+
getPlatformAlbumGenreRelations: Sequelize.HasManyGetAssociationsMixin<PlatformAlbumGenreRelation>;
|
|
145
|
+
setPlatformAlbumGenreRelations: Sequelize.HasManySetAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
146
|
+
addPlatformAlbumGenreRelation: Sequelize.HasManyAddAssociationMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
147
|
+
addPlatformAlbumGenreRelations: Sequelize.HasManyAddAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
148
|
+
createPlatformAlbumGenreRelation: Sequelize.HasManyCreateAssociationMixin<PlatformAlbumGenreRelation>;
|
|
149
|
+
removePlatformAlbumGenreRelation: Sequelize.HasManyRemoveAssociationMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
150
|
+
removePlatformAlbumGenreRelations: Sequelize.HasManyRemoveAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
151
|
+
hasPlatformAlbumGenreRelation: Sequelize.HasManyHasAssociationMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
152
|
+
hasPlatformAlbumGenreRelations: Sequelize.HasManyHasAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
|
|
153
|
+
countPlatformAlbumGenreRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
154
|
+
platformAlbumTrackRelations: PlatformAlbumTrackRelation[];
|
|
155
|
+
getPlatformAlbumTrackRelations: Sequelize.HasManyGetAssociationsMixin<PlatformAlbumTrackRelation>;
|
|
156
|
+
setPlatformAlbumTrackRelations: Sequelize.HasManySetAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
157
|
+
addPlatformAlbumTrackRelation: Sequelize.HasManyAddAssociationMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
158
|
+
addPlatformAlbumTrackRelations: Sequelize.HasManyAddAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
159
|
+
createPlatformAlbumTrackRelation: Sequelize.HasManyCreateAssociationMixin<PlatformAlbumTrackRelation>;
|
|
160
|
+
removePlatformAlbumTrackRelation: Sequelize.HasManyRemoveAssociationMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
161
|
+
removePlatformAlbumTrackRelations: Sequelize.HasManyRemoveAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
162
|
+
hasPlatformAlbumTrackRelation: Sequelize.HasManyHasAssociationMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
163
|
+
hasPlatformAlbumTrackRelations: Sequelize.HasManyHasAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
|
|
164
|
+
countPlatformAlbumTrackRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
165
|
+
platformArtistIdPlatformArtistPlatformArtistAlbumRelations: PlatformArtist[];
|
|
166
|
+
getPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
167
|
+
setPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
168
|
+
addPlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
169
|
+
addPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
170
|
+
createPlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
171
|
+
removePlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
172
|
+
removePlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
173
|
+
hasPlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
174
|
+
hasPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
175
|
+
countPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
176
|
+
platformArtistAlbumRelations: PlatformArtistAlbumRelation[];
|
|
177
|
+
getPlatformArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<PlatformArtistAlbumRelation>;
|
|
178
|
+
setPlatformArtistAlbumRelations: Sequelize.HasManySetAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
179
|
+
addPlatformArtistAlbumRelation: Sequelize.HasManyAddAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
180
|
+
addPlatformArtistAlbumRelations: Sequelize.HasManyAddAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
181
|
+
createPlatformArtistAlbumRelation: Sequelize.HasManyCreateAssociationMixin<PlatformArtistAlbumRelation>;
|
|
182
|
+
removePlatformArtistAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
183
|
+
removePlatformArtistAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
184
|
+
hasPlatformArtistAlbumRelation: Sequelize.HasManyHasAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
185
|
+
hasPlatformArtistAlbumRelations: Sequelize.HasManyHasAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
|
|
186
|
+
countPlatformArtistAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
187
|
+
platformGenreIdPlatformGenrePlatformAlbumGenreRelations: PlatformGenre[];
|
|
188
|
+
getPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformGenre>;
|
|
189
|
+
setPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
190
|
+
addPlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
191
|
+
addPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
192
|
+
createPlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformGenre>;
|
|
193
|
+
removePlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
194
|
+
removePlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
195
|
+
hasPlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
196
|
+
hasPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
197
|
+
countPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
198
|
+
platformTrackIdPlatformTrackPlatformAlbumTrackRelations: PlatformTrack[];
|
|
199
|
+
getPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformTrack>;
|
|
200
|
+
setPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
201
|
+
addPlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
202
|
+
addPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
203
|
+
createPlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformTrack>;
|
|
204
|
+
removePlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
205
|
+
removePlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
206
|
+
hasPlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
207
|
+
hasPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
208
|
+
countPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
209
|
+
platformUserAlbums: PlatformUserAlbum[];
|
|
210
|
+
getPlatformUserAlbums: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbum>;
|
|
211
|
+
setPlatformUserAlbums: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
212
|
+
addPlatformUserAlbum: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
213
|
+
addPlatformUserAlbums: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
214
|
+
createPlatformUserAlbum: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbum>;
|
|
215
|
+
removePlatformUserAlbum: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
216
|
+
removePlatformUserAlbums: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
217
|
+
hasPlatformUserAlbum: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
218
|
+
hasPlatformUserAlbums: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
219
|
+
countPlatformUserAlbums: Sequelize.HasManyCountAssociationsMixin;
|
|
220
|
+
unmatchedAlbums: UnmatchedAlbum[];
|
|
221
|
+
getUnmatchedAlbums: Sequelize.HasManyGetAssociationsMixin<UnmatchedAlbum>;
|
|
222
|
+
setUnmatchedAlbums: Sequelize.HasManySetAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
223
|
+
addUnmatchedAlbum: Sequelize.HasManyAddAssociationMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
224
|
+
addUnmatchedAlbums: Sequelize.HasManyAddAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
225
|
+
createUnmatchedAlbum: Sequelize.HasManyCreateAssociationMixin<UnmatchedAlbum>;
|
|
226
|
+
removeUnmatchedAlbum: Sequelize.HasManyRemoveAssociationMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
227
|
+
removeUnmatchedAlbums: Sequelize.HasManyRemoveAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
228
|
+
hasUnmatchedAlbum: Sequelize.HasManyHasAssociationMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
229
|
+
hasUnmatchedAlbums: Sequelize.HasManyHasAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
|
|
230
|
+
countUnmatchedAlbums: Sequelize.HasManyCountAssociationsMixin;
|
|
231
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformAlbum;
|
|
232
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.PlatformAlbum = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class PlatformAlbum extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return PlatformAlbum.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
platformId: {
|
|
39
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
unique: "uk_platform_id_external_album_id",
|
|
46
|
+
field: 'platform_id'
|
|
47
|
+
},
|
|
48
|
+
externalAlbumId: {
|
|
49
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
unique: "uk_platform_id_external_album_id",
|
|
52
|
+
field: 'external_album_id'
|
|
53
|
+
},
|
|
54
|
+
name: {
|
|
55
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
56
|
+
allowNull: false
|
|
57
|
+
},
|
|
58
|
+
asciiName: {
|
|
59
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
field: 'ascii_name'
|
|
62
|
+
},
|
|
63
|
+
albumType: {
|
|
64
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
65
|
+
allowNull: true,
|
|
66
|
+
field: 'album_type'
|
|
67
|
+
},
|
|
68
|
+
releaseDate: {
|
|
69
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
70
|
+
allowNull: true,
|
|
71
|
+
field: 'release_date'
|
|
72
|
+
},
|
|
73
|
+
popularity: {
|
|
74
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
75
|
+
allowNull: true
|
|
76
|
+
},
|
|
77
|
+
recordLabel: {
|
|
78
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
79
|
+
allowNull: true,
|
|
80
|
+
field: 'record_label'
|
|
81
|
+
},
|
|
82
|
+
createDate: {
|
|
83
|
+
type: sequelize_1.DataTypes.DATE,
|
|
84
|
+
allowNull: false,
|
|
85
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
86
|
+
field: 'create_date'
|
|
87
|
+
},
|
|
88
|
+
updateDate: {
|
|
89
|
+
type: sequelize_1.DataTypes.DATE,
|
|
90
|
+
allowNull: false,
|
|
91
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
92
|
+
field: 'update_date'
|
|
93
|
+
},
|
|
94
|
+
images: {
|
|
95
|
+
type: sequelize_1.DataTypes.JSONB,
|
|
96
|
+
allowNull: true
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
sequelize,
|
|
100
|
+
tableName: 'platform_album',
|
|
101
|
+
schema: 'eb',
|
|
102
|
+
timestamps: false,
|
|
103
|
+
indexes: [
|
|
104
|
+
{
|
|
105
|
+
name: "platform_album_pkey",
|
|
106
|
+
unique: true,
|
|
107
|
+
fields: [
|
|
108
|
+
{ name: "id" },
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "uk_platform_id_external_album_id",
|
|
113
|
+
unique: true,
|
|
114
|
+
fields: [
|
|
115
|
+
{ name: "platform_id" },
|
|
116
|
+
{ name: "external_album_id" },
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
]
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.PlatformAlbum = PlatformAlbum;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
4
|
+
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
5
|
+
export interface PlatformAlbumGenreRelationAttributes {
|
|
6
|
+
platformAlbumId: string;
|
|
7
|
+
platformGenreId: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type PlatformAlbumGenreRelationPk = "platformAlbumId" | "platformGenreId";
|
|
12
|
+
export type PlatformAlbumGenreRelationId = PlatformAlbumGenreRelation[PlatformAlbumGenreRelationPk];
|
|
13
|
+
export type PlatformAlbumGenreRelationOptionalAttributes = "createDate" | "updateDate";
|
|
14
|
+
export type PlatformAlbumGenreRelationCreationAttributes = Optional<PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationOptionalAttributes>;
|
|
15
|
+
export declare class PlatformAlbumGenreRelation extends Model<PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes> implements PlatformAlbumGenreRelationAttributes {
|
|
16
|
+
platformAlbumId: string;
|
|
17
|
+
platformGenreId: string;
|
|
18
|
+
createDate: Date;
|
|
19
|
+
updateDate: Date;
|
|
20
|
+
platformAlbum: PlatformAlbum;
|
|
21
|
+
getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
22
|
+
setPlatformAlbum: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
23
|
+
createPlatformAlbum: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
24
|
+
platformGenre: PlatformGenre;
|
|
25
|
+
getPlatformGenre: Sequelize.BelongsToGetAssociationMixin<PlatformGenre>;
|
|
26
|
+
setPlatformGenre: Sequelize.BelongsToSetAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
27
|
+
createPlatformGenre: Sequelize.BelongsToCreateAssociationMixin<PlatformGenre>;
|
|
28
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformAlbumGenreRelation;
|
|
29
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.PlatformAlbumGenreRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class PlatformAlbumGenreRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return PlatformAlbumGenreRelation.init({
|
|
32
|
+
platformAlbumId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'platform_album',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'platform_album_id'
|
|
41
|
+
},
|
|
42
|
+
platformGenreId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'platform_genre',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'platform_genre_id'
|
|
51
|
+
},
|
|
52
|
+
createDate: {
|
|
53
|
+
type: sequelize_1.DataTypes.DATE,
|
|
54
|
+
allowNull: false,
|
|
55
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
56
|
+
field: 'create_date'
|
|
57
|
+
},
|
|
58
|
+
updateDate: {
|
|
59
|
+
type: sequelize_1.DataTypes.DATE,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
62
|
+
field: 'update_date'
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
sequelize,
|
|
66
|
+
tableName: 'platform_album_genre_relation',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "platform_album_genre_relation_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "platform_album_id" },
|
|
75
|
+
{ name: "platform_genre_id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.PlatformAlbumGenreRelation = PlatformAlbumGenreRelation;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
4
|
+
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
5
|
+
export interface PlatformAlbumTrackRelationAttributes {
|
|
6
|
+
platformAlbumId: string;
|
|
7
|
+
platformTrackId: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type PlatformAlbumTrackRelationPk = "platformAlbumId" | "platformTrackId";
|
|
12
|
+
export type PlatformAlbumTrackRelationId = PlatformAlbumTrackRelation[PlatformAlbumTrackRelationPk];
|
|
13
|
+
export type PlatformAlbumTrackRelationOptionalAttributes = "createDate" | "updateDate";
|
|
14
|
+
export type PlatformAlbumTrackRelationCreationAttributes = Optional<PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationOptionalAttributes>;
|
|
15
|
+
export declare class PlatformAlbumTrackRelation extends Model<PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes> implements PlatformAlbumTrackRelationAttributes {
|
|
16
|
+
platformAlbumId: string;
|
|
17
|
+
platformTrackId: string;
|
|
18
|
+
createDate: Date;
|
|
19
|
+
updateDate: Date;
|
|
20
|
+
platformAlbum: PlatformAlbum;
|
|
21
|
+
getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
22
|
+
setPlatformAlbum: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
23
|
+
createPlatformAlbum: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
24
|
+
platformTrack: PlatformTrack;
|
|
25
|
+
getPlatformTrack: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
|
|
26
|
+
setPlatformTrack: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
27
|
+
createPlatformTrack: Sequelize.BelongsToCreateAssociationMixin<PlatformTrack>;
|
|
28
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformAlbumTrackRelation;
|
|
29
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.PlatformAlbumTrackRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class PlatformAlbumTrackRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return PlatformAlbumTrackRelation.init({
|
|
32
|
+
platformAlbumId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'platform_album',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'platform_album_id'
|
|
41
|
+
},
|
|
42
|
+
platformTrackId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'platform_track',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'platform_track_id'
|
|
51
|
+
},
|
|
52
|
+
createDate: {
|
|
53
|
+
type: sequelize_1.DataTypes.DATE,
|
|
54
|
+
allowNull: false,
|
|
55
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
56
|
+
field: 'create_date'
|
|
57
|
+
},
|
|
58
|
+
updateDate: {
|
|
59
|
+
type: sequelize_1.DataTypes.DATE,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
62
|
+
field: 'update_date'
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
sequelize,
|
|
66
|
+
tableName: 'platform_album_track_relation',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "platform_album_track_relation_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "platform_album_id" },
|
|
75
|
+
{ name: "platform_track_id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.PlatformAlbumTrackRelation = PlatformAlbumTrackRelation;
|