@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,507 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformAlbumGenreRelation = exports.PlatformAlbum = exports.Platform = exports.PauseStatusType = exports.NewsSite = exports.MetricsEvent = exports.MetricsDaily = exports.KnexMigrationsLock = exports.KnexMigrations = exports.JukeboxUserType = exports.JukeboxUser = exports.JukeboxType = exports.JukeboxTerminationCondition = exports.JukeboxStatus = exports.JukeboxSession = exports.JukeboxQueueMode = exports.JukeboxQueueEntry = exports.JukeboxInvite = exports.JukeboxCanonGenreRelation = exports.JukeboxAccessType = exports.ExternalReference = exports.ConfigParam = exports.CanonTrack = exports.CanonToPlatformTrackRelation = exports.CanonToPlatformGenreRelation = exports.CanonToPlatformArtistRelation = exports.CanonToPlatformAlbumRelation = exports.CanonMemberExternalReferenceRelation = exports.CanonMember = exports.CanonLabelExternalReferenceRelation = exports.CanonLabel = exports.CanonGenreExternalReferenceRelation = exports.CanonGenre = exports.CanonArtistTrackRelation = exports.CanonArtistMemberRelation = exports.CanonArtistImageHarvested = exports.CanonArtistGenreRelation = exports.CanonArtistExternalReferenceRelation = exports.CanonArtistAlbumRelation = exports.CanonArtist = exports.CanonAlbumTrackRelation = exports.CanonAlbumLabelRelation = exports.CanonAlbumImageHarvested = exports.CanonAlbumGenreRelation = exports.CanonAlbumExternalReferenceRelation = exports.CanonAlbum = exports.AppUserPlatformRelation = exports.AppUserFollowRelation = exports.AppUserDevice = exports.AppUser = void 0;
|
|
4
|
+
exports.UserContacts = exports.UnmatchedArtist = exports.UnmatchedAlbum = exports.TrackDeletionReason = exports.State = exports.PlaybackStatus = exports.PlatformUserPlaylistTrack = exports.PlatformUserPlaylist = exports.PlatformUserAlbumTrack = exports.PlatformUserAlbum = exports.PlatformTrackGenreRelation = exports.PlatformTrack = exports.PlatformGenre = exports.PlatformArtistTrackRelation = exports.PlatformArtistGenreRelation = exports.PlatformArtistAlbumRelation = exports.PlatformArtist = exports.PlatformAlbumTrackRelation = void 0;
|
|
5
|
+
exports.initModels = initModels;
|
|
6
|
+
const AppUser_1 = require("./AppUser");
|
|
7
|
+
Object.defineProperty(exports, "AppUser", { enumerable: true, get: function () { return AppUser_1.AppUser; } });
|
|
8
|
+
const AppUserDevice_1 = require("./AppUserDevice");
|
|
9
|
+
Object.defineProperty(exports, "AppUserDevice", { enumerable: true, get: function () { return AppUserDevice_1.AppUserDevice; } });
|
|
10
|
+
const AppUserFollowRelation_1 = require("./AppUserFollowRelation");
|
|
11
|
+
Object.defineProperty(exports, "AppUserFollowRelation", { enumerable: true, get: function () { return AppUserFollowRelation_1.AppUserFollowRelation; } });
|
|
12
|
+
const AppUserPlatformRelation_1 = require("./AppUserPlatformRelation");
|
|
13
|
+
Object.defineProperty(exports, "AppUserPlatformRelation", { enumerable: true, get: function () { return AppUserPlatformRelation_1.AppUserPlatformRelation; } });
|
|
14
|
+
const CanonAlbum_1 = require("./CanonAlbum");
|
|
15
|
+
Object.defineProperty(exports, "CanonAlbum", { enumerable: true, get: function () { return CanonAlbum_1.CanonAlbum; } });
|
|
16
|
+
const CanonAlbumExternalReferenceRelation_1 = require("./CanonAlbumExternalReferenceRelation");
|
|
17
|
+
Object.defineProperty(exports, "CanonAlbumExternalReferenceRelation", { enumerable: true, get: function () { return CanonAlbumExternalReferenceRelation_1.CanonAlbumExternalReferenceRelation; } });
|
|
18
|
+
const CanonAlbumGenreRelation_1 = require("./CanonAlbumGenreRelation");
|
|
19
|
+
Object.defineProperty(exports, "CanonAlbumGenreRelation", { enumerable: true, get: function () { return CanonAlbumGenreRelation_1.CanonAlbumGenreRelation; } });
|
|
20
|
+
const CanonAlbumImageHarvested_1 = require("./CanonAlbumImageHarvested");
|
|
21
|
+
Object.defineProperty(exports, "CanonAlbumImageHarvested", { enumerable: true, get: function () { return CanonAlbumImageHarvested_1.CanonAlbumImageHarvested; } });
|
|
22
|
+
const CanonAlbumLabelRelation_1 = require("./CanonAlbumLabelRelation");
|
|
23
|
+
Object.defineProperty(exports, "CanonAlbumLabelRelation", { enumerable: true, get: function () { return CanonAlbumLabelRelation_1.CanonAlbumLabelRelation; } });
|
|
24
|
+
const CanonAlbumTrackRelation_1 = require("./CanonAlbumTrackRelation");
|
|
25
|
+
Object.defineProperty(exports, "CanonAlbumTrackRelation", { enumerable: true, get: function () { return CanonAlbumTrackRelation_1.CanonAlbumTrackRelation; } });
|
|
26
|
+
const CanonArtist_1 = require("./CanonArtist");
|
|
27
|
+
Object.defineProperty(exports, "CanonArtist", { enumerable: true, get: function () { return CanonArtist_1.CanonArtist; } });
|
|
28
|
+
const CanonArtistAlbumRelation_1 = require("./CanonArtistAlbumRelation");
|
|
29
|
+
Object.defineProperty(exports, "CanonArtistAlbumRelation", { enumerable: true, get: function () { return CanonArtistAlbumRelation_1.CanonArtistAlbumRelation; } });
|
|
30
|
+
const CanonArtistExternalReferenceRelation_1 = require("./CanonArtistExternalReferenceRelation");
|
|
31
|
+
Object.defineProperty(exports, "CanonArtistExternalReferenceRelation", { enumerable: true, get: function () { return CanonArtistExternalReferenceRelation_1.CanonArtistExternalReferenceRelation; } });
|
|
32
|
+
const CanonArtistGenreRelation_1 = require("./CanonArtistGenreRelation");
|
|
33
|
+
Object.defineProperty(exports, "CanonArtistGenreRelation", { enumerable: true, get: function () { return CanonArtistGenreRelation_1.CanonArtistGenreRelation; } });
|
|
34
|
+
const CanonArtistImageHarvested_1 = require("./CanonArtistImageHarvested");
|
|
35
|
+
Object.defineProperty(exports, "CanonArtistImageHarvested", { enumerable: true, get: function () { return CanonArtistImageHarvested_1.CanonArtistImageHarvested; } });
|
|
36
|
+
const CanonArtistMemberRelation_1 = require("./CanonArtistMemberRelation");
|
|
37
|
+
Object.defineProperty(exports, "CanonArtistMemberRelation", { enumerable: true, get: function () { return CanonArtistMemberRelation_1.CanonArtistMemberRelation; } });
|
|
38
|
+
const CanonArtistTrackRelation_1 = require("./CanonArtistTrackRelation");
|
|
39
|
+
Object.defineProperty(exports, "CanonArtistTrackRelation", { enumerable: true, get: function () { return CanonArtistTrackRelation_1.CanonArtistTrackRelation; } });
|
|
40
|
+
const CanonGenre_1 = require("./CanonGenre");
|
|
41
|
+
Object.defineProperty(exports, "CanonGenre", { enumerable: true, get: function () { return CanonGenre_1.CanonGenre; } });
|
|
42
|
+
const CanonGenreExternalReferenceRelation_1 = require("./CanonGenreExternalReferenceRelation");
|
|
43
|
+
Object.defineProperty(exports, "CanonGenreExternalReferenceRelation", { enumerable: true, get: function () { return CanonGenreExternalReferenceRelation_1.CanonGenreExternalReferenceRelation; } });
|
|
44
|
+
const CanonLabel_1 = require("./CanonLabel");
|
|
45
|
+
Object.defineProperty(exports, "CanonLabel", { enumerable: true, get: function () { return CanonLabel_1.CanonLabel; } });
|
|
46
|
+
const CanonLabelExternalReferenceRelation_1 = require("./CanonLabelExternalReferenceRelation");
|
|
47
|
+
Object.defineProperty(exports, "CanonLabelExternalReferenceRelation", { enumerable: true, get: function () { return CanonLabelExternalReferenceRelation_1.CanonLabelExternalReferenceRelation; } });
|
|
48
|
+
const CanonMember_1 = require("./CanonMember");
|
|
49
|
+
Object.defineProperty(exports, "CanonMember", { enumerable: true, get: function () { return CanonMember_1.CanonMember; } });
|
|
50
|
+
const CanonMemberExternalReferenceRelation_1 = require("./CanonMemberExternalReferenceRelation");
|
|
51
|
+
Object.defineProperty(exports, "CanonMemberExternalReferenceRelation", { enumerable: true, get: function () { return CanonMemberExternalReferenceRelation_1.CanonMemberExternalReferenceRelation; } });
|
|
52
|
+
const CanonToPlatformAlbumRelation_1 = require("./CanonToPlatformAlbumRelation");
|
|
53
|
+
Object.defineProperty(exports, "CanonToPlatformAlbumRelation", { enumerable: true, get: function () { return CanonToPlatformAlbumRelation_1.CanonToPlatformAlbumRelation; } });
|
|
54
|
+
const CanonToPlatformArtistRelation_1 = require("./CanonToPlatformArtistRelation");
|
|
55
|
+
Object.defineProperty(exports, "CanonToPlatformArtistRelation", { enumerable: true, get: function () { return CanonToPlatformArtistRelation_1.CanonToPlatformArtistRelation; } });
|
|
56
|
+
const CanonToPlatformGenreRelation_1 = require("./CanonToPlatformGenreRelation");
|
|
57
|
+
Object.defineProperty(exports, "CanonToPlatformGenreRelation", { enumerable: true, get: function () { return CanonToPlatformGenreRelation_1.CanonToPlatformGenreRelation; } });
|
|
58
|
+
const CanonToPlatformTrackRelation_1 = require("./CanonToPlatformTrackRelation");
|
|
59
|
+
Object.defineProperty(exports, "CanonToPlatformTrackRelation", { enumerable: true, get: function () { return CanonToPlatformTrackRelation_1.CanonToPlatformTrackRelation; } });
|
|
60
|
+
const CanonTrack_1 = require("./CanonTrack");
|
|
61
|
+
Object.defineProperty(exports, "CanonTrack", { enumerable: true, get: function () { return CanonTrack_1.CanonTrack; } });
|
|
62
|
+
const ConfigParam_1 = require("./ConfigParam");
|
|
63
|
+
Object.defineProperty(exports, "ConfigParam", { enumerable: true, get: function () { return ConfigParam_1.ConfigParam; } });
|
|
64
|
+
const ExternalReference_1 = require("./ExternalReference");
|
|
65
|
+
Object.defineProperty(exports, "ExternalReference", { enumerable: true, get: function () { return ExternalReference_1.ExternalReference; } });
|
|
66
|
+
const JukeboxAccessType_1 = require("./JukeboxAccessType");
|
|
67
|
+
Object.defineProperty(exports, "JukeboxAccessType", { enumerable: true, get: function () { return JukeboxAccessType_1.JukeboxAccessType; } });
|
|
68
|
+
const JukeboxCanonGenreRelation_1 = require("./JukeboxCanonGenreRelation");
|
|
69
|
+
Object.defineProperty(exports, "JukeboxCanonGenreRelation", { enumerable: true, get: function () { return JukeboxCanonGenreRelation_1.JukeboxCanonGenreRelation; } });
|
|
70
|
+
const JukeboxInvite_1 = require("./JukeboxInvite");
|
|
71
|
+
Object.defineProperty(exports, "JukeboxInvite", { enumerable: true, get: function () { return JukeboxInvite_1.JukeboxInvite; } });
|
|
72
|
+
const JukeboxQueueEntry_1 = require("./JukeboxQueueEntry");
|
|
73
|
+
Object.defineProperty(exports, "JukeboxQueueEntry", { enumerable: true, get: function () { return JukeboxQueueEntry_1.JukeboxQueueEntry; } });
|
|
74
|
+
const JukeboxQueueMode_1 = require("./JukeboxQueueMode");
|
|
75
|
+
Object.defineProperty(exports, "JukeboxQueueMode", { enumerable: true, get: function () { return JukeboxQueueMode_1.JukeboxQueueMode; } });
|
|
76
|
+
const JukeboxSession_1 = require("./JukeboxSession");
|
|
77
|
+
Object.defineProperty(exports, "JukeboxSession", { enumerable: true, get: function () { return JukeboxSession_1.JukeboxSession; } });
|
|
78
|
+
const JukeboxStatus_1 = require("./JukeboxStatus");
|
|
79
|
+
Object.defineProperty(exports, "JukeboxStatus", { enumerable: true, get: function () { return JukeboxStatus_1.JukeboxStatus; } });
|
|
80
|
+
const JukeboxTerminationCondition_1 = require("./JukeboxTerminationCondition");
|
|
81
|
+
Object.defineProperty(exports, "JukeboxTerminationCondition", { enumerable: true, get: function () { return JukeboxTerminationCondition_1.JukeboxTerminationCondition; } });
|
|
82
|
+
const JukeboxType_1 = require("./JukeboxType");
|
|
83
|
+
Object.defineProperty(exports, "JukeboxType", { enumerable: true, get: function () { return JukeboxType_1.JukeboxType; } });
|
|
84
|
+
const JukeboxUser_1 = require("./JukeboxUser");
|
|
85
|
+
Object.defineProperty(exports, "JukeboxUser", { enumerable: true, get: function () { return JukeboxUser_1.JukeboxUser; } });
|
|
86
|
+
const JukeboxUserType_1 = require("./JukeboxUserType");
|
|
87
|
+
Object.defineProperty(exports, "JukeboxUserType", { enumerable: true, get: function () { return JukeboxUserType_1.JukeboxUserType; } });
|
|
88
|
+
const KnexMigrations_1 = require("./KnexMigrations");
|
|
89
|
+
Object.defineProperty(exports, "KnexMigrations", { enumerable: true, get: function () { return KnexMigrations_1.KnexMigrations; } });
|
|
90
|
+
const KnexMigrationsLock_1 = require("./KnexMigrationsLock");
|
|
91
|
+
Object.defineProperty(exports, "KnexMigrationsLock", { enumerable: true, get: function () { return KnexMigrationsLock_1.KnexMigrationsLock; } });
|
|
92
|
+
const MetricsDaily_1 = require("./MetricsDaily");
|
|
93
|
+
Object.defineProperty(exports, "MetricsDaily", { enumerable: true, get: function () { return MetricsDaily_1.MetricsDaily; } });
|
|
94
|
+
const MetricsEvent_1 = require("./MetricsEvent");
|
|
95
|
+
Object.defineProperty(exports, "MetricsEvent", { enumerable: true, get: function () { return MetricsEvent_1.MetricsEvent; } });
|
|
96
|
+
const NewsSite_1 = require("./NewsSite");
|
|
97
|
+
Object.defineProperty(exports, "NewsSite", { enumerable: true, get: function () { return NewsSite_1.NewsSite; } });
|
|
98
|
+
const PauseStatusType_1 = require("./PauseStatusType");
|
|
99
|
+
Object.defineProperty(exports, "PauseStatusType", { enumerable: true, get: function () { return PauseStatusType_1.PauseStatusType; } });
|
|
100
|
+
const Platform_1 = require("./Platform");
|
|
101
|
+
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return Platform_1.Platform; } });
|
|
102
|
+
const PlatformAlbum_1 = require("./PlatformAlbum");
|
|
103
|
+
Object.defineProperty(exports, "PlatformAlbum", { enumerable: true, get: function () { return PlatformAlbum_1.PlatformAlbum; } });
|
|
104
|
+
const PlatformAlbumGenreRelation_1 = require("./PlatformAlbumGenreRelation");
|
|
105
|
+
Object.defineProperty(exports, "PlatformAlbumGenreRelation", { enumerable: true, get: function () { return PlatformAlbumGenreRelation_1.PlatformAlbumGenreRelation; } });
|
|
106
|
+
const PlatformAlbumTrackRelation_1 = require("./PlatformAlbumTrackRelation");
|
|
107
|
+
Object.defineProperty(exports, "PlatformAlbumTrackRelation", { enumerable: true, get: function () { return PlatformAlbumTrackRelation_1.PlatformAlbumTrackRelation; } });
|
|
108
|
+
const PlatformArtist_1 = require("./PlatformArtist");
|
|
109
|
+
Object.defineProperty(exports, "PlatformArtist", { enumerable: true, get: function () { return PlatformArtist_1.PlatformArtist; } });
|
|
110
|
+
const PlatformArtistAlbumRelation_1 = require("./PlatformArtistAlbumRelation");
|
|
111
|
+
Object.defineProperty(exports, "PlatformArtistAlbumRelation", { enumerable: true, get: function () { return PlatformArtistAlbumRelation_1.PlatformArtistAlbumRelation; } });
|
|
112
|
+
const PlatformArtistGenreRelation_1 = require("./PlatformArtistGenreRelation");
|
|
113
|
+
Object.defineProperty(exports, "PlatformArtistGenreRelation", { enumerable: true, get: function () { return PlatformArtistGenreRelation_1.PlatformArtistGenreRelation; } });
|
|
114
|
+
const PlatformArtistTrackRelation_1 = require("./PlatformArtistTrackRelation");
|
|
115
|
+
Object.defineProperty(exports, "PlatformArtistTrackRelation", { enumerable: true, get: function () { return PlatformArtistTrackRelation_1.PlatformArtistTrackRelation; } });
|
|
116
|
+
const PlatformGenre_1 = require("./PlatformGenre");
|
|
117
|
+
Object.defineProperty(exports, "PlatformGenre", { enumerable: true, get: function () { return PlatformGenre_1.PlatformGenre; } });
|
|
118
|
+
const PlatformTrack_1 = require("./PlatformTrack");
|
|
119
|
+
Object.defineProperty(exports, "PlatformTrack", { enumerable: true, get: function () { return PlatformTrack_1.PlatformTrack; } });
|
|
120
|
+
const PlatformTrackGenreRelation_1 = require("./PlatformTrackGenreRelation");
|
|
121
|
+
Object.defineProperty(exports, "PlatformTrackGenreRelation", { enumerable: true, get: function () { return PlatformTrackGenreRelation_1.PlatformTrackGenreRelation; } });
|
|
122
|
+
const PlatformUserAlbum_1 = require("./PlatformUserAlbum");
|
|
123
|
+
Object.defineProperty(exports, "PlatformUserAlbum", { enumerable: true, get: function () { return PlatformUserAlbum_1.PlatformUserAlbum; } });
|
|
124
|
+
const PlatformUserAlbumTrack_1 = require("./PlatformUserAlbumTrack");
|
|
125
|
+
Object.defineProperty(exports, "PlatformUserAlbumTrack", { enumerable: true, get: function () { return PlatformUserAlbumTrack_1.PlatformUserAlbumTrack; } });
|
|
126
|
+
const PlatformUserPlaylist_1 = require("./PlatformUserPlaylist");
|
|
127
|
+
Object.defineProperty(exports, "PlatformUserPlaylist", { enumerable: true, get: function () { return PlatformUserPlaylist_1.PlatformUserPlaylist; } });
|
|
128
|
+
const PlatformUserPlaylistTrack_1 = require("./PlatformUserPlaylistTrack");
|
|
129
|
+
Object.defineProperty(exports, "PlatformUserPlaylistTrack", { enumerable: true, get: function () { return PlatformUserPlaylistTrack_1.PlatformUserPlaylistTrack; } });
|
|
130
|
+
const PlaybackStatus_1 = require("./PlaybackStatus");
|
|
131
|
+
Object.defineProperty(exports, "PlaybackStatus", { enumerable: true, get: function () { return PlaybackStatus_1.PlaybackStatus; } });
|
|
132
|
+
const State_1 = require("./State");
|
|
133
|
+
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return State_1.State; } });
|
|
134
|
+
const TrackDeletionReason_1 = require("./TrackDeletionReason");
|
|
135
|
+
Object.defineProperty(exports, "TrackDeletionReason", { enumerable: true, get: function () { return TrackDeletionReason_1.TrackDeletionReason; } });
|
|
136
|
+
const UnmatchedAlbum_1 = require("./UnmatchedAlbum");
|
|
137
|
+
Object.defineProperty(exports, "UnmatchedAlbum", { enumerable: true, get: function () { return UnmatchedAlbum_1.UnmatchedAlbum; } });
|
|
138
|
+
const UnmatchedArtist_1 = require("./UnmatchedArtist");
|
|
139
|
+
Object.defineProperty(exports, "UnmatchedArtist", { enumerable: true, get: function () { return UnmatchedArtist_1.UnmatchedArtist; } });
|
|
140
|
+
const UserContacts_1 = require("./UserContacts");
|
|
141
|
+
Object.defineProperty(exports, "UserContacts", { enumerable: true, get: function () { return UserContacts_1.UserContacts; } });
|
|
142
|
+
function initModels(sequelize) {
|
|
143
|
+
const AppUser = AppUser_1.AppUser.initModel(sequelize);
|
|
144
|
+
const AppUserDevice = AppUserDevice_1.AppUserDevice.initModel(sequelize);
|
|
145
|
+
const AppUserFollowRelation = AppUserFollowRelation_1.AppUserFollowRelation.initModel(sequelize);
|
|
146
|
+
const AppUserPlatformRelation = AppUserPlatformRelation_1.AppUserPlatformRelation.initModel(sequelize);
|
|
147
|
+
const CanonAlbum = CanonAlbum_1.CanonAlbum.initModel(sequelize);
|
|
148
|
+
const CanonAlbumExternalReferenceRelation = CanonAlbumExternalReferenceRelation_1.CanonAlbumExternalReferenceRelation.initModel(sequelize);
|
|
149
|
+
const CanonAlbumGenreRelation = CanonAlbumGenreRelation_1.CanonAlbumGenreRelation.initModel(sequelize);
|
|
150
|
+
const CanonAlbumImageHarvested = CanonAlbumImageHarvested_1.CanonAlbumImageHarvested.initModel(sequelize);
|
|
151
|
+
const CanonAlbumLabelRelation = CanonAlbumLabelRelation_1.CanonAlbumLabelRelation.initModel(sequelize);
|
|
152
|
+
const CanonAlbumTrackRelation = CanonAlbumTrackRelation_1.CanonAlbumTrackRelation.initModel(sequelize);
|
|
153
|
+
const CanonArtist = CanonArtist_1.CanonArtist.initModel(sequelize);
|
|
154
|
+
const CanonArtistAlbumRelation = CanonArtistAlbumRelation_1.CanonArtistAlbumRelation.initModel(sequelize);
|
|
155
|
+
const CanonArtistExternalReferenceRelation = CanonArtistExternalReferenceRelation_1.CanonArtistExternalReferenceRelation.initModel(sequelize);
|
|
156
|
+
const CanonArtistGenreRelation = CanonArtistGenreRelation_1.CanonArtistGenreRelation.initModel(sequelize);
|
|
157
|
+
const CanonArtistImageHarvested = CanonArtistImageHarvested_1.CanonArtistImageHarvested.initModel(sequelize);
|
|
158
|
+
const CanonArtistMemberRelation = CanonArtistMemberRelation_1.CanonArtistMemberRelation.initModel(sequelize);
|
|
159
|
+
const CanonArtistTrackRelation = CanonArtistTrackRelation_1.CanonArtistTrackRelation.initModel(sequelize);
|
|
160
|
+
const CanonGenre = CanonGenre_1.CanonGenre.initModel(sequelize);
|
|
161
|
+
const CanonGenreExternalReferenceRelation = CanonGenreExternalReferenceRelation_1.CanonGenreExternalReferenceRelation.initModel(sequelize);
|
|
162
|
+
const CanonLabel = CanonLabel_1.CanonLabel.initModel(sequelize);
|
|
163
|
+
const CanonLabelExternalReferenceRelation = CanonLabelExternalReferenceRelation_1.CanonLabelExternalReferenceRelation.initModel(sequelize);
|
|
164
|
+
const CanonMember = CanonMember_1.CanonMember.initModel(sequelize);
|
|
165
|
+
const CanonMemberExternalReferenceRelation = CanonMemberExternalReferenceRelation_1.CanonMemberExternalReferenceRelation.initModel(sequelize);
|
|
166
|
+
const CanonToPlatformAlbumRelation = CanonToPlatformAlbumRelation_1.CanonToPlatformAlbumRelation.initModel(sequelize);
|
|
167
|
+
const CanonToPlatformArtistRelation = CanonToPlatformArtistRelation_1.CanonToPlatformArtistRelation.initModel(sequelize);
|
|
168
|
+
const CanonToPlatformGenreRelation = CanonToPlatformGenreRelation_1.CanonToPlatformGenreRelation.initModel(sequelize);
|
|
169
|
+
const CanonToPlatformTrackRelation = CanonToPlatformTrackRelation_1.CanonToPlatformTrackRelation.initModel(sequelize);
|
|
170
|
+
const CanonTrack = CanonTrack_1.CanonTrack.initModel(sequelize);
|
|
171
|
+
const ConfigParam = ConfigParam_1.ConfigParam.initModel(sequelize);
|
|
172
|
+
const ExternalReference = ExternalReference_1.ExternalReference.initModel(sequelize);
|
|
173
|
+
const JukeboxAccessType = JukeboxAccessType_1.JukeboxAccessType.initModel(sequelize);
|
|
174
|
+
const JukeboxCanonGenreRelation = JukeboxCanonGenreRelation_1.JukeboxCanonGenreRelation.initModel(sequelize);
|
|
175
|
+
const JukeboxInvite = JukeboxInvite_1.JukeboxInvite.initModel(sequelize);
|
|
176
|
+
const JukeboxQueueEntry = JukeboxQueueEntry_1.JukeboxQueueEntry.initModel(sequelize);
|
|
177
|
+
const JukeboxQueueMode = JukeboxQueueMode_1.JukeboxQueueMode.initModel(sequelize);
|
|
178
|
+
const JukeboxSession = JukeboxSession_1.JukeboxSession.initModel(sequelize);
|
|
179
|
+
const JukeboxStatus = JukeboxStatus_1.JukeboxStatus.initModel(sequelize);
|
|
180
|
+
const JukeboxTerminationCondition = JukeboxTerminationCondition_1.JukeboxTerminationCondition.initModel(sequelize);
|
|
181
|
+
const JukeboxType = JukeboxType_1.JukeboxType.initModel(sequelize);
|
|
182
|
+
const JukeboxUser = JukeboxUser_1.JukeboxUser.initModel(sequelize);
|
|
183
|
+
const JukeboxUserType = JukeboxUserType_1.JukeboxUserType.initModel(sequelize);
|
|
184
|
+
const KnexMigrations = KnexMigrations_1.KnexMigrations.initModel(sequelize);
|
|
185
|
+
const KnexMigrationsLock = KnexMigrationsLock_1.KnexMigrationsLock.initModel(sequelize);
|
|
186
|
+
const MetricsDaily = MetricsDaily_1.MetricsDaily.initModel(sequelize);
|
|
187
|
+
const MetricsEvent = MetricsEvent_1.MetricsEvent.initModel(sequelize);
|
|
188
|
+
const NewsSite = NewsSite_1.NewsSite.initModel(sequelize);
|
|
189
|
+
const PauseStatusType = PauseStatusType_1.PauseStatusType.initModel(sequelize);
|
|
190
|
+
const Platform = Platform_1.Platform.initModel(sequelize);
|
|
191
|
+
const PlatformAlbum = PlatformAlbum_1.PlatformAlbum.initModel(sequelize);
|
|
192
|
+
const PlatformAlbumGenreRelation = PlatformAlbumGenreRelation_1.PlatformAlbumGenreRelation.initModel(sequelize);
|
|
193
|
+
const PlatformAlbumTrackRelation = PlatformAlbumTrackRelation_1.PlatformAlbumTrackRelation.initModel(sequelize);
|
|
194
|
+
const PlatformArtist = PlatformArtist_1.PlatformArtist.initModel(sequelize);
|
|
195
|
+
const PlatformArtistAlbumRelation = PlatformArtistAlbumRelation_1.PlatformArtistAlbumRelation.initModel(sequelize);
|
|
196
|
+
const PlatformArtistGenreRelation = PlatformArtistGenreRelation_1.PlatformArtistGenreRelation.initModel(sequelize);
|
|
197
|
+
const PlatformArtistTrackRelation = PlatformArtistTrackRelation_1.PlatformArtistTrackRelation.initModel(sequelize);
|
|
198
|
+
const PlatformGenre = PlatformGenre_1.PlatformGenre.initModel(sequelize);
|
|
199
|
+
const PlatformTrack = PlatformTrack_1.PlatformTrack.initModel(sequelize);
|
|
200
|
+
const PlatformTrackGenreRelation = PlatformTrackGenreRelation_1.PlatformTrackGenreRelation.initModel(sequelize);
|
|
201
|
+
const PlatformUserAlbum = PlatformUserAlbum_1.PlatformUserAlbum.initModel(sequelize);
|
|
202
|
+
const PlatformUserAlbumTrack = PlatformUserAlbumTrack_1.PlatformUserAlbumTrack.initModel(sequelize);
|
|
203
|
+
const PlatformUserPlaylist = PlatformUserPlaylist_1.PlatformUserPlaylist.initModel(sequelize);
|
|
204
|
+
const PlatformUserPlaylistTrack = PlatformUserPlaylistTrack_1.PlatformUserPlaylistTrack.initModel(sequelize);
|
|
205
|
+
const PlaybackStatus = PlaybackStatus_1.PlaybackStatus.initModel(sequelize);
|
|
206
|
+
const State = State_1.State.initModel(sequelize);
|
|
207
|
+
const TrackDeletionReason = TrackDeletionReason_1.TrackDeletionReason.initModel(sequelize);
|
|
208
|
+
const UnmatchedAlbum = UnmatchedAlbum_1.UnmatchedAlbum.initModel(sequelize);
|
|
209
|
+
const UnmatchedArtist = UnmatchedArtist_1.UnmatchedArtist.initModel(sequelize);
|
|
210
|
+
const UserContacts = UserContacts_1.UserContacts.initModel(sequelize);
|
|
211
|
+
CanonAlbum.belongsToMany(CanonTrack, { as: 'canonTrackIdCanonTracks', through: CanonAlbumTrackRelation, foreignKey: "canonAlbumId", otherKey: "canonTrackId" });
|
|
212
|
+
CanonAlbum.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferences', through: CanonAlbumExternalReferenceRelation, foreignKey: "canonAlbumId", otherKey: "externalReferenceId" });
|
|
213
|
+
CanonAlbum.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbums', through: CanonToPlatformAlbumRelation, foreignKey: "canonAlbumId", otherKey: "platformAlbumId" });
|
|
214
|
+
CanonArtist.belongsToMany(PlatformAlbum, { as: 'canonAlbumIdPlatformAlbumCanonArtistAlbumRelations', through: CanonArtistAlbumRelation, foreignKey: "canonArtistId", otherKey: "canonAlbumId" });
|
|
215
|
+
CanonArtist.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtists', through: CanonToPlatformArtistRelation, foreignKey: "canonArtistId", otherKey: "platformArtistId" });
|
|
216
|
+
CanonGenre.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonGenreExternalReferenceRelations', through: CanonGenreExternalReferenceRelation, foreignKey: "canonGenreId", otherKey: "externalReferenceId" });
|
|
217
|
+
CanonGenre.belongsToMany(PlatformAlbum, { as: 'canonAlbumIdPlatformAlbums', through: CanonAlbumGenreRelation, foreignKey: "canonGenreId", otherKey: "canonAlbumId" });
|
|
218
|
+
CanonGenre.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtistCanonArtistGenreRelations', through: CanonArtistGenreRelation, foreignKey: "canonGenreId", otherKey: "canonArtistId" });
|
|
219
|
+
CanonGenre.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenres', through: CanonToPlatformGenreRelation, foreignKey: "canonGenreId", otherKey: "platformGenreId" });
|
|
220
|
+
CanonLabel.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations', through: CanonLabelExternalReferenceRelation, foreignKey: "canonLabelId", otherKey: "externalReferenceId" });
|
|
221
|
+
CanonLabel.belongsToMany(PlatformAlbum, { as: 'canonAlbumIdPlatformAlbumCanonAlbumLabelRelations', through: CanonAlbumLabelRelation, foreignKey: "canonLabelId", otherKey: "canonAlbumId" });
|
|
222
|
+
CanonMember.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations', through: CanonMemberExternalReferenceRelation, foreignKey: "canonMemberId", otherKey: "externalReferenceId" });
|
|
223
|
+
CanonMember.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtistCanonArtistMemberRelations', through: CanonArtistMemberRelation, foreignKey: "canonMemberId", otherKey: "canonArtistId" });
|
|
224
|
+
CanonTrack.belongsToMany(CanonAlbum, { as: 'canonAlbumIdCanonAlbumCanonAlbumTrackRelations', through: CanonAlbumTrackRelation, foreignKey: "canonTrackId", otherKey: "canonAlbumId" });
|
|
225
|
+
CanonTrack.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTracks', through: CanonToPlatformTrackRelation, foreignKey: "canonTrackId", otherKey: "platformTrackId" });
|
|
226
|
+
ExternalReference.belongsToMany(CanonAlbum, { as: 'canonAlbumIdCanonAlbums', through: CanonAlbumExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonAlbumId" });
|
|
227
|
+
ExternalReference.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenreCanonGenreExternalReferenceRelations', through: CanonGenreExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonGenreId" });
|
|
228
|
+
ExternalReference.belongsToMany(CanonLabel, { as: 'canonLabelIdCanonLabelCanonLabelExternalReferenceRelations', through: CanonLabelExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonLabelId" });
|
|
229
|
+
ExternalReference.belongsToMany(CanonMember, { as: 'canonMemberIdCanonMemberCanonMemberExternalReferenceRelations', through: CanonMemberExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonMemberId" });
|
|
230
|
+
ExternalReference.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtists', through: CanonArtistExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonArtistId" });
|
|
231
|
+
PlatformAlbum.belongsToMany(CanonAlbum, { as: 'canonAlbumIdCanonAlbumCanonToPlatformAlbumRelations', through: CanonToPlatformAlbumRelation, foreignKey: "platformAlbumId", otherKey: "canonAlbumId" });
|
|
232
|
+
PlatformAlbum.belongsToMany(CanonArtist, { as: 'canonArtistIdCanonArtists', through: CanonArtistAlbumRelation, foreignKey: "canonAlbumId", otherKey: "canonArtistId" });
|
|
233
|
+
PlatformAlbum.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenres', through: CanonAlbumGenreRelation, foreignKey: "canonAlbumId", otherKey: "canonGenreId" });
|
|
234
|
+
PlatformAlbum.belongsToMany(CanonLabel, { as: 'canonLabelIdCanonLabels', through: CanonAlbumLabelRelation, foreignKey: "canonAlbumId", otherKey: "canonLabelId" });
|
|
235
|
+
PlatformAlbum.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtistPlatformArtistAlbumRelations', through: PlatformArtistAlbumRelation, foreignKey: "platformAlbumId", otherKey: "platformArtistId" });
|
|
236
|
+
PlatformAlbum.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenrePlatformAlbumGenreRelations', through: PlatformAlbumGenreRelation, foreignKey: "platformAlbumId", otherKey: "platformGenreId" });
|
|
237
|
+
PlatformAlbum.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTrackPlatformAlbumTrackRelations', through: PlatformAlbumTrackRelation, foreignKey: "platformAlbumId", otherKey: "platformTrackId" });
|
|
238
|
+
PlatformArtist.belongsToMany(CanonArtist, { as: 'canonArtistIdCanonArtistCanonToPlatformArtistRelations', through: CanonToPlatformArtistRelation, foreignKey: "platformArtistId", otherKey: "canonArtistId" });
|
|
239
|
+
PlatformArtist.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenreCanonArtistGenreRelations', through: CanonArtistGenreRelation, foreignKey: "canonArtistId", otherKey: "canonGenreId" });
|
|
240
|
+
PlatformArtist.belongsToMany(CanonMember, { as: 'canonMemberIdCanonMembers', through: CanonArtistMemberRelation, foreignKey: "canonArtistId", otherKey: "canonMemberId" });
|
|
241
|
+
PlatformArtist.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations', through: CanonArtistExternalReferenceRelation, foreignKey: "canonArtistId", otherKey: "externalReferenceId" });
|
|
242
|
+
PlatformArtist.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbumPlatformArtistAlbumRelations', through: PlatformArtistAlbumRelation, foreignKey: "platformArtistId", otherKey: "platformAlbumId" });
|
|
243
|
+
PlatformArtist.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenrePlatformArtistGenreRelations', through: PlatformArtistGenreRelation, foreignKey: "platformArtistId", otherKey: "platformGenreId" });
|
|
244
|
+
PlatformArtist.belongsToMany(PlatformTrack, { as: 'canonTrackIdPlatformTracks', through: CanonArtistTrackRelation, foreignKey: "canonArtistId", otherKey: "canonTrackId" });
|
|
245
|
+
PlatformArtist.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTrackPlatformArtistTrackRelations', through: PlatformArtistTrackRelation, foreignKey: "platformArtistId", otherKey: "platformTrackId" });
|
|
246
|
+
PlatformGenre.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenreCanonToPlatformGenreRelations', through: CanonToPlatformGenreRelation, foreignKey: "platformGenreId", otherKey: "canonGenreId" });
|
|
247
|
+
PlatformGenre.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbumPlatformAlbumGenreRelations', through: PlatformAlbumGenreRelation, foreignKey: "platformGenreId", otherKey: "platformAlbumId" });
|
|
248
|
+
PlatformGenre.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtistPlatformArtistGenreRelations', through: PlatformArtistGenreRelation, foreignKey: "platformGenreId", otherKey: "platformArtistId" });
|
|
249
|
+
PlatformGenre.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTrackPlatformTrackGenreRelations', through: PlatformTrackGenreRelation, foreignKey: "platformGenreId", otherKey: "platformTrackId" });
|
|
250
|
+
PlatformTrack.belongsToMany(CanonTrack, { as: 'canonTrackIdCanonTrackCanonToPlatformTrackRelations', through: CanonToPlatformTrackRelation, foreignKey: "platformTrackId", otherKey: "canonTrackId" });
|
|
251
|
+
PlatformTrack.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbumPlatformAlbumTrackRelations', through: PlatformAlbumTrackRelation, foreignKey: "platformTrackId", otherKey: "platformAlbumId" });
|
|
252
|
+
PlatformTrack.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtistCanonArtistTrackRelations', through: CanonArtistTrackRelation, foreignKey: "canonTrackId", otherKey: "canonArtistId" });
|
|
253
|
+
PlatformTrack.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtistPlatformArtistTrackRelations', through: PlatformArtistTrackRelation, foreignKey: "platformTrackId", otherKey: "platformArtistId" });
|
|
254
|
+
PlatformTrack.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenrePlatformTrackGenreRelations', through: PlatformTrackGenreRelation, foreignKey: "platformTrackId", otherKey: "platformGenreId" });
|
|
255
|
+
AppUserDevice.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
256
|
+
AppUser.hasMany(AppUserDevice, { as: "appUserDevices", foreignKey: "appUserId" });
|
|
257
|
+
AppUserFollowRelation.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
258
|
+
AppUser.hasMany(AppUserFollowRelation, { as: "appUserFollowRelations", foreignKey: "appUserId" });
|
|
259
|
+
AppUserFollowRelation.belongsTo(AppUser, { as: "followingAppUser", foreignKey: "followingAppUserId" });
|
|
260
|
+
AppUser.hasMany(AppUserFollowRelation, { as: "followingAppUserAppUserFollowRelations", foreignKey: "followingAppUserId" });
|
|
261
|
+
AppUserPlatformRelation.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
262
|
+
AppUser.hasOne(AppUserPlatformRelation, { as: "appUserPlatformRelation", foreignKey: "appUserId" });
|
|
263
|
+
JukeboxInvite.belongsTo(AppUser, { as: "invitedUser", foreignKey: "invitedUserId" });
|
|
264
|
+
AppUser.hasMany(JukeboxInvite, { as: "jukeboxInvites", foreignKey: "invitedUserId" });
|
|
265
|
+
JukeboxInvite.belongsTo(AppUser, { as: "inviterUser", foreignKey: "inviterUserId" });
|
|
266
|
+
AppUser.hasMany(JukeboxInvite, { as: "inviterUserJukeboxInvites", foreignKey: "inviterUserId" });
|
|
267
|
+
JukeboxQueueEntry.belongsTo(AppUser, { as: "trackAddedUser", foreignKey: "trackAddedUserId" });
|
|
268
|
+
AppUser.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackAddedUserId" });
|
|
269
|
+
JukeboxUser.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
270
|
+
AppUser.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "appUserId" });
|
|
271
|
+
PlatformUserAlbum.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
272
|
+
AppUser.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "appUserId" });
|
|
273
|
+
PlatformUserPlaylist.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
274
|
+
AppUser.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "appUserId" });
|
|
275
|
+
UserContacts.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
276
|
+
AppUser.hasMany(UserContacts, { as: "userContacts", foreignKey: "appUserId" });
|
|
277
|
+
CanonAlbumExternalReferenceRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
278
|
+
CanonAlbum.hasMany(CanonAlbumExternalReferenceRelation, { as: "canonAlbumExternalReferenceRelations", foreignKey: "canonAlbumId" });
|
|
279
|
+
CanonAlbumImageHarvested.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
280
|
+
CanonAlbum.hasMany(CanonAlbumImageHarvested, { as: "canonAlbumImageHarvesteds", foreignKey: "canonAlbumId" });
|
|
281
|
+
CanonAlbumTrackRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
282
|
+
CanonAlbum.hasMany(CanonAlbumTrackRelation, { as: "canonAlbumTrackRelations", foreignKey: "canonAlbumId" });
|
|
283
|
+
CanonToPlatformAlbumRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
284
|
+
CanonAlbum.hasMany(CanonToPlatformAlbumRelation, { as: "canonToPlatformAlbumRelations", foreignKey: "canonAlbumId" });
|
|
285
|
+
CanonArtistAlbumRelation.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
286
|
+
CanonArtist.hasMany(CanonArtistAlbumRelation, { as: "canonArtistAlbumRelations", foreignKey: "canonArtistId" });
|
|
287
|
+
CanonArtistImageHarvested.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
288
|
+
CanonArtist.hasMany(CanonArtistImageHarvested, { as: "canonArtistImageHarvesteds", foreignKey: "canonArtistId" });
|
|
289
|
+
CanonToPlatformArtistRelation.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
290
|
+
CanonArtist.hasMany(CanonToPlatformArtistRelation, { as: "canonToPlatformArtistRelations", foreignKey: "canonArtistId" });
|
|
291
|
+
CanonAlbumGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
292
|
+
CanonGenre.hasMany(CanonAlbumGenreRelation, { as: "canonAlbumGenreRelations", foreignKey: "canonGenreId" });
|
|
293
|
+
CanonArtistGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
294
|
+
CanonGenre.hasMany(CanonArtistGenreRelation, { as: "canonArtistGenreRelations", foreignKey: "canonGenreId" });
|
|
295
|
+
CanonGenreExternalReferenceRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
296
|
+
CanonGenre.hasMany(CanonGenreExternalReferenceRelation, { as: "canonGenreExternalReferenceRelations", foreignKey: "canonGenreId" });
|
|
297
|
+
CanonToPlatformGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
298
|
+
CanonGenre.hasMany(CanonToPlatformGenreRelation, { as: "canonToPlatformGenreRelations", foreignKey: "canonGenreId" });
|
|
299
|
+
JukeboxCanonGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
300
|
+
CanonGenre.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "canonGenreId" });
|
|
301
|
+
CanonAlbumLabelRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId" });
|
|
302
|
+
CanonLabel.hasMany(CanonAlbumLabelRelation, { as: "canonAlbumLabelRelations", foreignKey: "canonLabelId" });
|
|
303
|
+
CanonLabelExternalReferenceRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId" });
|
|
304
|
+
CanonLabel.hasMany(CanonLabelExternalReferenceRelation, { as: "canonLabelExternalReferenceRelations", foreignKey: "canonLabelId" });
|
|
305
|
+
CanonArtistMemberRelation.belongsTo(CanonMember, { as: "canonMember", foreignKey: "canonMemberId" });
|
|
306
|
+
CanonMember.hasMany(CanonArtistMemberRelation, { as: "canonArtistMemberRelations", foreignKey: "canonMemberId" });
|
|
307
|
+
CanonMemberExternalReferenceRelation.belongsTo(CanonMember, { as: "canonMember", foreignKey: "canonMemberId" });
|
|
308
|
+
CanonMember.hasMany(CanonMemberExternalReferenceRelation, { as: "canonMemberExternalReferenceRelations", foreignKey: "canonMemberId" });
|
|
309
|
+
CanonAlbumTrackRelation.belongsTo(CanonTrack, { as: "canonTrack", foreignKey: "canonTrackId" });
|
|
310
|
+
CanonTrack.hasMany(CanonAlbumTrackRelation, { as: "canonAlbumTrackRelations", foreignKey: "canonTrackId" });
|
|
311
|
+
CanonToPlatformTrackRelation.belongsTo(CanonTrack, { as: "canonTrack", foreignKey: "canonTrackId" });
|
|
312
|
+
CanonTrack.hasMany(CanonToPlatformTrackRelation, { as: "canonToPlatformTrackRelations", foreignKey: "canonTrackId" });
|
|
313
|
+
JukeboxQueueEntry.belongsTo(CanonTrack, { as: "track", foreignKey: "trackId" });
|
|
314
|
+
CanonTrack.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackId" });
|
|
315
|
+
CanonAlbumExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
316
|
+
ExternalReference.hasMany(CanonAlbumExternalReferenceRelation, { as: "canonAlbumExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
317
|
+
CanonArtistExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
318
|
+
ExternalReference.hasMany(CanonArtistExternalReferenceRelation, { as: "canonArtistExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
319
|
+
CanonGenreExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
320
|
+
ExternalReference.hasMany(CanonGenreExternalReferenceRelation, { as: "canonGenreExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
321
|
+
CanonLabelExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
322
|
+
ExternalReference.hasMany(CanonLabelExternalReferenceRelation, { as: "canonLabelExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
323
|
+
CanonMemberExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
324
|
+
ExternalReference.hasMany(CanonMemberExternalReferenceRelation, { as: "canonMemberExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
325
|
+
JukeboxSession.belongsTo(JukeboxAccessType, { as: "accessType", foreignKey: "accessTypeId" });
|
|
326
|
+
JukeboxAccessType.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "accessTypeId" });
|
|
327
|
+
JukeboxUser.belongsTo(JukeboxQueueEntry, { as: "pausedQueueEntry", foreignKey: "pausedQueueEntryId" });
|
|
328
|
+
JukeboxQueueEntry.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "pausedQueueEntryId" });
|
|
329
|
+
JukeboxSession.belongsTo(JukeboxQueueMode, { as: "jukeboxQueueMode", foreignKey: "jukeboxQueueModeId" });
|
|
330
|
+
JukeboxQueueMode.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "jukeboxQueueModeId" });
|
|
331
|
+
JukeboxCanonGenreRelation.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId" });
|
|
332
|
+
JukeboxSession.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "jukeboxSessionId" });
|
|
333
|
+
JukeboxInvite.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId" });
|
|
334
|
+
JukeboxSession.hasMany(JukeboxInvite, { as: "jukeboxInvites", foreignKey: "jukeboxSessionId" });
|
|
335
|
+
JukeboxQueueEntry.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId" });
|
|
336
|
+
JukeboxSession.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "jukeboxSessionId" });
|
|
337
|
+
JukeboxUser.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId" });
|
|
338
|
+
JukeboxSession.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "jukeboxSessionId" });
|
|
339
|
+
JukeboxSession.belongsTo(JukeboxStatus, { as: "jukeboxStatus", foreignKey: "jukeboxStatusId" });
|
|
340
|
+
JukeboxStatus.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "jukeboxStatusId" });
|
|
341
|
+
JukeboxSession.belongsTo(JukeboxTerminationCondition, { as: "terminationCondition", foreignKey: "terminationConditionId" });
|
|
342
|
+
JukeboxTerminationCondition.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "terminationConditionId" });
|
|
343
|
+
JukeboxSession.belongsTo(JukeboxType, { as: "type", foreignKey: "typeId" });
|
|
344
|
+
JukeboxType.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "typeId" });
|
|
345
|
+
JukeboxUser.belongsTo(JukeboxUserType, { as: "jukeboxUserType", foreignKey: "jukeboxUserTypeId" });
|
|
346
|
+
JukeboxUserType.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "jukeboxUserTypeId" });
|
|
347
|
+
JukeboxUser.belongsTo(PauseStatusType, { as: "pauseStatusType", foreignKey: "pauseStatusTypeId" });
|
|
348
|
+
PauseStatusType.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "pauseStatusTypeId" });
|
|
349
|
+
AppUserPlatformRelation.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
350
|
+
Platform.hasMany(AppUserPlatformRelation, { as: "appUserPlatformRelations", foreignKey: "platformId" });
|
|
351
|
+
PlatformAlbum.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
352
|
+
Platform.hasMany(PlatformAlbum, { as: "platformAlbums", foreignKey: "platformId" });
|
|
353
|
+
PlatformArtist.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
354
|
+
Platform.hasMany(PlatformArtist, { as: "platformArtists", foreignKey: "platformId" });
|
|
355
|
+
PlatformGenre.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
356
|
+
Platform.hasMany(PlatformGenre, { as: "platformGenres", foreignKey: "platformId" });
|
|
357
|
+
PlatformTrack.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
358
|
+
Platform.hasMany(PlatformTrack, { as: "platformTracks", foreignKey: "platformId" });
|
|
359
|
+
PlatformUserAlbum.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
360
|
+
Platform.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "platformId" });
|
|
361
|
+
PlatformUserAlbumTrack.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
362
|
+
Platform.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformId" });
|
|
363
|
+
PlatformUserPlaylist.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
364
|
+
Platform.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "platformId" });
|
|
365
|
+
UnmatchedArtist.belongsTo(Platform, { as: "platform", foreignKey: "platformId" });
|
|
366
|
+
Platform.hasMany(UnmatchedArtist, { as: "unmatchedArtists", foreignKey: "platformId" });
|
|
367
|
+
CanonAlbumGenreRelation.belongsTo(PlatformAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
368
|
+
PlatformAlbum.hasMany(CanonAlbumGenreRelation, { as: "canonAlbumGenreRelations", foreignKey: "canonAlbumId" });
|
|
369
|
+
CanonAlbumLabelRelation.belongsTo(PlatformAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
370
|
+
PlatformAlbum.hasMany(CanonAlbumLabelRelation, { as: "canonAlbumLabelRelations", foreignKey: "canonAlbumId" });
|
|
371
|
+
CanonArtistAlbumRelation.belongsTo(PlatformAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
372
|
+
PlatformAlbum.hasMany(CanonArtistAlbumRelation, { as: "canonArtistAlbumRelations", foreignKey: "canonAlbumId" });
|
|
373
|
+
CanonToPlatformAlbumRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId" });
|
|
374
|
+
PlatformAlbum.hasMany(CanonToPlatformAlbumRelation, { as: "canonToPlatformAlbumRelations", foreignKey: "platformAlbumId" });
|
|
375
|
+
PlatformAlbumGenreRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId" });
|
|
376
|
+
PlatformAlbum.hasMany(PlatformAlbumGenreRelation, { as: "platformAlbumGenreRelations", foreignKey: "platformAlbumId" });
|
|
377
|
+
PlatformAlbumTrackRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId" });
|
|
378
|
+
PlatformAlbum.hasMany(PlatformAlbumTrackRelation, { as: "platformAlbumTrackRelations", foreignKey: "platformAlbumId" });
|
|
379
|
+
PlatformArtistAlbumRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId" });
|
|
380
|
+
PlatformAlbum.hasMany(PlatformArtistAlbumRelation, { as: "platformArtistAlbumRelations", foreignKey: "platformAlbumId" });
|
|
381
|
+
PlatformUserAlbum.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId" });
|
|
382
|
+
PlatformAlbum.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "platformAlbumId" });
|
|
383
|
+
UnmatchedAlbum.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId" });
|
|
384
|
+
PlatformAlbum.hasMany(UnmatchedAlbum, { as: "unmatchedAlbums", foreignKey: "platformAlbumId" });
|
|
385
|
+
CanonArtistExternalReferenceRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
386
|
+
PlatformArtist.hasMany(CanonArtistExternalReferenceRelation, { as: "canonArtistExternalReferenceRelations", foreignKey: "canonArtistId" });
|
|
387
|
+
CanonArtistGenreRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
388
|
+
PlatformArtist.hasMany(CanonArtistGenreRelation, { as: "canonArtistGenreRelations", foreignKey: "canonArtistId" });
|
|
389
|
+
CanonArtistMemberRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
390
|
+
PlatformArtist.hasMany(CanonArtistMemberRelation, { as: "canonArtistMemberRelations", foreignKey: "canonArtistId" });
|
|
391
|
+
CanonArtistTrackRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId" });
|
|
392
|
+
PlatformArtist.hasMany(CanonArtistTrackRelation, { as: "canonArtistTrackRelations", foreignKey: "canonArtistId" });
|
|
393
|
+
CanonToPlatformArtistRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId" });
|
|
394
|
+
PlatformArtist.hasMany(CanonToPlatformArtistRelation, { as: "canonToPlatformArtistRelations", foreignKey: "platformArtistId" });
|
|
395
|
+
PlatformArtistAlbumRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId" });
|
|
396
|
+
PlatformArtist.hasMany(PlatformArtistAlbumRelation, { as: "platformArtistAlbumRelations", foreignKey: "platformArtistId" });
|
|
397
|
+
PlatformArtistGenreRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId" });
|
|
398
|
+
PlatformArtist.hasMany(PlatformArtistGenreRelation, { as: "platformArtistGenreRelations", foreignKey: "platformArtistId" });
|
|
399
|
+
PlatformArtistTrackRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId" });
|
|
400
|
+
PlatformArtist.hasMany(PlatformArtistTrackRelation, { as: "platformArtistTrackRelations", foreignKey: "platformArtistId" });
|
|
401
|
+
CanonToPlatformGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId" });
|
|
402
|
+
PlatformGenre.hasMany(CanonToPlatformGenreRelation, { as: "canonToPlatformGenreRelations", foreignKey: "platformGenreId" });
|
|
403
|
+
PlatformAlbumGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId" });
|
|
404
|
+
PlatformGenre.hasMany(PlatformAlbumGenreRelation, { as: "platformAlbumGenreRelations", foreignKey: "platformGenreId" });
|
|
405
|
+
PlatformArtistGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId" });
|
|
406
|
+
PlatformGenre.hasMany(PlatformArtistGenreRelation, { as: "platformArtistGenreRelations", foreignKey: "platformGenreId" });
|
|
407
|
+
PlatformTrackGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId" });
|
|
408
|
+
PlatformGenre.hasMany(PlatformTrackGenreRelation, { as: "platformTrackGenreRelations", foreignKey: "platformGenreId" });
|
|
409
|
+
CanonArtistTrackRelation.belongsTo(PlatformTrack, { as: "canonTrack", foreignKey: "canonTrackId" });
|
|
410
|
+
PlatformTrack.hasMany(CanonArtistTrackRelation, { as: "canonArtistTrackRelations", foreignKey: "canonTrackId" });
|
|
411
|
+
CanonToPlatformTrackRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId" });
|
|
412
|
+
PlatformTrack.hasMany(CanonToPlatformTrackRelation, { as: "canonToPlatformTrackRelations", foreignKey: "platformTrackId" });
|
|
413
|
+
PlatformAlbumTrackRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId" });
|
|
414
|
+
PlatformTrack.hasMany(PlatformAlbumTrackRelation, { as: "platformAlbumTrackRelations", foreignKey: "platformTrackId" });
|
|
415
|
+
PlatformArtistTrackRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId" });
|
|
416
|
+
PlatformTrack.hasMany(PlatformArtistTrackRelation, { as: "platformArtistTrackRelations", foreignKey: "platformTrackId" });
|
|
417
|
+
PlatformTrackGenreRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId" });
|
|
418
|
+
PlatformTrack.hasMany(PlatformTrackGenreRelation, { as: "platformTrackGenreRelations", foreignKey: "platformTrackId" });
|
|
419
|
+
PlatformUserAlbumTrack.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId" });
|
|
420
|
+
PlatformTrack.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformTrackId" });
|
|
421
|
+
PlatformUserPlaylistTrack.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId" });
|
|
422
|
+
PlatformTrack.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformTrackId" });
|
|
423
|
+
PlatformUserAlbumTrack.belongsTo(PlatformUserAlbum, { as: "platformUserAlbum", foreignKey: "platformUserAlbumId" });
|
|
424
|
+
PlatformUserAlbum.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformUserAlbumId" });
|
|
425
|
+
PlatformUserPlaylistTrack.belongsTo(PlatformUserPlaylist, { as: "platformUserPlaylist", foreignKey: "platformUserPlaylistId" });
|
|
426
|
+
PlatformUserPlaylist.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformUserPlaylistId" });
|
|
427
|
+
JukeboxQueueEntry.belongsTo(PlaybackStatus, { as: "playbackStatusType", foreignKey: "playbackStatusTypeId" });
|
|
428
|
+
PlaybackStatus.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "playbackStatusTypeId" });
|
|
429
|
+
AppUser.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
430
|
+
State.hasMany(AppUser, { as: "appUsers", foreignKey: "stateId" });
|
|
431
|
+
PlatformUserPlaylist.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
432
|
+
State.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "stateId" });
|
|
433
|
+
PlatformUserPlaylistTrack.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
434
|
+
State.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "stateId" });
|
|
435
|
+
JukeboxQueueEntry.belongsTo(TrackDeletionReason, { as: "trackDeletionReason", foreignKey: "trackDeletionReasonId" });
|
|
436
|
+
TrackDeletionReason.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackDeletionReasonId" });
|
|
437
|
+
return {
|
|
438
|
+
AppUser: AppUser,
|
|
439
|
+
AppUserDevice: AppUserDevice,
|
|
440
|
+
AppUserFollowRelation: AppUserFollowRelation,
|
|
441
|
+
AppUserPlatformRelation: AppUserPlatformRelation,
|
|
442
|
+
CanonAlbum: CanonAlbum,
|
|
443
|
+
CanonAlbumExternalReferenceRelation: CanonAlbumExternalReferenceRelation,
|
|
444
|
+
CanonAlbumGenreRelation: CanonAlbumGenreRelation,
|
|
445
|
+
CanonAlbumImageHarvested: CanonAlbumImageHarvested,
|
|
446
|
+
CanonAlbumLabelRelation: CanonAlbumLabelRelation,
|
|
447
|
+
CanonAlbumTrackRelation: CanonAlbumTrackRelation,
|
|
448
|
+
CanonArtist: CanonArtist,
|
|
449
|
+
CanonArtistAlbumRelation: CanonArtistAlbumRelation,
|
|
450
|
+
CanonArtistExternalReferenceRelation: CanonArtistExternalReferenceRelation,
|
|
451
|
+
CanonArtistGenreRelation: CanonArtistGenreRelation,
|
|
452
|
+
CanonArtistImageHarvested: CanonArtistImageHarvested,
|
|
453
|
+
CanonArtistMemberRelation: CanonArtistMemberRelation,
|
|
454
|
+
CanonArtistTrackRelation: CanonArtistTrackRelation,
|
|
455
|
+
CanonGenre: CanonGenre,
|
|
456
|
+
CanonGenreExternalReferenceRelation: CanonGenreExternalReferenceRelation,
|
|
457
|
+
CanonLabel: CanonLabel,
|
|
458
|
+
CanonLabelExternalReferenceRelation: CanonLabelExternalReferenceRelation,
|
|
459
|
+
CanonMember: CanonMember,
|
|
460
|
+
CanonMemberExternalReferenceRelation: CanonMemberExternalReferenceRelation,
|
|
461
|
+
CanonToPlatformAlbumRelation: CanonToPlatformAlbumRelation,
|
|
462
|
+
CanonToPlatformArtistRelation: CanonToPlatformArtistRelation,
|
|
463
|
+
CanonToPlatformGenreRelation: CanonToPlatformGenreRelation,
|
|
464
|
+
CanonToPlatformTrackRelation: CanonToPlatformTrackRelation,
|
|
465
|
+
CanonTrack: CanonTrack,
|
|
466
|
+
ConfigParam: ConfigParam,
|
|
467
|
+
ExternalReference: ExternalReference,
|
|
468
|
+
JukeboxAccessType: JukeboxAccessType,
|
|
469
|
+
JukeboxCanonGenreRelation: JukeboxCanonGenreRelation,
|
|
470
|
+
JukeboxInvite: JukeboxInvite,
|
|
471
|
+
JukeboxQueueEntry: JukeboxQueueEntry,
|
|
472
|
+
JukeboxQueueMode: JukeboxQueueMode,
|
|
473
|
+
JukeboxSession: JukeboxSession,
|
|
474
|
+
JukeboxStatus: JukeboxStatus,
|
|
475
|
+
JukeboxTerminationCondition: JukeboxTerminationCondition,
|
|
476
|
+
JukeboxType: JukeboxType,
|
|
477
|
+
JukeboxUser: JukeboxUser,
|
|
478
|
+
JukeboxUserType: JukeboxUserType,
|
|
479
|
+
KnexMigrations: KnexMigrations,
|
|
480
|
+
KnexMigrationsLock: KnexMigrationsLock,
|
|
481
|
+
MetricsDaily: MetricsDaily,
|
|
482
|
+
MetricsEvent: MetricsEvent,
|
|
483
|
+
NewsSite: NewsSite,
|
|
484
|
+
PauseStatusType: PauseStatusType,
|
|
485
|
+
Platform: Platform,
|
|
486
|
+
PlatformAlbum: PlatformAlbum,
|
|
487
|
+
PlatformAlbumGenreRelation: PlatformAlbumGenreRelation,
|
|
488
|
+
PlatformAlbumTrackRelation: PlatformAlbumTrackRelation,
|
|
489
|
+
PlatformArtist: PlatformArtist,
|
|
490
|
+
PlatformArtistAlbumRelation: PlatformArtistAlbumRelation,
|
|
491
|
+
PlatformArtistGenreRelation: PlatformArtistGenreRelation,
|
|
492
|
+
PlatformArtistTrackRelation: PlatformArtistTrackRelation,
|
|
493
|
+
PlatformGenre: PlatformGenre,
|
|
494
|
+
PlatformTrack: PlatformTrack,
|
|
495
|
+
PlatformTrackGenreRelation: PlatformTrackGenreRelation,
|
|
496
|
+
PlatformUserAlbum: PlatformUserAlbum,
|
|
497
|
+
PlatformUserAlbumTrack: PlatformUserAlbumTrack,
|
|
498
|
+
PlatformUserPlaylist: PlatformUserPlaylist,
|
|
499
|
+
PlatformUserPlaylistTrack: PlatformUserPlaylistTrack,
|
|
500
|
+
PlaybackStatus: PlaybackStatus,
|
|
501
|
+
State: State,
|
|
502
|
+
TrackDeletionReason: TrackDeletionReason,
|
|
503
|
+
UnmatchedAlbum: UnmatchedAlbum,
|
|
504
|
+
UnmatchedArtist: UnmatchedArtist,
|
|
505
|
+
UserContacts: UserContacts,
|
|
506
|
+
};
|
|
507
|
+
}
|