@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,716 @@
|
|
|
1
|
+
import type { Sequelize } from "sequelize";
|
|
2
|
+
import { AppUser as _AppUser } from "./AppUser";
|
|
3
|
+
import type { AppUserAttributes, AppUserCreationAttributes } from "./AppUser";
|
|
4
|
+
import { AppUserDevice as _AppUserDevice } from "./AppUserDevice";
|
|
5
|
+
import type { AppUserDeviceAttributes, AppUserDeviceCreationAttributes } from "./AppUserDevice";
|
|
6
|
+
import { AppUserFollowRelation as _AppUserFollowRelation } from "./AppUserFollowRelation";
|
|
7
|
+
import type { AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes } from "./AppUserFollowRelation";
|
|
8
|
+
import { AppUserPlatformRelation as _AppUserPlatformRelation } from "./AppUserPlatformRelation";
|
|
9
|
+
import type { AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes } from "./AppUserPlatformRelation";
|
|
10
|
+
import { CanonAlbum as _CanonAlbum } from "./CanonAlbum";
|
|
11
|
+
import type { CanonAlbumAttributes, CanonAlbumCreationAttributes } from "./CanonAlbum";
|
|
12
|
+
import { CanonAlbumExternalReferenceRelation as _CanonAlbumExternalReferenceRelation } from "./CanonAlbumExternalReferenceRelation";
|
|
13
|
+
import type { CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes } from "./CanonAlbumExternalReferenceRelation";
|
|
14
|
+
import { CanonAlbumGenreRelation as _CanonAlbumGenreRelation } from "./CanonAlbumGenreRelation";
|
|
15
|
+
import type { CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes } from "./CanonAlbumGenreRelation";
|
|
16
|
+
import { CanonAlbumImageHarvested as _CanonAlbumImageHarvested } from "./CanonAlbumImageHarvested";
|
|
17
|
+
import type { CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes } from "./CanonAlbumImageHarvested";
|
|
18
|
+
import { CanonAlbumLabelRelation as _CanonAlbumLabelRelation } from "./CanonAlbumLabelRelation";
|
|
19
|
+
import type { CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes } from "./CanonAlbumLabelRelation";
|
|
20
|
+
import { CanonAlbumTrackRelation as _CanonAlbumTrackRelation } from "./CanonAlbumTrackRelation";
|
|
21
|
+
import type { CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes } from "./CanonAlbumTrackRelation";
|
|
22
|
+
import { CanonArtist as _CanonArtist } from "./CanonArtist";
|
|
23
|
+
import type { CanonArtistAttributes, CanonArtistCreationAttributes } from "./CanonArtist";
|
|
24
|
+
import { CanonArtistAlbumRelation as _CanonArtistAlbumRelation } from "./CanonArtistAlbumRelation";
|
|
25
|
+
import type { CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes } from "./CanonArtistAlbumRelation";
|
|
26
|
+
import { CanonArtistExternalReferenceRelation as _CanonArtistExternalReferenceRelation } from "./CanonArtistExternalReferenceRelation";
|
|
27
|
+
import type { CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes } from "./CanonArtistExternalReferenceRelation";
|
|
28
|
+
import { CanonArtistGenreRelation as _CanonArtistGenreRelation } from "./CanonArtistGenreRelation";
|
|
29
|
+
import type { CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes } from "./CanonArtistGenreRelation";
|
|
30
|
+
import { CanonArtistImageHarvested as _CanonArtistImageHarvested } from "./CanonArtistImageHarvested";
|
|
31
|
+
import type { CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes } from "./CanonArtistImageHarvested";
|
|
32
|
+
import { CanonArtistMemberRelation as _CanonArtistMemberRelation } from "./CanonArtistMemberRelation";
|
|
33
|
+
import type { CanonArtistMemberRelationAttributes, CanonArtistMemberRelationCreationAttributes } from "./CanonArtistMemberRelation";
|
|
34
|
+
import { CanonArtistTrackRelation as _CanonArtistTrackRelation } from "./CanonArtistTrackRelation";
|
|
35
|
+
import type { CanonArtistTrackRelationAttributes, CanonArtistTrackRelationCreationAttributes } from "./CanonArtistTrackRelation";
|
|
36
|
+
import { CanonGenre as _CanonGenre } from "./CanonGenre";
|
|
37
|
+
import type { CanonGenreAttributes, CanonGenreCreationAttributes } from "./CanonGenre";
|
|
38
|
+
import { CanonGenreExternalReferenceRelation as _CanonGenreExternalReferenceRelation } from "./CanonGenreExternalReferenceRelation";
|
|
39
|
+
import type { CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationCreationAttributes } from "./CanonGenreExternalReferenceRelation";
|
|
40
|
+
import { CanonLabel as _CanonLabel } from "./CanonLabel";
|
|
41
|
+
import type { CanonLabelAttributes, CanonLabelCreationAttributes } from "./CanonLabel";
|
|
42
|
+
import { CanonLabelExternalReferenceRelation as _CanonLabelExternalReferenceRelation } from "./CanonLabelExternalReferenceRelation";
|
|
43
|
+
import type { CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes } from "./CanonLabelExternalReferenceRelation";
|
|
44
|
+
import { CanonMember as _CanonMember } from "./CanonMember";
|
|
45
|
+
import type { CanonMemberAttributes, CanonMemberCreationAttributes } from "./CanonMember";
|
|
46
|
+
import { CanonMemberExternalReferenceRelation as _CanonMemberExternalReferenceRelation } from "./CanonMemberExternalReferenceRelation";
|
|
47
|
+
import type { CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes } from "./CanonMemberExternalReferenceRelation";
|
|
48
|
+
import { CanonToPlatformAlbumRelation as _CanonToPlatformAlbumRelation } from "./CanonToPlatformAlbumRelation";
|
|
49
|
+
import type { CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes } from "./CanonToPlatformAlbumRelation";
|
|
50
|
+
import { CanonToPlatformArtistRelation as _CanonToPlatformArtistRelation } from "./CanonToPlatformArtistRelation";
|
|
51
|
+
import type { CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes } from "./CanonToPlatformArtistRelation";
|
|
52
|
+
import { CanonToPlatformGenreRelation as _CanonToPlatformGenreRelation } from "./CanonToPlatformGenreRelation";
|
|
53
|
+
import type { CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationCreationAttributes } from "./CanonToPlatformGenreRelation";
|
|
54
|
+
import { CanonToPlatformTrackRelation as _CanonToPlatformTrackRelation } from "./CanonToPlatformTrackRelation";
|
|
55
|
+
import type { CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationCreationAttributes } from "./CanonToPlatformTrackRelation";
|
|
56
|
+
import { CanonTrack as _CanonTrack } from "./CanonTrack";
|
|
57
|
+
import type { CanonTrackAttributes, CanonTrackCreationAttributes } from "./CanonTrack";
|
|
58
|
+
import { ConfigParam as _ConfigParam } from "./ConfigParam";
|
|
59
|
+
import type { ConfigParamAttributes, ConfigParamCreationAttributes } from "./ConfigParam";
|
|
60
|
+
import { ExternalReference as _ExternalReference } from "./ExternalReference";
|
|
61
|
+
import type { ExternalReferenceAttributes, ExternalReferenceCreationAttributes } from "./ExternalReference";
|
|
62
|
+
import { JukeboxAccessType as _JukeboxAccessType } from "./JukeboxAccessType";
|
|
63
|
+
import type { JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes } from "./JukeboxAccessType";
|
|
64
|
+
import { JukeboxCanonGenreRelation as _JukeboxCanonGenreRelation } from "./JukeboxCanonGenreRelation";
|
|
65
|
+
import type { JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes } from "./JukeboxCanonGenreRelation";
|
|
66
|
+
import { JukeboxInvite as _JukeboxInvite } from "./JukeboxInvite";
|
|
67
|
+
import type { JukeboxInviteAttributes, JukeboxInviteCreationAttributes } from "./JukeboxInvite";
|
|
68
|
+
import { JukeboxQueueEntry as _JukeboxQueueEntry } from "./JukeboxQueueEntry";
|
|
69
|
+
import type { JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes } from "./JukeboxQueueEntry";
|
|
70
|
+
import { JukeboxQueueMode as _JukeboxQueueMode } from "./JukeboxQueueMode";
|
|
71
|
+
import type { JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes } from "./JukeboxQueueMode";
|
|
72
|
+
import { JukeboxSession as _JukeboxSession } from "./JukeboxSession";
|
|
73
|
+
import type { JukeboxSessionAttributes, JukeboxSessionCreationAttributes } from "./JukeboxSession";
|
|
74
|
+
import { JukeboxStatus as _JukeboxStatus } from "./JukeboxStatus";
|
|
75
|
+
import type { JukeboxStatusAttributes, JukeboxStatusCreationAttributes } from "./JukeboxStatus";
|
|
76
|
+
import { JukeboxTerminationCondition as _JukeboxTerminationCondition } from "./JukeboxTerminationCondition";
|
|
77
|
+
import type { JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes } from "./JukeboxTerminationCondition";
|
|
78
|
+
import { JukeboxType as _JukeboxType } from "./JukeboxType";
|
|
79
|
+
import type { JukeboxTypeAttributes, JukeboxTypeCreationAttributes } from "./JukeboxType";
|
|
80
|
+
import { JukeboxUser as _JukeboxUser } from "./JukeboxUser";
|
|
81
|
+
import type { JukeboxUserAttributes, JukeboxUserCreationAttributes } from "./JukeboxUser";
|
|
82
|
+
import { JukeboxUserType as _JukeboxUserType } from "./JukeboxUserType";
|
|
83
|
+
import type { JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes } from "./JukeboxUserType";
|
|
84
|
+
import { KnexMigrations as _KnexMigrations } from "./KnexMigrations";
|
|
85
|
+
import type { KnexMigrationsAttributes, KnexMigrationsCreationAttributes } from "./KnexMigrations";
|
|
86
|
+
import { KnexMigrationsLock as _KnexMigrationsLock } from "./KnexMigrationsLock";
|
|
87
|
+
import type { KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes } from "./KnexMigrationsLock";
|
|
88
|
+
import { MetricsDaily as _MetricsDaily } from "./MetricsDaily";
|
|
89
|
+
import type { MetricsDailyAttributes, MetricsDailyCreationAttributes } from "./MetricsDaily";
|
|
90
|
+
import { MetricsEvent as _MetricsEvent } from "./MetricsEvent";
|
|
91
|
+
import type { MetricsEventAttributes, MetricsEventCreationAttributes } from "./MetricsEvent";
|
|
92
|
+
import { NewsSite as _NewsSite } from "./NewsSite";
|
|
93
|
+
import type { NewsSiteAttributes, NewsSiteCreationAttributes } from "./NewsSite";
|
|
94
|
+
import { PauseStatusType as _PauseStatusType } from "./PauseStatusType";
|
|
95
|
+
import type { PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes } from "./PauseStatusType";
|
|
96
|
+
import { Platform as _Platform } from "./Platform";
|
|
97
|
+
import type { PlatformAttributes, PlatformCreationAttributes } from "./Platform";
|
|
98
|
+
import { PlatformAlbum as _PlatformAlbum } from "./PlatformAlbum";
|
|
99
|
+
import type { PlatformAlbumAttributes, PlatformAlbumCreationAttributes } from "./PlatformAlbum";
|
|
100
|
+
import { PlatformAlbumGenreRelation as _PlatformAlbumGenreRelation } from "./PlatformAlbumGenreRelation";
|
|
101
|
+
import type { PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes } from "./PlatformAlbumGenreRelation";
|
|
102
|
+
import { PlatformAlbumTrackRelation as _PlatformAlbumTrackRelation } from "./PlatformAlbumTrackRelation";
|
|
103
|
+
import type { PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes } from "./PlatformAlbumTrackRelation";
|
|
104
|
+
import { PlatformArtist as _PlatformArtist } from "./PlatformArtist";
|
|
105
|
+
import type { PlatformArtistAttributes, PlatformArtistCreationAttributes } from "./PlatformArtist";
|
|
106
|
+
import { PlatformArtistAlbumRelation as _PlatformArtistAlbumRelation } from "./PlatformArtistAlbumRelation";
|
|
107
|
+
import type { PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationCreationAttributes } from "./PlatformArtistAlbumRelation";
|
|
108
|
+
import { PlatformArtistGenreRelation as _PlatformArtistGenreRelation } from "./PlatformArtistGenreRelation";
|
|
109
|
+
import type { PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationCreationAttributes } from "./PlatformArtistGenreRelation";
|
|
110
|
+
import { PlatformArtistTrackRelation as _PlatformArtistTrackRelation } from "./PlatformArtistTrackRelation";
|
|
111
|
+
import type { PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationCreationAttributes } from "./PlatformArtistTrackRelation";
|
|
112
|
+
import { PlatformGenre as _PlatformGenre } from "./PlatformGenre";
|
|
113
|
+
import type { PlatformGenreAttributes, PlatformGenreCreationAttributes } from "./PlatformGenre";
|
|
114
|
+
import { PlatformTrack as _PlatformTrack } from "./PlatformTrack";
|
|
115
|
+
import type { PlatformTrackAttributes, PlatformTrackCreationAttributes } from "./PlatformTrack";
|
|
116
|
+
import { PlatformTrackGenreRelation as _PlatformTrackGenreRelation } from "./PlatformTrackGenreRelation";
|
|
117
|
+
import type { PlatformTrackGenreRelationAttributes, PlatformTrackGenreRelationCreationAttributes } from "./PlatformTrackGenreRelation";
|
|
118
|
+
import { PlatformUserAlbum as _PlatformUserAlbum } from "./PlatformUserAlbum";
|
|
119
|
+
import type { PlatformUserAlbumAttributes, PlatformUserAlbumCreationAttributes } from "./PlatformUserAlbum";
|
|
120
|
+
import { PlatformUserAlbumTrack as _PlatformUserAlbumTrack } from "./PlatformUserAlbumTrack";
|
|
121
|
+
import type { PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes } from "./PlatformUserAlbumTrack";
|
|
122
|
+
import { PlatformUserPlaylist as _PlatformUserPlaylist } from "./PlatformUserPlaylist";
|
|
123
|
+
import type { PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes } from "./PlatformUserPlaylist";
|
|
124
|
+
import { PlatformUserPlaylistTrack as _PlatformUserPlaylistTrack } from "./PlatformUserPlaylistTrack";
|
|
125
|
+
import type { PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes } from "./PlatformUserPlaylistTrack";
|
|
126
|
+
import { PlaybackStatus as _PlaybackStatus } from "./PlaybackStatus";
|
|
127
|
+
import type { PlaybackStatusAttributes, PlaybackStatusCreationAttributes } from "./PlaybackStatus";
|
|
128
|
+
import { State as _State } from "./State";
|
|
129
|
+
import type { StateAttributes, StateCreationAttributes } from "./State";
|
|
130
|
+
import { TrackDeletionReason as _TrackDeletionReason } from "./TrackDeletionReason";
|
|
131
|
+
import type { TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes } from "./TrackDeletionReason";
|
|
132
|
+
import { UnmatchedAlbum as _UnmatchedAlbum } from "./UnmatchedAlbum";
|
|
133
|
+
import type { UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes } from "./UnmatchedAlbum";
|
|
134
|
+
import { UnmatchedArtist as _UnmatchedArtist } from "./UnmatchedArtist";
|
|
135
|
+
import type { UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes } from "./UnmatchedArtist";
|
|
136
|
+
import { UserContacts as _UserContacts } from "./UserContacts";
|
|
137
|
+
import type { UserContactsAttributes, UserContactsCreationAttributes } from "./UserContacts";
|
|
138
|
+
|
|
139
|
+
export {
|
|
140
|
+
_AppUser as AppUser,
|
|
141
|
+
_AppUserDevice as AppUserDevice,
|
|
142
|
+
_AppUserFollowRelation as AppUserFollowRelation,
|
|
143
|
+
_AppUserPlatformRelation as AppUserPlatformRelation,
|
|
144
|
+
_CanonAlbum as CanonAlbum,
|
|
145
|
+
_CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation,
|
|
146
|
+
_CanonAlbumGenreRelation as CanonAlbumGenreRelation,
|
|
147
|
+
_CanonAlbumImageHarvested as CanonAlbumImageHarvested,
|
|
148
|
+
_CanonAlbumLabelRelation as CanonAlbumLabelRelation,
|
|
149
|
+
_CanonAlbumTrackRelation as CanonAlbumTrackRelation,
|
|
150
|
+
_CanonArtist as CanonArtist,
|
|
151
|
+
_CanonArtistAlbumRelation as CanonArtistAlbumRelation,
|
|
152
|
+
_CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation,
|
|
153
|
+
_CanonArtistGenreRelation as CanonArtistGenreRelation,
|
|
154
|
+
_CanonArtistImageHarvested as CanonArtistImageHarvested,
|
|
155
|
+
_CanonArtistMemberRelation as CanonArtistMemberRelation,
|
|
156
|
+
_CanonArtistTrackRelation as CanonArtistTrackRelation,
|
|
157
|
+
_CanonGenre as CanonGenre,
|
|
158
|
+
_CanonGenreExternalReferenceRelation as CanonGenreExternalReferenceRelation,
|
|
159
|
+
_CanonLabel as CanonLabel,
|
|
160
|
+
_CanonLabelExternalReferenceRelation as CanonLabelExternalReferenceRelation,
|
|
161
|
+
_CanonMember as CanonMember,
|
|
162
|
+
_CanonMemberExternalReferenceRelation as CanonMemberExternalReferenceRelation,
|
|
163
|
+
_CanonToPlatformAlbumRelation as CanonToPlatformAlbumRelation,
|
|
164
|
+
_CanonToPlatformArtistRelation as CanonToPlatformArtistRelation,
|
|
165
|
+
_CanonToPlatformGenreRelation as CanonToPlatformGenreRelation,
|
|
166
|
+
_CanonToPlatformTrackRelation as CanonToPlatformTrackRelation,
|
|
167
|
+
_CanonTrack as CanonTrack,
|
|
168
|
+
_ConfigParam as ConfigParam,
|
|
169
|
+
_ExternalReference as ExternalReference,
|
|
170
|
+
_JukeboxAccessType as JukeboxAccessType,
|
|
171
|
+
_JukeboxCanonGenreRelation as JukeboxCanonGenreRelation,
|
|
172
|
+
_JukeboxInvite as JukeboxInvite,
|
|
173
|
+
_JukeboxQueueEntry as JukeboxQueueEntry,
|
|
174
|
+
_JukeboxQueueMode as JukeboxQueueMode,
|
|
175
|
+
_JukeboxSession as JukeboxSession,
|
|
176
|
+
_JukeboxStatus as JukeboxStatus,
|
|
177
|
+
_JukeboxTerminationCondition as JukeboxTerminationCondition,
|
|
178
|
+
_JukeboxType as JukeboxType,
|
|
179
|
+
_JukeboxUser as JukeboxUser,
|
|
180
|
+
_JukeboxUserType as JukeboxUserType,
|
|
181
|
+
_KnexMigrations as KnexMigrations,
|
|
182
|
+
_KnexMigrationsLock as KnexMigrationsLock,
|
|
183
|
+
_MetricsDaily as MetricsDaily,
|
|
184
|
+
_MetricsEvent as MetricsEvent,
|
|
185
|
+
_NewsSite as NewsSite,
|
|
186
|
+
_PauseStatusType as PauseStatusType,
|
|
187
|
+
_Platform as Platform,
|
|
188
|
+
_PlatformAlbum as PlatformAlbum,
|
|
189
|
+
_PlatformAlbumGenreRelation as PlatformAlbumGenreRelation,
|
|
190
|
+
_PlatformAlbumTrackRelation as PlatformAlbumTrackRelation,
|
|
191
|
+
_PlatformArtist as PlatformArtist,
|
|
192
|
+
_PlatformArtistAlbumRelation as PlatformArtistAlbumRelation,
|
|
193
|
+
_PlatformArtistGenreRelation as PlatformArtistGenreRelation,
|
|
194
|
+
_PlatformArtistTrackRelation as PlatformArtistTrackRelation,
|
|
195
|
+
_PlatformGenre as PlatformGenre,
|
|
196
|
+
_PlatformTrack as PlatformTrack,
|
|
197
|
+
_PlatformTrackGenreRelation as PlatformTrackGenreRelation,
|
|
198
|
+
_PlatformUserAlbum as PlatformUserAlbum,
|
|
199
|
+
_PlatformUserAlbumTrack as PlatformUserAlbumTrack,
|
|
200
|
+
_PlatformUserPlaylist as PlatformUserPlaylist,
|
|
201
|
+
_PlatformUserPlaylistTrack as PlatformUserPlaylistTrack,
|
|
202
|
+
_PlaybackStatus as PlaybackStatus,
|
|
203
|
+
_State as State,
|
|
204
|
+
_TrackDeletionReason as TrackDeletionReason,
|
|
205
|
+
_UnmatchedAlbum as UnmatchedAlbum,
|
|
206
|
+
_UnmatchedArtist as UnmatchedArtist,
|
|
207
|
+
_UserContacts as UserContacts,
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export type {
|
|
211
|
+
AppUserAttributes,
|
|
212
|
+
AppUserCreationAttributes,
|
|
213
|
+
AppUserDeviceAttributes,
|
|
214
|
+
AppUserDeviceCreationAttributes,
|
|
215
|
+
AppUserFollowRelationAttributes,
|
|
216
|
+
AppUserFollowRelationCreationAttributes,
|
|
217
|
+
AppUserPlatformRelationAttributes,
|
|
218
|
+
AppUserPlatformRelationCreationAttributes,
|
|
219
|
+
CanonAlbumAttributes,
|
|
220
|
+
CanonAlbumCreationAttributes,
|
|
221
|
+
CanonAlbumExternalReferenceRelationAttributes,
|
|
222
|
+
CanonAlbumExternalReferenceRelationCreationAttributes,
|
|
223
|
+
CanonAlbumGenreRelationAttributes,
|
|
224
|
+
CanonAlbumGenreRelationCreationAttributes,
|
|
225
|
+
CanonAlbumImageHarvestedAttributes,
|
|
226
|
+
CanonAlbumImageHarvestedCreationAttributes,
|
|
227
|
+
CanonAlbumLabelRelationAttributes,
|
|
228
|
+
CanonAlbumLabelRelationCreationAttributes,
|
|
229
|
+
CanonAlbumTrackRelationAttributes,
|
|
230
|
+
CanonAlbumTrackRelationCreationAttributes,
|
|
231
|
+
CanonArtistAttributes,
|
|
232
|
+
CanonArtistCreationAttributes,
|
|
233
|
+
CanonArtistAlbumRelationAttributes,
|
|
234
|
+
CanonArtistAlbumRelationCreationAttributes,
|
|
235
|
+
CanonArtistExternalReferenceRelationAttributes,
|
|
236
|
+
CanonArtistExternalReferenceRelationCreationAttributes,
|
|
237
|
+
CanonArtistGenreRelationAttributes,
|
|
238
|
+
CanonArtistGenreRelationCreationAttributes,
|
|
239
|
+
CanonArtistImageHarvestedAttributes,
|
|
240
|
+
CanonArtistImageHarvestedCreationAttributes,
|
|
241
|
+
CanonArtistMemberRelationAttributes,
|
|
242
|
+
CanonArtistMemberRelationCreationAttributes,
|
|
243
|
+
CanonArtistTrackRelationAttributes,
|
|
244
|
+
CanonArtistTrackRelationCreationAttributes,
|
|
245
|
+
CanonGenreAttributes,
|
|
246
|
+
CanonGenreCreationAttributes,
|
|
247
|
+
CanonGenreExternalReferenceRelationAttributes,
|
|
248
|
+
CanonGenreExternalReferenceRelationCreationAttributes,
|
|
249
|
+
CanonLabelAttributes,
|
|
250
|
+
CanonLabelCreationAttributes,
|
|
251
|
+
CanonLabelExternalReferenceRelationAttributes,
|
|
252
|
+
CanonLabelExternalReferenceRelationCreationAttributes,
|
|
253
|
+
CanonMemberAttributes,
|
|
254
|
+
CanonMemberCreationAttributes,
|
|
255
|
+
CanonMemberExternalReferenceRelationAttributes,
|
|
256
|
+
CanonMemberExternalReferenceRelationCreationAttributes,
|
|
257
|
+
CanonToPlatformAlbumRelationAttributes,
|
|
258
|
+
CanonToPlatformAlbumRelationCreationAttributes,
|
|
259
|
+
CanonToPlatformArtistRelationAttributes,
|
|
260
|
+
CanonToPlatformArtistRelationCreationAttributes,
|
|
261
|
+
CanonToPlatformGenreRelationAttributes,
|
|
262
|
+
CanonToPlatformGenreRelationCreationAttributes,
|
|
263
|
+
CanonToPlatformTrackRelationAttributes,
|
|
264
|
+
CanonToPlatformTrackRelationCreationAttributes,
|
|
265
|
+
CanonTrackAttributes,
|
|
266
|
+
CanonTrackCreationAttributes,
|
|
267
|
+
ConfigParamAttributes,
|
|
268
|
+
ConfigParamCreationAttributes,
|
|
269
|
+
ExternalReferenceAttributes,
|
|
270
|
+
ExternalReferenceCreationAttributes,
|
|
271
|
+
JukeboxAccessTypeAttributes,
|
|
272
|
+
JukeboxAccessTypeCreationAttributes,
|
|
273
|
+
JukeboxCanonGenreRelationAttributes,
|
|
274
|
+
JukeboxCanonGenreRelationCreationAttributes,
|
|
275
|
+
JukeboxInviteAttributes,
|
|
276
|
+
JukeboxInviteCreationAttributes,
|
|
277
|
+
JukeboxQueueEntryAttributes,
|
|
278
|
+
JukeboxQueueEntryCreationAttributes,
|
|
279
|
+
JukeboxQueueModeAttributes,
|
|
280
|
+
JukeboxQueueModeCreationAttributes,
|
|
281
|
+
JukeboxSessionAttributes,
|
|
282
|
+
JukeboxSessionCreationAttributes,
|
|
283
|
+
JukeboxStatusAttributes,
|
|
284
|
+
JukeboxStatusCreationAttributes,
|
|
285
|
+
JukeboxTerminationConditionAttributes,
|
|
286
|
+
JukeboxTerminationConditionCreationAttributes,
|
|
287
|
+
JukeboxTypeAttributes,
|
|
288
|
+
JukeboxTypeCreationAttributes,
|
|
289
|
+
JukeboxUserAttributes,
|
|
290
|
+
JukeboxUserCreationAttributes,
|
|
291
|
+
JukeboxUserTypeAttributes,
|
|
292
|
+
JukeboxUserTypeCreationAttributes,
|
|
293
|
+
KnexMigrationsAttributes,
|
|
294
|
+
KnexMigrationsCreationAttributes,
|
|
295
|
+
KnexMigrationsLockAttributes,
|
|
296
|
+
KnexMigrationsLockCreationAttributes,
|
|
297
|
+
MetricsDailyAttributes,
|
|
298
|
+
MetricsDailyCreationAttributes,
|
|
299
|
+
MetricsEventAttributes,
|
|
300
|
+
MetricsEventCreationAttributes,
|
|
301
|
+
NewsSiteAttributes,
|
|
302
|
+
NewsSiteCreationAttributes,
|
|
303
|
+
PauseStatusTypeAttributes,
|
|
304
|
+
PauseStatusTypeCreationAttributes,
|
|
305
|
+
PlatformAttributes,
|
|
306
|
+
PlatformCreationAttributes,
|
|
307
|
+
PlatformAlbumAttributes,
|
|
308
|
+
PlatformAlbumCreationAttributes,
|
|
309
|
+
PlatformAlbumGenreRelationAttributes,
|
|
310
|
+
PlatformAlbumGenreRelationCreationAttributes,
|
|
311
|
+
PlatformAlbumTrackRelationAttributes,
|
|
312
|
+
PlatformAlbumTrackRelationCreationAttributes,
|
|
313
|
+
PlatformArtistAttributes,
|
|
314
|
+
PlatformArtistCreationAttributes,
|
|
315
|
+
PlatformArtistAlbumRelationAttributes,
|
|
316
|
+
PlatformArtistAlbumRelationCreationAttributes,
|
|
317
|
+
PlatformArtistGenreRelationAttributes,
|
|
318
|
+
PlatformArtistGenreRelationCreationAttributes,
|
|
319
|
+
PlatformArtistTrackRelationAttributes,
|
|
320
|
+
PlatformArtistTrackRelationCreationAttributes,
|
|
321
|
+
PlatformGenreAttributes,
|
|
322
|
+
PlatformGenreCreationAttributes,
|
|
323
|
+
PlatformTrackAttributes,
|
|
324
|
+
PlatformTrackCreationAttributes,
|
|
325
|
+
PlatformTrackGenreRelationAttributes,
|
|
326
|
+
PlatformTrackGenreRelationCreationAttributes,
|
|
327
|
+
PlatformUserAlbumAttributes,
|
|
328
|
+
PlatformUserAlbumCreationAttributes,
|
|
329
|
+
PlatformUserAlbumTrackAttributes,
|
|
330
|
+
PlatformUserAlbumTrackCreationAttributes,
|
|
331
|
+
PlatformUserPlaylistAttributes,
|
|
332
|
+
PlatformUserPlaylistCreationAttributes,
|
|
333
|
+
PlatformUserPlaylistTrackAttributes,
|
|
334
|
+
PlatformUserPlaylistTrackCreationAttributes,
|
|
335
|
+
PlaybackStatusAttributes,
|
|
336
|
+
PlaybackStatusCreationAttributes,
|
|
337
|
+
StateAttributes,
|
|
338
|
+
StateCreationAttributes,
|
|
339
|
+
TrackDeletionReasonAttributes,
|
|
340
|
+
TrackDeletionReasonCreationAttributes,
|
|
341
|
+
UnmatchedAlbumAttributes,
|
|
342
|
+
UnmatchedAlbumCreationAttributes,
|
|
343
|
+
UnmatchedArtistAttributes,
|
|
344
|
+
UnmatchedArtistCreationAttributes,
|
|
345
|
+
UserContactsAttributes,
|
|
346
|
+
UserContactsCreationAttributes,
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export function initModels(sequelize: Sequelize) {
|
|
350
|
+
const AppUser = _AppUser.initModel(sequelize);
|
|
351
|
+
const AppUserDevice = _AppUserDevice.initModel(sequelize);
|
|
352
|
+
const AppUserFollowRelation = _AppUserFollowRelation.initModel(sequelize);
|
|
353
|
+
const AppUserPlatformRelation = _AppUserPlatformRelation.initModel(sequelize);
|
|
354
|
+
const CanonAlbum = _CanonAlbum.initModel(sequelize);
|
|
355
|
+
const CanonAlbumExternalReferenceRelation = _CanonAlbumExternalReferenceRelation.initModel(sequelize);
|
|
356
|
+
const CanonAlbumGenreRelation = _CanonAlbumGenreRelation.initModel(sequelize);
|
|
357
|
+
const CanonAlbumImageHarvested = _CanonAlbumImageHarvested.initModel(sequelize);
|
|
358
|
+
const CanonAlbumLabelRelation = _CanonAlbumLabelRelation.initModel(sequelize);
|
|
359
|
+
const CanonAlbumTrackRelation = _CanonAlbumTrackRelation.initModel(sequelize);
|
|
360
|
+
const CanonArtist = _CanonArtist.initModel(sequelize);
|
|
361
|
+
const CanonArtistAlbumRelation = _CanonArtistAlbumRelation.initModel(sequelize);
|
|
362
|
+
const CanonArtistExternalReferenceRelation = _CanonArtistExternalReferenceRelation.initModel(sequelize);
|
|
363
|
+
const CanonArtistGenreRelation = _CanonArtistGenreRelation.initModel(sequelize);
|
|
364
|
+
const CanonArtistImageHarvested = _CanonArtistImageHarvested.initModel(sequelize);
|
|
365
|
+
const CanonArtistMemberRelation = _CanonArtistMemberRelation.initModel(sequelize);
|
|
366
|
+
const CanonArtistTrackRelation = _CanonArtistTrackRelation.initModel(sequelize);
|
|
367
|
+
const CanonGenre = _CanonGenre.initModel(sequelize);
|
|
368
|
+
const CanonGenreExternalReferenceRelation = _CanonGenreExternalReferenceRelation.initModel(sequelize);
|
|
369
|
+
const CanonLabel = _CanonLabel.initModel(sequelize);
|
|
370
|
+
const CanonLabelExternalReferenceRelation = _CanonLabelExternalReferenceRelation.initModel(sequelize);
|
|
371
|
+
const CanonMember = _CanonMember.initModel(sequelize);
|
|
372
|
+
const CanonMemberExternalReferenceRelation = _CanonMemberExternalReferenceRelation.initModel(sequelize);
|
|
373
|
+
const CanonToPlatformAlbumRelation = _CanonToPlatformAlbumRelation.initModel(sequelize);
|
|
374
|
+
const CanonToPlatformArtistRelation = _CanonToPlatformArtistRelation.initModel(sequelize);
|
|
375
|
+
const CanonToPlatformGenreRelation = _CanonToPlatformGenreRelation.initModel(sequelize);
|
|
376
|
+
const CanonToPlatformTrackRelation = _CanonToPlatformTrackRelation.initModel(sequelize);
|
|
377
|
+
const CanonTrack = _CanonTrack.initModel(sequelize);
|
|
378
|
+
const ConfigParam = _ConfigParam.initModel(sequelize);
|
|
379
|
+
const ExternalReference = _ExternalReference.initModel(sequelize);
|
|
380
|
+
const JukeboxAccessType = _JukeboxAccessType.initModel(sequelize);
|
|
381
|
+
const JukeboxCanonGenreRelation = _JukeboxCanonGenreRelation.initModel(sequelize);
|
|
382
|
+
const JukeboxInvite = _JukeboxInvite.initModel(sequelize);
|
|
383
|
+
const JukeboxQueueEntry = _JukeboxQueueEntry.initModel(sequelize);
|
|
384
|
+
const JukeboxQueueMode = _JukeboxQueueMode.initModel(sequelize);
|
|
385
|
+
const JukeboxSession = _JukeboxSession.initModel(sequelize);
|
|
386
|
+
const JukeboxStatus = _JukeboxStatus.initModel(sequelize);
|
|
387
|
+
const JukeboxTerminationCondition = _JukeboxTerminationCondition.initModel(sequelize);
|
|
388
|
+
const JukeboxType = _JukeboxType.initModel(sequelize);
|
|
389
|
+
const JukeboxUser = _JukeboxUser.initModel(sequelize);
|
|
390
|
+
const JukeboxUserType = _JukeboxUserType.initModel(sequelize);
|
|
391
|
+
const KnexMigrations = _KnexMigrations.initModel(sequelize);
|
|
392
|
+
const KnexMigrationsLock = _KnexMigrationsLock.initModel(sequelize);
|
|
393
|
+
const MetricsDaily = _MetricsDaily.initModel(sequelize);
|
|
394
|
+
const MetricsEvent = _MetricsEvent.initModel(sequelize);
|
|
395
|
+
const NewsSite = _NewsSite.initModel(sequelize);
|
|
396
|
+
const PauseStatusType = _PauseStatusType.initModel(sequelize);
|
|
397
|
+
const Platform = _Platform.initModel(sequelize);
|
|
398
|
+
const PlatformAlbum = _PlatformAlbum.initModel(sequelize);
|
|
399
|
+
const PlatformAlbumGenreRelation = _PlatformAlbumGenreRelation.initModel(sequelize);
|
|
400
|
+
const PlatformAlbumTrackRelation = _PlatformAlbumTrackRelation.initModel(sequelize);
|
|
401
|
+
const PlatformArtist = _PlatformArtist.initModel(sequelize);
|
|
402
|
+
const PlatformArtistAlbumRelation = _PlatformArtistAlbumRelation.initModel(sequelize);
|
|
403
|
+
const PlatformArtistGenreRelation = _PlatformArtistGenreRelation.initModel(sequelize);
|
|
404
|
+
const PlatformArtistTrackRelation = _PlatformArtistTrackRelation.initModel(sequelize);
|
|
405
|
+
const PlatformGenre = _PlatformGenre.initModel(sequelize);
|
|
406
|
+
const PlatformTrack = _PlatformTrack.initModel(sequelize);
|
|
407
|
+
const PlatformTrackGenreRelation = _PlatformTrackGenreRelation.initModel(sequelize);
|
|
408
|
+
const PlatformUserAlbum = _PlatformUserAlbum.initModel(sequelize);
|
|
409
|
+
const PlatformUserAlbumTrack = _PlatformUserAlbumTrack.initModel(sequelize);
|
|
410
|
+
const PlatformUserPlaylist = _PlatformUserPlaylist.initModel(sequelize);
|
|
411
|
+
const PlatformUserPlaylistTrack = _PlatformUserPlaylistTrack.initModel(sequelize);
|
|
412
|
+
const PlaybackStatus = _PlaybackStatus.initModel(sequelize);
|
|
413
|
+
const State = _State.initModel(sequelize);
|
|
414
|
+
const TrackDeletionReason = _TrackDeletionReason.initModel(sequelize);
|
|
415
|
+
const UnmatchedAlbum = _UnmatchedAlbum.initModel(sequelize);
|
|
416
|
+
const UnmatchedArtist = _UnmatchedArtist.initModel(sequelize);
|
|
417
|
+
const UserContacts = _UserContacts.initModel(sequelize);
|
|
418
|
+
|
|
419
|
+
CanonAlbum.belongsToMany(CanonTrack, { as: 'canonTrackIdCanonTracks', through: CanonAlbumTrackRelation, foreignKey: "canonAlbumId", otherKey: "canonTrackId" });
|
|
420
|
+
CanonAlbum.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferences', through: CanonAlbumExternalReferenceRelation, foreignKey: "canonAlbumId", otherKey: "externalReferenceId" });
|
|
421
|
+
CanonAlbum.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbums', through: CanonToPlatformAlbumRelation, foreignKey: "canonAlbumId", otherKey: "platformAlbumId" });
|
|
422
|
+
CanonArtist.belongsToMany(PlatformAlbum, { as: 'canonAlbumIdPlatformAlbumCanonArtistAlbumRelations', through: CanonArtistAlbumRelation, foreignKey: "canonArtistId", otherKey: "canonAlbumId" });
|
|
423
|
+
CanonArtist.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtists', through: CanonToPlatformArtistRelation, foreignKey: "canonArtistId", otherKey: "platformArtistId" });
|
|
424
|
+
CanonGenre.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonGenreExternalReferenceRelations', through: CanonGenreExternalReferenceRelation, foreignKey: "canonGenreId", otherKey: "externalReferenceId" });
|
|
425
|
+
CanonGenre.belongsToMany(PlatformAlbum, { as: 'canonAlbumIdPlatformAlbums', through: CanonAlbumGenreRelation, foreignKey: "canonGenreId", otherKey: "canonAlbumId" });
|
|
426
|
+
CanonGenre.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtistCanonArtistGenreRelations', through: CanonArtistGenreRelation, foreignKey: "canonGenreId", otherKey: "canonArtistId" });
|
|
427
|
+
CanonGenre.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenres', through: CanonToPlatformGenreRelation, foreignKey: "canonGenreId", otherKey: "platformGenreId" });
|
|
428
|
+
CanonLabel.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations', through: CanonLabelExternalReferenceRelation, foreignKey: "canonLabelId", otherKey: "externalReferenceId" });
|
|
429
|
+
CanonLabel.belongsToMany(PlatformAlbum, { as: 'canonAlbumIdPlatformAlbumCanonAlbumLabelRelations', through: CanonAlbumLabelRelation, foreignKey: "canonLabelId", otherKey: "canonAlbumId" });
|
|
430
|
+
CanonMember.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations', through: CanonMemberExternalReferenceRelation, foreignKey: "canonMemberId", otherKey: "externalReferenceId" });
|
|
431
|
+
CanonMember.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtistCanonArtistMemberRelations', through: CanonArtistMemberRelation, foreignKey: "canonMemberId", otherKey: "canonArtistId" });
|
|
432
|
+
CanonTrack.belongsToMany(CanonAlbum, { as: 'canonAlbumIdCanonAlbumCanonAlbumTrackRelations', through: CanonAlbumTrackRelation, foreignKey: "canonTrackId", otherKey: "canonAlbumId" });
|
|
433
|
+
CanonTrack.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTracks', through: CanonToPlatformTrackRelation, foreignKey: "canonTrackId", otherKey: "platformTrackId" });
|
|
434
|
+
ExternalReference.belongsToMany(CanonAlbum, { as: 'canonAlbumIdCanonAlbums', through: CanonAlbumExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonAlbumId" });
|
|
435
|
+
ExternalReference.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenreCanonGenreExternalReferenceRelations', through: CanonGenreExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonGenreId" });
|
|
436
|
+
ExternalReference.belongsToMany(CanonLabel, { as: 'canonLabelIdCanonLabelCanonLabelExternalReferenceRelations', through: CanonLabelExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonLabelId" });
|
|
437
|
+
ExternalReference.belongsToMany(CanonMember, { as: 'canonMemberIdCanonMemberCanonMemberExternalReferenceRelations', through: CanonMemberExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonMemberId" });
|
|
438
|
+
ExternalReference.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtists', through: CanonArtistExternalReferenceRelation, foreignKey: "externalReferenceId", otherKey: "canonArtistId" });
|
|
439
|
+
PlatformAlbum.belongsToMany(CanonAlbum, { as: 'canonAlbumIdCanonAlbumCanonToPlatformAlbumRelations', through: CanonToPlatformAlbumRelation, foreignKey: "platformAlbumId", otherKey: "canonAlbumId" });
|
|
440
|
+
PlatformAlbum.belongsToMany(CanonArtist, { as: 'canonArtistIdCanonArtists', through: CanonArtistAlbumRelation, foreignKey: "canonAlbumId", otherKey: "canonArtistId" });
|
|
441
|
+
PlatformAlbum.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenres', through: CanonAlbumGenreRelation, foreignKey: "canonAlbumId", otherKey: "canonGenreId" });
|
|
442
|
+
PlatformAlbum.belongsToMany(CanonLabel, { as: 'canonLabelIdCanonLabels', through: CanonAlbumLabelRelation, foreignKey: "canonAlbumId", otherKey: "canonLabelId" });
|
|
443
|
+
PlatformAlbum.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtistPlatformArtistAlbumRelations', through: PlatformArtistAlbumRelation, foreignKey: "platformAlbumId", otherKey: "platformArtistId" });
|
|
444
|
+
PlatformAlbum.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenrePlatformAlbumGenreRelations', through: PlatformAlbumGenreRelation, foreignKey: "platformAlbumId", otherKey: "platformGenreId" });
|
|
445
|
+
PlatformAlbum.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTrackPlatformAlbumTrackRelations', through: PlatformAlbumTrackRelation, foreignKey: "platformAlbumId", otherKey: "platformTrackId" });
|
|
446
|
+
PlatformArtist.belongsToMany(CanonArtist, { as: 'canonArtistIdCanonArtistCanonToPlatformArtistRelations', through: CanonToPlatformArtistRelation, foreignKey: "platformArtistId", otherKey: "canonArtistId" });
|
|
447
|
+
PlatformArtist.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenreCanonArtistGenreRelations', through: CanonArtistGenreRelation, foreignKey: "canonArtistId", otherKey: "canonGenreId" });
|
|
448
|
+
PlatformArtist.belongsToMany(CanonMember, { as: 'canonMemberIdCanonMembers', through: CanonArtistMemberRelation, foreignKey: "canonArtistId", otherKey: "canonMemberId" });
|
|
449
|
+
PlatformArtist.belongsToMany(ExternalReference, { as: 'externalReferenceIdExternalReferenceCanonArtistExternalReferenceRelations', through: CanonArtistExternalReferenceRelation, foreignKey: "canonArtistId", otherKey: "externalReferenceId" });
|
|
450
|
+
PlatformArtist.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbumPlatformArtistAlbumRelations', through: PlatformArtistAlbumRelation, foreignKey: "platformArtistId", otherKey: "platformAlbumId" });
|
|
451
|
+
PlatformArtist.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenrePlatformArtistGenreRelations', through: PlatformArtistGenreRelation, foreignKey: "platformArtistId", otherKey: "platformGenreId" });
|
|
452
|
+
PlatformArtist.belongsToMany(PlatformTrack, { as: 'canonTrackIdPlatformTracks', through: CanonArtistTrackRelation, foreignKey: "canonArtistId", otherKey: "canonTrackId" });
|
|
453
|
+
PlatformArtist.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTrackPlatformArtistTrackRelations', through: PlatformArtistTrackRelation, foreignKey: "platformArtistId", otherKey: "platformTrackId" });
|
|
454
|
+
PlatformGenre.belongsToMany(CanonGenre, { as: 'canonGenreIdCanonGenreCanonToPlatformGenreRelations', through: CanonToPlatformGenreRelation, foreignKey: "platformGenreId", otherKey: "canonGenreId" });
|
|
455
|
+
PlatformGenre.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbumPlatformAlbumGenreRelations', through: PlatformAlbumGenreRelation, foreignKey: "platformGenreId", otherKey: "platformAlbumId" });
|
|
456
|
+
PlatformGenre.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtistPlatformArtistGenreRelations', through: PlatformArtistGenreRelation, foreignKey: "platformGenreId", otherKey: "platformArtistId" });
|
|
457
|
+
PlatformGenre.belongsToMany(PlatformTrack, { as: 'platformTrackIdPlatformTrackPlatformTrackGenreRelations', through: PlatformTrackGenreRelation, foreignKey: "platformGenreId", otherKey: "platformTrackId" });
|
|
458
|
+
PlatformTrack.belongsToMany(CanonTrack, { as: 'canonTrackIdCanonTrackCanonToPlatformTrackRelations', through: CanonToPlatformTrackRelation, foreignKey: "platformTrackId", otherKey: "canonTrackId" });
|
|
459
|
+
PlatformTrack.belongsToMany(PlatformAlbum, { as: 'platformAlbumIdPlatformAlbumPlatformAlbumTrackRelations', through: PlatformAlbumTrackRelation, foreignKey: "platformTrackId", otherKey: "platformAlbumId" });
|
|
460
|
+
PlatformTrack.belongsToMany(PlatformArtist, { as: 'canonArtistIdPlatformArtistCanonArtistTrackRelations', through: CanonArtistTrackRelation, foreignKey: "canonTrackId", otherKey: "canonArtistId" });
|
|
461
|
+
PlatformTrack.belongsToMany(PlatformArtist, { as: 'platformArtistIdPlatformArtistPlatformArtistTrackRelations', through: PlatformArtistTrackRelation, foreignKey: "platformTrackId", otherKey: "platformArtistId" });
|
|
462
|
+
PlatformTrack.belongsToMany(PlatformGenre, { as: 'platformGenreIdPlatformGenrePlatformTrackGenreRelations', through: PlatformTrackGenreRelation, foreignKey: "platformTrackId", otherKey: "platformGenreId" });
|
|
463
|
+
AppUserDevice.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
464
|
+
AppUser.hasMany(AppUserDevice, { as: "appUserDevices", foreignKey: "appUserId"});
|
|
465
|
+
AppUserFollowRelation.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
466
|
+
AppUser.hasMany(AppUserFollowRelation, { as: "appUserFollowRelations", foreignKey: "appUserId"});
|
|
467
|
+
AppUserFollowRelation.belongsTo(AppUser, { as: "followingAppUser", foreignKey: "followingAppUserId"});
|
|
468
|
+
AppUser.hasMany(AppUserFollowRelation, { as: "followingAppUserAppUserFollowRelations", foreignKey: "followingAppUserId"});
|
|
469
|
+
AppUserPlatformRelation.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
470
|
+
AppUser.hasOne(AppUserPlatformRelation, { as: "appUserPlatformRelation", foreignKey: "appUserId"});
|
|
471
|
+
JukeboxInvite.belongsTo(AppUser, { as: "invitedUser", foreignKey: "invitedUserId"});
|
|
472
|
+
AppUser.hasMany(JukeboxInvite, { as: "jukeboxInvites", foreignKey: "invitedUserId"});
|
|
473
|
+
JukeboxInvite.belongsTo(AppUser, { as: "inviterUser", foreignKey: "inviterUserId"});
|
|
474
|
+
AppUser.hasMany(JukeboxInvite, { as: "inviterUserJukeboxInvites", foreignKey: "inviterUserId"});
|
|
475
|
+
JukeboxQueueEntry.belongsTo(AppUser, { as: "trackAddedUser", foreignKey: "trackAddedUserId"});
|
|
476
|
+
AppUser.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackAddedUserId"});
|
|
477
|
+
JukeboxUser.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
478
|
+
AppUser.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "appUserId"});
|
|
479
|
+
PlatformUserAlbum.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
480
|
+
AppUser.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "appUserId"});
|
|
481
|
+
PlatformUserPlaylist.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
482
|
+
AppUser.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "appUserId"});
|
|
483
|
+
UserContacts.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId"});
|
|
484
|
+
AppUser.hasMany(UserContacts, { as: "userContacts", foreignKey: "appUserId"});
|
|
485
|
+
CanonAlbumExternalReferenceRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
486
|
+
CanonAlbum.hasMany(CanonAlbumExternalReferenceRelation, { as: "canonAlbumExternalReferenceRelations", foreignKey: "canonAlbumId"});
|
|
487
|
+
CanonAlbumImageHarvested.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
488
|
+
CanonAlbum.hasMany(CanonAlbumImageHarvested, { as: "canonAlbumImageHarvesteds", foreignKey: "canonAlbumId"});
|
|
489
|
+
CanonAlbumTrackRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
490
|
+
CanonAlbum.hasMany(CanonAlbumTrackRelation, { as: "canonAlbumTrackRelations", foreignKey: "canonAlbumId"});
|
|
491
|
+
CanonToPlatformAlbumRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
492
|
+
CanonAlbum.hasMany(CanonToPlatformAlbumRelation, { as: "canonToPlatformAlbumRelations", foreignKey: "canonAlbumId"});
|
|
493
|
+
CanonArtistAlbumRelation.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
494
|
+
CanonArtist.hasMany(CanonArtistAlbumRelation, { as: "canonArtistAlbumRelations", foreignKey: "canonArtistId"});
|
|
495
|
+
CanonArtistImageHarvested.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
496
|
+
CanonArtist.hasMany(CanonArtistImageHarvested, { as: "canonArtistImageHarvesteds", foreignKey: "canonArtistId"});
|
|
497
|
+
CanonToPlatformArtistRelation.belongsTo(CanonArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
498
|
+
CanonArtist.hasMany(CanonToPlatformArtistRelation, { as: "canonToPlatformArtistRelations", foreignKey: "canonArtistId"});
|
|
499
|
+
CanonAlbumGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
500
|
+
CanonGenre.hasMany(CanonAlbumGenreRelation, { as: "canonAlbumGenreRelations", foreignKey: "canonGenreId"});
|
|
501
|
+
CanonArtistGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
502
|
+
CanonGenre.hasMany(CanonArtistGenreRelation, { as: "canonArtistGenreRelations", foreignKey: "canonGenreId"});
|
|
503
|
+
CanonGenreExternalReferenceRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
504
|
+
CanonGenre.hasMany(CanonGenreExternalReferenceRelation, { as: "canonGenreExternalReferenceRelations", foreignKey: "canonGenreId"});
|
|
505
|
+
CanonToPlatformGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
506
|
+
CanonGenre.hasMany(CanonToPlatformGenreRelation, { as: "canonToPlatformGenreRelations", foreignKey: "canonGenreId"});
|
|
507
|
+
JukeboxCanonGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId"});
|
|
508
|
+
CanonGenre.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "canonGenreId"});
|
|
509
|
+
CanonAlbumLabelRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId"});
|
|
510
|
+
CanonLabel.hasMany(CanonAlbumLabelRelation, { as: "canonAlbumLabelRelations", foreignKey: "canonLabelId"});
|
|
511
|
+
CanonLabelExternalReferenceRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId"});
|
|
512
|
+
CanonLabel.hasMany(CanonLabelExternalReferenceRelation, { as: "canonLabelExternalReferenceRelations", foreignKey: "canonLabelId"});
|
|
513
|
+
CanonArtistMemberRelation.belongsTo(CanonMember, { as: "canonMember", foreignKey: "canonMemberId"});
|
|
514
|
+
CanonMember.hasMany(CanonArtistMemberRelation, { as: "canonArtistMemberRelations", foreignKey: "canonMemberId"});
|
|
515
|
+
CanonMemberExternalReferenceRelation.belongsTo(CanonMember, { as: "canonMember", foreignKey: "canonMemberId"});
|
|
516
|
+
CanonMember.hasMany(CanonMemberExternalReferenceRelation, { as: "canonMemberExternalReferenceRelations", foreignKey: "canonMemberId"});
|
|
517
|
+
CanonAlbumTrackRelation.belongsTo(CanonTrack, { as: "canonTrack", foreignKey: "canonTrackId"});
|
|
518
|
+
CanonTrack.hasMany(CanonAlbumTrackRelation, { as: "canonAlbumTrackRelations", foreignKey: "canonTrackId"});
|
|
519
|
+
CanonToPlatformTrackRelation.belongsTo(CanonTrack, { as: "canonTrack", foreignKey: "canonTrackId"});
|
|
520
|
+
CanonTrack.hasMany(CanonToPlatformTrackRelation, { as: "canonToPlatformTrackRelations", foreignKey: "canonTrackId"});
|
|
521
|
+
JukeboxQueueEntry.belongsTo(CanonTrack, { as: "track", foreignKey: "trackId"});
|
|
522
|
+
CanonTrack.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackId"});
|
|
523
|
+
CanonAlbumExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId"});
|
|
524
|
+
ExternalReference.hasMany(CanonAlbumExternalReferenceRelation, { as: "canonAlbumExternalReferenceRelations", foreignKey: "externalReferenceId"});
|
|
525
|
+
CanonArtistExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId"});
|
|
526
|
+
ExternalReference.hasMany(CanonArtistExternalReferenceRelation, { as: "canonArtistExternalReferenceRelations", foreignKey: "externalReferenceId"});
|
|
527
|
+
CanonGenreExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId"});
|
|
528
|
+
ExternalReference.hasMany(CanonGenreExternalReferenceRelation, { as: "canonGenreExternalReferenceRelations", foreignKey: "externalReferenceId"});
|
|
529
|
+
CanonLabelExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId"});
|
|
530
|
+
ExternalReference.hasMany(CanonLabelExternalReferenceRelation, { as: "canonLabelExternalReferenceRelations", foreignKey: "externalReferenceId"});
|
|
531
|
+
CanonMemberExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId"});
|
|
532
|
+
ExternalReference.hasMany(CanonMemberExternalReferenceRelation, { as: "canonMemberExternalReferenceRelations", foreignKey: "externalReferenceId"});
|
|
533
|
+
JukeboxSession.belongsTo(JukeboxAccessType, { as: "accessType", foreignKey: "accessTypeId"});
|
|
534
|
+
JukeboxAccessType.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "accessTypeId"});
|
|
535
|
+
JukeboxUser.belongsTo(JukeboxQueueEntry, { as: "pausedQueueEntry", foreignKey: "pausedQueueEntryId"});
|
|
536
|
+
JukeboxQueueEntry.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "pausedQueueEntryId"});
|
|
537
|
+
JukeboxSession.belongsTo(JukeboxQueueMode, { as: "jukeboxQueueMode", foreignKey: "jukeboxQueueModeId"});
|
|
538
|
+
JukeboxQueueMode.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "jukeboxQueueModeId"});
|
|
539
|
+
JukeboxCanonGenreRelation.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId"});
|
|
540
|
+
JukeboxSession.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "jukeboxSessionId"});
|
|
541
|
+
JukeboxInvite.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId"});
|
|
542
|
+
JukeboxSession.hasMany(JukeboxInvite, { as: "jukeboxInvites", foreignKey: "jukeboxSessionId"});
|
|
543
|
+
JukeboxQueueEntry.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId"});
|
|
544
|
+
JukeboxSession.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "jukeboxSessionId"});
|
|
545
|
+
JukeboxUser.belongsTo(JukeboxSession, { as: "jukeboxSession", foreignKey: "jukeboxSessionId"});
|
|
546
|
+
JukeboxSession.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "jukeboxSessionId"});
|
|
547
|
+
JukeboxSession.belongsTo(JukeboxStatus, { as: "jukeboxStatus", foreignKey: "jukeboxStatusId"});
|
|
548
|
+
JukeboxStatus.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "jukeboxStatusId"});
|
|
549
|
+
JukeboxSession.belongsTo(JukeboxTerminationCondition, { as: "terminationCondition", foreignKey: "terminationConditionId"});
|
|
550
|
+
JukeboxTerminationCondition.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "terminationConditionId"});
|
|
551
|
+
JukeboxSession.belongsTo(JukeboxType, { as: "type", foreignKey: "typeId"});
|
|
552
|
+
JukeboxType.hasMany(JukeboxSession, { as: "jukeboxSessions", foreignKey: "typeId"});
|
|
553
|
+
JukeboxUser.belongsTo(JukeboxUserType, { as: "jukeboxUserType", foreignKey: "jukeboxUserTypeId"});
|
|
554
|
+
JukeboxUserType.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "jukeboxUserTypeId"});
|
|
555
|
+
JukeboxUser.belongsTo(PauseStatusType, { as: "pauseStatusType", foreignKey: "pauseStatusTypeId"});
|
|
556
|
+
PauseStatusType.hasMany(JukeboxUser, { as: "jukeboxUsers", foreignKey: "pauseStatusTypeId"});
|
|
557
|
+
AppUserPlatformRelation.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
558
|
+
Platform.hasMany(AppUserPlatformRelation, { as: "appUserPlatformRelations", foreignKey: "platformId"});
|
|
559
|
+
PlatformAlbum.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
560
|
+
Platform.hasMany(PlatformAlbum, { as: "platformAlbums", foreignKey: "platformId"});
|
|
561
|
+
PlatformArtist.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
562
|
+
Platform.hasMany(PlatformArtist, { as: "platformArtists", foreignKey: "platformId"});
|
|
563
|
+
PlatformGenre.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
564
|
+
Platform.hasMany(PlatformGenre, { as: "platformGenres", foreignKey: "platformId"});
|
|
565
|
+
PlatformTrack.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
566
|
+
Platform.hasMany(PlatformTrack, { as: "platformTracks", foreignKey: "platformId"});
|
|
567
|
+
PlatformUserAlbum.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
568
|
+
Platform.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "platformId"});
|
|
569
|
+
PlatformUserAlbumTrack.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
570
|
+
Platform.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformId"});
|
|
571
|
+
PlatformUserPlaylist.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
572
|
+
Platform.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "platformId"});
|
|
573
|
+
UnmatchedArtist.belongsTo(Platform, { as: "platform", foreignKey: "platformId"});
|
|
574
|
+
Platform.hasMany(UnmatchedArtist, { as: "unmatchedArtists", foreignKey: "platformId"});
|
|
575
|
+
CanonAlbumGenreRelation.belongsTo(PlatformAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
576
|
+
PlatformAlbum.hasMany(CanonAlbumGenreRelation, { as: "canonAlbumGenreRelations", foreignKey: "canonAlbumId"});
|
|
577
|
+
CanonAlbumLabelRelation.belongsTo(PlatformAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
578
|
+
PlatformAlbum.hasMany(CanonAlbumLabelRelation, { as: "canonAlbumLabelRelations", foreignKey: "canonAlbumId"});
|
|
579
|
+
CanonArtistAlbumRelation.belongsTo(PlatformAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId"});
|
|
580
|
+
PlatformAlbum.hasMany(CanonArtistAlbumRelation, { as: "canonArtistAlbumRelations", foreignKey: "canonAlbumId"});
|
|
581
|
+
CanonToPlatformAlbumRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId"});
|
|
582
|
+
PlatformAlbum.hasMany(CanonToPlatformAlbumRelation, { as: "canonToPlatformAlbumRelations", foreignKey: "platformAlbumId"});
|
|
583
|
+
PlatformAlbumGenreRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId"});
|
|
584
|
+
PlatformAlbum.hasMany(PlatformAlbumGenreRelation, { as: "platformAlbumGenreRelations", foreignKey: "platformAlbumId"});
|
|
585
|
+
PlatformAlbumTrackRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId"});
|
|
586
|
+
PlatformAlbum.hasMany(PlatformAlbumTrackRelation, { as: "platformAlbumTrackRelations", foreignKey: "platformAlbumId"});
|
|
587
|
+
PlatformArtistAlbumRelation.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId"});
|
|
588
|
+
PlatformAlbum.hasMany(PlatformArtistAlbumRelation, { as: "platformArtistAlbumRelations", foreignKey: "platformAlbumId"});
|
|
589
|
+
PlatformUserAlbum.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId"});
|
|
590
|
+
PlatformAlbum.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "platformAlbumId"});
|
|
591
|
+
UnmatchedAlbum.belongsTo(PlatformAlbum, { as: "platformAlbum", foreignKey: "platformAlbumId"});
|
|
592
|
+
PlatformAlbum.hasMany(UnmatchedAlbum, { as: "unmatchedAlbums", foreignKey: "platformAlbumId"});
|
|
593
|
+
CanonArtistExternalReferenceRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
594
|
+
PlatformArtist.hasMany(CanonArtistExternalReferenceRelation, { as: "canonArtistExternalReferenceRelations", foreignKey: "canonArtistId"});
|
|
595
|
+
CanonArtistGenreRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
596
|
+
PlatformArtist.hasMany(CanonArtistGenreRelation, { as: "canonArtistGenreRelations", foreignKey: "canonArtistId"});
|
|
597
|
+
CanonArtistMemberRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
598
|
+
PlatformArtist.hasMany(CanonArtistMemberRelation, { as: "canonArtistMemberRelations", foreignKey: "canonArtistId"});
|
|
599
|
+
CanonArtistTrackRelation.belongsTo(PlatformArtist, { as: "canonArtist", foreignKey: "canonArtistId"});
|
|
600
|
+
PlatformArtist.hasMany(CanonArtistTrackRelation, { as: "canonArtistTrackRelations", foreignKey: "canonArtistId"});
|
|
601
|
+
CanonToPlatformArtistRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId"});
|
|
602
|
+
PlatformArtist.hasMany(CanonToPlatformArtistRelation, { as: "canonToPlatformArtistRelations", foreignKey: "platformArtistId"});
|
|
603
|
+
PlatformArtistAlbumRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId"});
|
|
604
|
+
PlatformArtist.hasMany(PlatformArtistAlbumRelation, { as: "platformArtistAlbumRelations", foreignKey: "platformArtistId"});
|
|
605
|
+
PlatformArtistGenreRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId"});
|
|
606
|
+
PlatformArtist.hasMany(PlatformArtistGenreRelation, { as: "platformArtistGenreRelations", foreignKey: "platformArtistId"});
|
|
607
|
+
PlatformArtistTrackRelation.belongsTo(PlatformArtist, { as: "platformArtist", foreignKey: "platformArtistId"});
|
|
608
|
+
PlatformArtist.hasMany(PlatformArtistTrackRelation, { as: "platformArtistTrackRelations", foreignKey: "platformArtistId"});
|
|
609
|
+
CanonToPlatformGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId"});
|
|
610
|
+
PlatformGenre.hasMany(CanonToPlatformGenreRelation, { as: "canonToPlatformGenreRelations", foreignKey: "platformGenreId"});
|
|
611
|
+
PlatformAlbumGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId"});
|
|
612
|
+
PlatformGenre.hasMany(PlatformAlbumGenreRelation, { as: "platformAlbumGenreRelations", foreignKey: "platformGenreId"});
|
|
613
|
+
PlatformArtistGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId"});
|
|
614
|
+
PlatformGenre.hasMany(PlatformArtistGenreRelation, { as: "platformArtistGenreRelations", foreignKey: "platformGenreId"});
|
|
615
|
+
PlatformTrackGenreRelation.belongsTo(PlatformGenre, { as: "platformGenre", foreignKey: "platformGenreId"});
|
|
616
|
+
PlatformGenre.hasMany(PlatformTrackGenreRelation, { as: "platformTrackGenreRelations", foreignKey: "platformGenreId"});
|
|
617
|
+
CanonArtistTrackRelation.belongsTo(PlatformTrack, { as: "canonTrack", foreignKey: "canonTrackId"});
|
|
618
|
+
PlatformTrack.hasMany(CanonArtistTrackRelation, { as: "canonArtistTrackRelations", foreignKey: "canonTrackId"});
|
|
619
|
+
CanonToPlatformTrackRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId"});
|
|
620
|
+
PlatformTrack.hasMany(CanonToPlatformTrackRelation, { as: "canonToPlatformTrackRelations", foreignKey: "platformTrackId"});
|
|
621
|
+
PlatformAlbumTrackRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId"});
|
|
622
|
+
PlatformTrack.hasMany(PlatformAlbumTrackRelation, { as: "platformAlbumTrackRelations", foreignKey: "platformTrackId"});
|
|
623
|
+
PlatformArtistTrackRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId"});
|
|
624
|
+
PlatformTrack.hasMany(PlatformArtistTrackRelation, { as: "platformArtistTrackRelations", foreignKey: "platformTrackId"});
|
|
625
|
+
PlatformTrackGenreRelation.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId"});
|
|
626
|
+
PlatformTrack.hasMany(PlatformTrackGenreRelation, { as: "platformTrackGenreRelations", foreignKey: "platformTrackId"});
|
|
627
|
+
PlatformUserAlbumTrack.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId"});
|
|
628
|
+
PlatformTrack.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformTrackId"});
|
|
629
|
+
PlatformUserPlaylistTrack.belongsTo(PlatformTrack, { as: "platformTrack", foreignKey: "platformTrackId"});
|
|
630
|
+
PlatformTrack.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformTrackId"});
|
|
631
|
+
PlatformUserAlbumTrack.belongsTo(PlatformUserAlbum, { as: "platformUserAlbum", foreignKey: "platformUserAlbumId"});
|
|
632
|
+
PlatformUserAlbum.hasMany(PlatformUserAlbumTrack, { as: "platformUserAlbumTracks", foreignKey: "platformUserAlbumId"});
|
|
633
|
+
PlatformUserPlaylistTrack.belongsTo(PlatformUserPlaylist, { as: "platformUserPlaylist", foreignKey: "platformUserPlaylistId"});
|
|
634
|
+
PlatformUserPlaylist.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformUserPlaylistId"});
|
|
635
|
+
JukeboxQueueEntry.belongsTo(PlaybackStatus, { as: "playbackStatusType", foreignKey: "playbackStatusTypeId"});
|
|
636
|
+
PlaybackStatus.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "playbackStatusTypeId"});
|
|
637
|
+
AppUser.belongsTo(State, { as: "state", foreignKey: "stateId"});
|
|
638
|
+
State.hasMany(AppUser, { as: "appUsers", foreignKey: "stateId"});
|
|
639
|
+
PlatformUserPlaylist.belongsTo(State, { as: "state", foreignKey: "stateId"});
|
|
640
|
+
State.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "stateId"});
|
|
641
|
+
PlatformUserPlaylistTrack.belongsTo(State, { as: "state", foreignKey: "stateId"});
|
|
642
|
+
State.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "stateId"});
|
|
643
|
+
JukeboxQueueEntry.belongsTo(TrackDeletionReason, { as: "trackDeletionReason", foreignKey: "trackDeletionReasonId"});
|
|
644
|
+
TrackDeletionReason.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackDeletionReasonId"});
|
|
645
|
+
|
|
646
|
+
return {
|
|
647
|
+
AppUser: AppUser,
|
|
648
|
+
AppUserDevice: AppUserDevice,
|
|
649
|
+
AppUserFollowRelation: AppUserFollowRelation,
|
|
650
|
+
AppUserPlatformRelation: AppUserPlatformRelation,
|
|
651
|
+
CanonAlbum: CanonAlbum,
|
|
652
|
+
CanonAlbumExternalReferenceRelation: CanonAlbumExternalReferenceRelation,
|
|
653
|
+
CanonAlbumGenreRelation: CanonAlbumGenreRelation,
|
|
654
|
+
CanonAlbumImageHarvested: CanonAlbumImageHarvested,
|
|
655
|
+
CanonAlbumLabelRelation: CanonAlbumLabelRelation,
|
|
656
|
+
CanonAlbumTrackRelation: CanonAlbumTrackRelation,
|
|
657
|
+
CanonArtist: CanonArtist,
|
|
658
|
+
CanonArtistAlbumRelation: CanonArtistAlbumRelation,
|
|
659
|
+
CanonArtistExternalReferenceRelation: CanonArtistExternalReferenceRelation,
|
|
660
|
+
CanonArtistGenreRelation: CanonArtistGenreRelation,
|
|
661
|
+
CanonArtistImageHarvested: CanonArtistImageHarvested,
|
|
662
|
+
CanonArtistMemberRelation: CanonArtistMemberRelation,
|
|
663
|
+
CanonArtistTrackRelation: CanonArtistTrackRelation,
|
|
664
|
+
CanonGenre: CanonGenre,
|
|
665
|
+
CanonGenreExternalReferenceRelation: CanonGenreExternalReferenceRelation,
|
|
666
|
+
CanonLabel: CanonLabel,
|
|
667
|
+
CanonLabelExternalReferenceRelation: CanonLabelExternalReferenceRelation,
|
|
668
|
+
CanonMember: CanonMember,
|
|
669
|
+
CanonMemberExternalReferenceRelation: CanonMemberExternalReferenceRelation,
|
|
670
|
+
CanonToPlatformAlbumRelation: CanonToPlatformAlbumRelation,
|
|
671
|
+
CanonToPlatformArtistRelation: CanonToPlatformArtistRelation,
|
|
672
|
+
CanonToPlatformGenreRelation: CanonToPlatformGenreRelation,
|
|
673
|
+
CanonToPlatformTrackRelation: CanonToPlatformTrackRelation,
|
|
674
|
+
CanonTrack: CanonTrack,
|
|
675
|
+
ConfigParam: ConfigParam,
|
|
676
|
+
ExternalReference: ExternalReference,
|
|
677
|
+
JukeboxAccessType: JukeboxAccessType,
|
|
678
|
+
JukeboxCanonGenreRelation: JukeboxCanonGenreRelation,
|
|
679
|
+
JukeboxInvite: JukeboxInvite,
|
|
680
|
+
JukeboxQueueEntry: JukeboxQueueEntry,
|
|
681
|
+
JukeboxQueueMode: JukeboxQueueMode,
|
|
682
|
+
JukeboxSession: JukeboxSession,
|
|
683
|
+
JukeboxStatus: JukeboxStatus,
|
|
684
|
+
JukeboxTerminationCondition: JukeboxTerminationCondition,
|
|
685
|
+
JukeboxType: JukeboxType,
|
|
686
|
+
JukeboxUser: JukeboxUser,
|
|
687
|
+
JukeboxUserType: JukeboxUserType,
|
|
688
|
+
KnexMigrations: KnexMigrations,
|
|
689
|
+
KnexMigrationsLock: KnexMigrationsLock,
|
|
690
|
+
MetricsDaily: MetricsDaily,
|
|
691
|
+
MetricsEvent: MetricsEvent,
|
|
692
|
+
NewsSite: NewsSite,
|
|
693
|
+
PauseStatusType: PauseStatusType,
|
|
694
|
+
Platform: Platform,
|
|
695
|
+
PlatformAlbum: PlatformAlbum,
|
|
696
|
+
PlatformAlbumGenreRelation: PlatformAlbumGenreRelation,
|
|
697
|
+
PlatformAlbumTrackRelation: PlatformAlbumTrackRelation,
|
|
698
|
+
PlatformArtist: PlatformArtist,
|
|
699
|
+
PlatformArtistAlbumRelation: PlatformArtistAlbumRelation,
|
|
700
|
+
PlatformArtistGenreRelation: PlatformArtistGenreRelation,
|
|
701
|
+
PlatformArtistTrackRelation: PlatformArtistTrackRelation,
|
|
702
|
+
PlatformGenre: PlatformGenre,
|
|
703
|
+
PlatformTrack: PlatformTrack,
|
|
704
|
+
PlatformTrackGenreRelation: PlatformTrackGenreRelation,
|
|
705
|
+
PlatformUserAlbum: PlatformUserAlbum,
|
|
706
|
+
PlatformUserAlbumTrack: PlatformUserAlbumTrack,
|
|
707
|
+
PlatformUserPlaylist: PlatformUserPlaylist,
|
|
708
|
+
PlatformUserPlaylistTrack: PlatformUserPlaylistTrack,
|
|
709
|
+
PlaybackStatus: PlaybackStatus,
|
|
710
|
+
State: State,
|
|
711
|
+
TrackDeletionReason: TrackDeletionReason,
|
|
712
|
+
UnmatchedAlbum: UnmatchedAlbum,
|
|
713
|
+
UnmatchedArtist: UnmatchedArtist,
|
|
714
|
+
UserContacts: UserContacts,
|
|
715
|
+
};
|
|
716
|
+
}
|