@earbug/db-models 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppUser.d.ts +12 -0
- package/dist/CanonGenre.d.ts +12 -0
- package/dist/CanonTrack.d.ts +12 -0
- package/dist/RadioShow.d.ts +80 -0
- package/dist/RadioShow.js +93 -0
- package/dist/RadioShowGenres.d.ts +29 -0
- package/dist/RadioShowGenres.js +53 -0
- package/dist/RadioShowMedia.d.ts +30 -0
- package/dist/RadioShowMedia.js +89 -0
- package/dist/RadioShowPlacement.d.ts +35 -0
- package/dist/RadioShowPlacement.js +69 -0
- package/dist/RadioShowPublishRequests.d.ts +26 -0
- package/dist/RadioShowPublishRequests.js +80 -0
- package/dist/init-models.d.ts +17 -2
- package/dist/init-models.js +35 -1
- package/models/AppUser.ts +13 -0
- package/models/CanonGenre.ts +13 -0
- package/models/CanonTrack.ts +13 -0
- package/models/RadioShow.ts +151 -0
- package/models/RadioShowGenres.ts +81 -0
- package/models/RadioShowMedia.ts +93 -0
- package/models/RadioShowPlacement.ts +103 -0
- package/models/RadioShowPublishRequests.ts +80 -0
- package/models/init-models.ts +49 -0
- package/package.json +1 -1
package/dist/init-models.d.ts
CHANGED
|
@@ -131,6 +131,16 @@ import { PlaybackStatus as _PlaybackStatus } from "./PlaybackStatus";
|
|
|
131
131
|
import type { PlaybackStatusAttributes, PlaybackStatusCreationAttributes } from "./PlaybackStatus";
|
|
132
132
|
import { PlaybackStatusType as _PlaybackStatusType } from "./PlaybackStatusType";
|
|
133
133
|
import type { PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes } from "./PlaybackStatusType";
|
|
134
|
+
import { RadioShow as _RadioShow } from "./RadioShow";
|
|
135
|
+
import type { RadioShowAttributes, RadioShowCreationAttributes } from "./RadioShow";
|
|
136
|
+
import { RadioShowGenres as _RadioShowGenres } from "./RadioShowGenres";
|
|
137
|
+
import type { RadioShowGenresAttributes, RadioShowGenresCreationAttributes } from "./RadioShowGenres";
|
|
138
|
+
import { RadioShowMedia as _RadioShowMedia } from "./RadioShowMedia";
|
|
139
|
+
import type { RadioShowMediaAttributes, RadioShowMediaCreationAttributes } from "./RadioShowMedia";
|
|
140
|
+
import { RadioShowPlacement as _RadioShowPlacement } from "./RadioShowPlacement";
|
|
141
|
+
import type { RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes } from "./RadioShowPlacement";
|
|
142
|
+
import { RadioShowPublishRequests as _RadioShowPublishRequests } from "./RadioShowPublishRequests";
|
|
143
|
+
import type { RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes } from "./RadioShowPublishRequests";
|
|
134
144
|
import { State as _State } from "./State";
|
|
135
145
|
import type { StateAttributes, StateCreationAttributes } from "./State";
|
|
136
146
|
import { TrackDeletionReason as _TrackDeletionReason } from "./TrackDeletionReason";
|
|
@@ -141,8 +151,8 @@ import { UnmatchedArtist as _UnmatchedArtist } from "./UnmatchedArtist";
|
|
|
141
151
|
import type { UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes } from "./UnmatchedArtist";
|
|
142
152
|
import { UserContacts as _UserContacts } from "./UserContacts";
|
|
143
153
|
import type { UserContactsAttributes, UserContactsCreationAttributes } from "./UserContacts";
|
|
144
|
-
export { _AppUser as AppUser, _AppUserDevice as AppUserDevice, _AppUserFollowRelation as AppUserFollowRelation, _AppUserPlatformRelation as AppUserPlatformRelation, _CanonAlbum as CanonAlbum, _CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation, _CanonAlbumGenreRelation as CanonAlbumGenreRelation, _CanonAlbumImageHarvested as CanonAlbumImageHarvested, _CanonAlbumLabelRelation as CanonAlbumLabelRelation, _CanonAlbumTrackRelation as CanonAlbumTrackRelation, _CanonArtist as CanonArtist, _CanonArtistAlbumRelation as CanonArtistAlbumRelation, _CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation, _CanonArtistGenreRelation as CanonArtistGenreRelation, _CanonArtistImageHarvested as CanonArtistImageHarvested, _CanonArtistMemberRelation as CanonArtistMemberRelation, _CanonArtistTrackRelation as CanonArtistTrackRelation, _CanonGenre as CanonGenre, _CanonGenreExternalReferenceRelation as CanonGenreExternalReferenceRelation, _CanonLabel as CanonLabel, _CanonLabelExternalReferenceRelation as CanonLabelExternalReferenceRelation, _CanonMember as CanonMember, _CanonMemberExternalReferenceRelation as CanonMemberExternalReferenceRelation, _CanonToPlatformAlbumRelation as CanonToPlatformAlbumRelation, _CanonToPlatformArtistRelation as CanonToPlatformArtistRelation, _CanonToPlatformGenreRelation as CanonToPlatformGenreRelation, _CanonToPlatformTrackRelation as CanonToPlatformTrackRelation, _CanonTrack as CanonTrack, _ConfigParam as ConfigParam, _ExternalReference as ExternalReference, _JukeboxAccessType as JukeboxAccessType, _JukeboxCanonGenreRelation as JukeboxCanonGenreRelation, _JukeboxInvite as JukeboxInvite, _JukeboxQueueEntry as JukeboxQueueEntry, _JukeboxQueueMode as JukeboxQueueMode, _JukeboxSession as JukeboxSession, _JukeboxStatus as JukeboxStatus, _JukeboxTerminationCondition as JukeboxTerminationCondition, _JukeboxType as JukeboxType, _JukeboxUser as JukeboxUser, _JukeboxUserType as JukeboxUserType, _KnexMigrations as KnexMigrations, _KnexMigrationsLock as KnexMigrationsLock, _MetricsDaily as MetricsDaily, _MetricsEvent as MetricsEvent, _NewsSite as NewsSite, _Notification as Notification, _NotificationType as NotificationType, _PauseStatusType as PauseStatusType, _Platform as Platform, _PlatformAlbum as PlatformAlbum, _PlatformAlbumGenreRelation as PlatformAlbumGenreRelation, _PlatformAlbumTrackRelation as PlatformAlbumTrackRelation, _PlatformArtist as PlatformArtist, _PlatformArtistAlbumRelation as PlatformArtistAlbumRelation, _PlatformArtistGenreRelation as PlatformArtistGenreRelation, _PlatformArtistTrackRelation as PlatformArtistTrackRelation, _PlatformGenre as PlatformGenre, _PlatformTrack as PlatformTrack, _PlatformTrackGenreRelation as PlatformTrackGenreRelation, _PlatformUserAlbum as PlatformUserAlbum, _PlatformUserAlbumTrack as PlatformUserAlbumTrack, _PlatformUserPlaylist as PlatformUserPlaylist, _PlatformUserPlaylistTrack as PlatformUserPlaylistTrack, _PlaybackStatus as PlaybackStatus, _PlaybackStatusType as PlaybackStatusType, _State as State, _TrackDeletionReason as TrackDeletionReason, _UnmatchedAlbum as UnmatchedAlbum, _UnmatchedArtist as UnmatchedArtist, _UserContacts as UserContacts, };
|
|
145
|
-
export type { AppUserAttributes, AppUserCreationAttributes, AppUserDeviceAttributes, AppUserDeviceCreationAttributes, AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes, AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes, CanonAlbumAttributes, CanonAlbumCreationAttributes, CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes, CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes, CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes, CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes, CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes, CanonArtistAttributes, CanonArtistCreationAttributes, CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes, CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes, CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes, CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes, CanonArtistMemberRelationAttributes, CanonArtistMemberRelationCreationAttributes, CanonArtistTrackRelationAttributes, CanonArtistTrackRelationCreationAttributes, CanonGenreAttributes, CanonGenreCreationAttributes, CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationCreationAttributes, CanonLabelAttributes, CanonLabelCreationAttributes, CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes, CanonMemberAttributes, CanonMemberCreationAttributes, CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes, CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes, CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes, CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationCreationAttributes, CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationCreationAttributes, CanonTrackAttributes, CanonTrackCreationAttributes, ConfigParamAttributes, ConfigParamCreationAttributes, ExternalReferenceAttributes, ExternalReferenceCreationAttributes, JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes, JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes, JukeboxInviteAttributes, JukeboxInviteCreationAttributes, JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes, JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes, JukeboxSessionAttributes, JukeboxSessionCreationAttributes, JukeboxStatusAttributes, JukeboxStatusCreationAttributes, JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes, JukeboxTypeAttributes, JukeboxTypeCreationAttributes, JukeboxUserAttributes, JukeboxUserCreationAttributes, JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes, KnexMigrationsAttributes, KnexMigrationsCreationAttributes, KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes, MetricsDailyAttributes, MetricsDailyCreationAttributes, MetricsEventAttributes, MetricsEventCreationAttributes, NewsSiteAttributes, NewsSiteCreationAttributes, NotificationAttributes, NotificationCreationAttributes, NotificationTypeAttributes, NotificationTypeCreationAttributes, PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes, PlatformAttributes, PlatformCreationAttributes, PlatformAlbumAttributes, PlatformAlbumCreationAttributes, PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes, PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes, PlatformArtistAttributes, PlatformArtistCreationAttributes, PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationCreationAttributes, PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationCreationAttributes, PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationCreationAttributes, PlatformGenreAttributes, PlatformGenreCreationAttributes, PlatformTrackAttributes, PlatformTrackCreationAttributes, PlatformTrackGenreRelationAttributes, PlatformTrackGenreRelationCreationAttributes, PlatformUserAlbumAttributes, PlatformUserAlbumCreationAttributes, PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes, PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes, PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes, PlaybackStatusAttributes, PlaybackStatusCreationAttributes, PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, };
|
|
154
|
+
export { _AppUser as AppUser, _AppUserDevice as AppUserDevice, _AppUserFollowRelation as AppUserFollowRelation, _AppUserPlatformRelation as AppUserPlatformRelation, _CanonAlbum as CanonAlbum, _CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation, _CanonAlbumGenreRelation as CanonAlbumGenreRelation, _CanonAlbumImageHarvested as CanonAlbumImageHarvested, _CanonAlbumLabelRelation as CanonAlbumLabelRelation, _CanonAlbumTrackRelation as CanonAlbumTrackRelation, _CanonArtist as CanonArtist, _CanonArtistAlbumRelation as CanonArtistAlbumRelation, _CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation, _CanonArtistGenreRelation as CanonArtistGenreRelation, _CanonArtistImageHarvested as CanonArtistImageHarvested, _CanonArtistMemberRelation as CanonArtistMemberRelation, _CanonArtistTrackRelation as CanonArtistTrackRelation, _CanonGenre as CanonGenre, _CanonGenreExternalReferenceRelation as CanonGenreExternalReferenceRelation, _CanonLabel as CanonLabel, _CanonLabelExternalReferenceRelation as CanonLabelExternalReferenceRelation, _CanonMember as CanonMember, _CanonMemberExternalReferenceRelation as CanonMemberExternalReferenceRelation, _CanonToPlatformAlbumRelation as CanonToPlatformAlbumRelation, _CanonToPlatformArtistRelation as CanonToPlatformArtistRelation, _CanonToPlatformGenreRelation as CanonToPlatformGenreRelation, _CanonToPlatformTrackRelation as CanonToPlatformTrackRelation, _CanonTrack as CanonTrack, _ConfigParam as ConfigParam, _ExternalReference as ExternalReference, _JukeboxAccessType as JukeboxAccessType, _JukeboxCanonGenreRelation as JukeboxCanonGenreRelation, _JukeboxInvite as JukeboxInvite, _JukeboxQueueEntry as JukeboxQueueEntry, _JukeboxQueueMode as JukeboxQueueMode, _JukeboxSession as JukeboxSession, _JukeboxStatus as JukeboxStatus, _JukeboxTerminationCondition as JukeboxTerminationCondition, _JukeboxType as JukeboxType, _JukeboxUser as JukeboxUser, _JukeboxUserType as JukeboxUserType, _KnexMigrations as KnexMigrations, _KnexMigrationsLock as KnexMigrationsLock, _MetricsDaily as MetricsDaily, _MetricsEvent as MetricsEvent, _NewsSite as NewsSite, _Notification as Notification, _NotificationType as NotificationType, _PauseStatusType as PauseStatusType, _Platform as Platform, _PlatformAlbum as PlatformAlbum, _PlatformAlbumGenreRelation as PlatformAlbumGenreRelation, _PlatformAlbumTrackRelation as PlatformAlbumTrackRelation, _PlatformArtist as PlatformArtist, _PlatformArtistAlbumRelation as PlatformArtistAlbumRelation, _PlatformArtistGenreRelation as PlatformArtistGenreRelation, _PlatformArtistTrackRelation as PlatformArtistTrackRelation, _PlatformGenre as PlatformGenre, _PlatformTrack as PlatformTrack, _PlatformTrackGenreRelation as PlatformTrackGenreRelation, _PlatformUserAlbum as PlatformUserAlbum, _PlatformUserAlbumTrack as PlatformUserAlbumTrack, _PlatformUserPlaylist as PlatformUserPlaylist, _PlatformUserPlaylistTrack as PlatformUserPlaylistTrack, _PlaybackStatus as PlaybackStatus, _PlaybackStatusType as PlaybackStatusType, _RadioShow as RadioShow, _RadioShowGenres as RadioShowGenres, _RadioShowMedia as RadioShowMedia, _RadioShowPlacement as RadioShowPlacement, _RadioShowPublishRequests as RadioShowPublishRequests, _State as State, _TrackDeletionReason as TrackDeletionReason, _UnmatchedAlbum as UnmatchedAlbum, _UnmatchedArtist as UnmatchedArtist, _UserContacts as UserContacts, };
|
|
155
|
+
export type { AppUserAttributes, AppUserCreationAttributes, AppUserDeviceAttributes, AppUserDeviceCreationAttributes, AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes, AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes, CanonAlbumAttributes, CanonAlbumCreationAttributes, CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes, CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes, CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes, CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes, CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes, CanonArtistAttributes, CanonArtistCreationAttributes, CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes, CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes, CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes, CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes, CanonArtistMemberRelationAttributes, CanonArtistMemberRelationCreationAttributes, CanonArtistTrackRelationAttributes, CanonArtistTrackRelationCreationAttributes, CanonGenreAttributes, CanonGenreCreationAttributes, CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationCreationAttributes, CanonLabelAttributes, CanonLabelCreationAttributes, CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes, CanonMemberAttributes, CanonMemberCreationAttributes, CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes, CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes, CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes, CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationCreationAttributes, CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationCreationAttributes, CanonTrackAttributes, CanonTrackCreationAttributes, ConfigParamAttributes, ConfigParamCreationAttributes, ExternalReferenceAttributes, ExternalReferenceCreationAttributes, JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes, JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes, JukeboxInviteAttributes, JukeboxInviteCreationAttributes, JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes, JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes, JukeboxSessionAttributes, JukeboxSessionCreationAttributes, JukeboxStatusAttributes, JukeboxStatusCreationAttributes, JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes, JukeboxTypeAttributes, JukeboxTypeCreationAttributes, JukeboxUserAttributes, JukeboxUserCreationAttributes, JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes, KnexMigrationsAttributes, KnexMigrationsCreationAttributes, KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes, MetricsDailyAttributes, MetricsDailyCreationAttributes, MetricsEventAttributes, MetricsEventCreationAttributes, NewsSiteAttributes, NewsSiteCreationAttributes, NotificationAttributes, NotificationCreationAttributes, NotificationTypeAttributes, NotificationTypeCreationAttributes, PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes, PlatformAttributes, PlatformCreationAttributes, PlatformAlbumAttributes, PlatformAlbumCreationAttributes, PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes, PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes, PlatformArtistAttributes, PlatformArtistCreationAttributes, PlatformArtistAlbumRelationAttributes, PlatformArtistAlbumRelationCreationAttributes, PlatformArtistGenreRelationAttributes, PlatformArtistGenreRelationCreationAttributes, PlatformArtistTrackRelationAttributes, PlatformArtistTrackRelationCreationAttributes, PlatformGenreAttributes, PlatformGenreCreationAttributes, PlatformTrackAttributes, PlatformTrackCreationAttributes, PlatformTrackGenreRelationAttributes, PlatformTrackGenreRelationCreationAttributes, PlatformUserAlbumAttributes, PlatformUserAlbumCreationAttributes, PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes, PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes, PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes, PlaybackStatusAttributes, PlaybackStatusCreationAttributes, PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes, RadioShowAttributes, RadioShowCreationAttributes, RadioShowGenresAttributes, RadioShowGenresCreationAttributes, RadioShowMediaAttributes, RadioShowMediaCreationAttributes, RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes, RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, };
|
|
146
156
|
export declare function initModels(sequelize: Sequelize): {
|
|
147
157
|
AppUser: typeof _AppUser;
|
|
148
158
|
AppUserDevice: typeof _AppUserDevice;
|
|
@@ -210,6 +220,11 @@ export declare function initModels(sequelize: Sequelize): {
|
|
|
210
220
|
PlatformUserPlaylistTrack: typeof _PlatformUserPlaylistTrack;
|
|
211
221
|
PlaybackStatus: typeof _PlaybackStatus;
|
|
212
222
|
PlaybackStatusType: typeof _PlaybackStatusType;
|
|
223
|
+
RadioShow: typeof _RadioShow;
|
|
224
|
+
RadioShowGenres: typeof _RadioShowGenres;
|
|
225
|
+
RadioShowMedia: typeof _RadioShowMedia;
|
|
226
|
+
RadioShowPlacement: typeof _RadioShowPlacement;
|
|
227
|
+
RadioShowPublishRequests: typeof _RadioShowPublishRequests;
|
|
213
228
|
State: typeof _State;
|
|
214
229
|
TrackDeletionReason: typeof _TrackDeletionReason;
|
|
215
230
|
UnmatchedAlbum: typeof _UnmatchedAlbum;
|
package/dist/init-models.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Platform = exports.PauseStatusType = exports.NotificationType = exports.Notification = 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.PlaybackStatusType = 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 = exports.PlatformAlbumGenreRelation = exports.PlatformAlbum = void 0;
|
|
4
|
+
exports.UserContacts = exports.UnmatchedArtist = exports.UnmatchedAlbum = exports.TrackDeletionReason = exports.State = exports.RadioShowPublishRequests = exports.RadioShowPlacement = exports.RadioShowMedia = exports.RadioShowGenres = exports.RadioShow = exports.PlaybackStatusType = 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 = exports.PlatformAlbumGenreRelation = exports.PlatformAlbum = void 0;
|
|
5
5
|
exports.initModels = initModels;
|
|
6
6
|
const AppUser_1 = require("./AppUser");
|
|
7
7
|
Object.defineProperty(exports, "AppUser", { enumerable: true, get: function () { return AppUser_1.AppUser; } });
|
|
@@ -135,6 +135,16 @@ const PlaybackStatus_1 = require("./PlaybackStatus");
|
|
|
135
135
|
Object.defineProperty(exports, "PlaybackStatus", { enumerable: true, get: function () { return PlaybackStatus_1.PlaybackStatus; } });
|
|
136
136
|
const PlaybackStatusType_1 = require("./PlaybackStatusType");
|
|
137
137
|
Object.defineProperty(exports, "PlaybackStatusType", { enumerable: true, get: function () { return PlaybackStatusType_1.PlaybackStatusType; } });
|
|
138
|
+
const RadioShow_1 = require("./RadioShow");
|
|
139
|
+
Object.defineProperty(exports, "RadioShow", { enumerable: true, get: function () { return RadioShow_1.RadioShow; } });
|
|
140
|
+
const RadioShowGenres_1 = require("./RadioShowGenres");
|
|
141
|
+
Object.defineProperty(exports, "RadioShowGenres", { enumerable: true, get: function () { return RadioShowGenres_1.RadioShowGenres; } });
|
|
142
|
+
const RadioShowMedia_1 = require("./RadioShowMedia");
|
|
143
|
+
Object.defineProperty(exports, "RadioShowMedia", { enumerable: true, get: function () { return RadioShowMedia_1.RadioShowMedia; } });
|
|
144
|
+
const RadioShowPlacement_1 = require("./RadioShowPlacement");
|
|
145
|
+
Object.defineProperty(exports, "RadioShowPlacement", { enumerable: true, get: function () { return RadioShowPlacement_1.RadioShowPlacement; } });
|
|
146
|
+
const RadioShowPublishRequests_1 = require("./RadioShowPublishRequests");
|
|
147
|
+
Object.defineProperty(exports, "RadioShowPublishRequests", { enumerable: true, get: function () { return RadioShowPublishRequests_1.RadioShowPublishRequests; } });
|
|
138
148
|
const State_1 = require("./State");
|
|
139
149
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return State_1.State; } });
|
|
140
150
|
const TrackDeletionReason_1 = require("./TrackDeletionReason");
|
|
@@ -212,6 +222,11 @@ function initModels(sequelize) {
|
|
|
212
222
|
const PlatformUserPlaylistTrack = PlatformUserPlaylistTrack_1.PlatformUserPlaylistTrack.initModel(sequelize);
|
|
213
223
|
const PlaybackStatus = PlaybackStatus_1.PlaybackStatus.initModel(sequelize);
|
|
214
224
|
const PlaybackStatusType = PlaybackStatusType_1.PlaybackStatusType.initModel(sequelize);
|
|
225
|
+
const RadioShow = RadioShow_1.RadioShow.initModel(sequelize);
|
|
226
|
+
const RadioShowGenres = RadioShowGenres_1.RadioShowGenres.initModel(sequelize);
|
|
227
|
+
const RadioShowMedia = RadioShowMedia_1.RadioShowMedia.initModel(sequelize);
|
|
228
|
+
const RadioShowPlacement = RadioShowPlacement_1.RadioShowPlacement.initModel(sequelize);
|
|
229
|
+
const RadioShowPublishRequests = RadioShowPublishRequests_1.RadioShowPublishRequests.initModel(sequelize);
|
|
215
230
|
const State = State_1.State.initModel(sequelize);
|
|
216
231
|
const TrackDeletionReason = TrackDeletionReason_1.TrackDeletionReason.initModel(sequelize);
|
|
217
232
|
const UnmatchedAlbum = UnmatchedAlbum_1.UnmatchedAlbum.initModel(sequelize);
|
|
@@ -285,6 +300,8 @@ function initModels(sequelize) {
|
|
|
285
300
|
AppUser.hasMany(PlatformUserAlbum, { as: "platformUserAlbums", foreignKey: "appUserId" });
|
|
286
301
|
PlatformUserPlaylist.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
287
302
|
AppUser.hasMany(PlatformUserPlaylist, { as: "platformUserPlaylists", foreignKey: "appUserId" });
|
|
303
|
+
RadioShow.belongsTo(AppUser, { as: "creatorUser", foreignKey: "creatorUserId" });
|
|
304
|
+
AppUser.hasMany(RadioShow, { as: "radioShows", foreignKey: "creatorUserId" });
|
|
288
305
|
UserContacts.belongsTo(AppUser, { as: "appUser", foreignKey: "appUserId" });
|
|
289
306
|
AppUser.hasMany(UserContacts, { as: "userContacts", foreignKey: "appUserId" });
|
|
290
307
|
CanonAlbumExternalReferenceRelation.belongsTo(CanonAlbum, { as: "canonAlbum", foreignKey: "canonAlbumId" });
|
|
@@ -313,6 +330,8 @@ function initModels(sequelize) {
|
|
|
313
330
|
CanonGenre.hasMany(CanonToPlatformGenreRelation, { as: "canonToPlatformGenreRelations", foreignKey: "canonGenreId" });
|
|
314
331
|
JukeboxCanonGenreRelation.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
315
332
|
CanonGenre.hasMany(JukeboxCanonGenreRelation, { as: "jukeboxCanonGenreRelations", foreignKey: "canonGenreId" });
|
|
333
|
+
RadioShowGenres.belongsTo(CanonGenre, { as: "canonGenre", foreignKey: "canonGenreId" });
|
|
334
|
+
CanonGenre.hasMany(RadioShowGenres, { as: "radioShowGenres", foreignKey: "canonGenreId" });
|
|
316
335
|
CanonAlbumLabelRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId" });
|
|
317
336
|
CanonLabel.hasMany(CanonAlbumLabelRelation, { as: "canonAlbumLabelRelations", foreignKey: "canonLabelId" });
|
|
318
337
|
CanonLabelExternalReferenceRelation.belongsTo(CanonLabel, { as: "canonLabel", foreignKey: "canonLabelId" });
|
|
@@ -329,6 +348,8 @@ function initModels(sequelize) {
|
|
|
329
348
|
CanonTrack.hasMany(CanonToPlatformTrackRelation, { as: "canonToPlatformTrackRelations", foreignKey: "canonTrackId" });
|
|
330
349
|
JukeboxQueueEntry.belongsTo(CanonTrack, { as: "track", foreignKey: "trackId" });
|
|
331
350
|
CanonTrack.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "trackId" });
|
|
351
|
+
RadioShowPlacement.belongsTo(CanonTrack, { as: "canonTrack", foreignKey: "canonTrackId" });
|
|
352
|
+
CanonTrack.hasMany(RadioShowPlacement, { as: "radioShowPlacements", foreignKey: "canonTrackId" });
|
|
332
353
|
CanonAlbumExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
333
354
|
ExternalReference.hasMany(CanonAlbumExternalReferenceRelation, { as: "canonAlbumExternalReferenceRelations", foreignKey: "externalReferenceId" });
|
|
334
355
|
CanonArtistExternalReferenceRelation.belongsTo(ExternalReference, { as: "externalReference", foreignKey: "externalReferenceId" });
|
|
@@ -443,6 +464,14 @@ function initModels(sequelize) {
|
|
|
443
464
|
PlatformUserPlaylist.hasMany(PlatformUserPlaylistTrack, { as: "platformUserPlaylistTracks", foreignKey: "platformUserPlaylistId" });
|
|
444
465
|
JukeboxQueueEntry.belongsTo(PlaybackStatusType, { as: "playbackStatusType", foreignKey: "playbackStatusTypeId" });
|
|
445
466
|
PlaybackStatusType.hasMany(JukeboxQueueEntry, { as: "jukeboxQueueEntries", foreignKey: "playbackStatusTypeId" });
|
|
467
|
+
RadioShowGenres.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
468
|
+
RadioShow.hasMany(RadioShowGenres, { as: "radioShowGenres", foreignKey: "radioShowId" });
|
|
469
|
+
RadioShowMedia.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
470
|
+
RadioShow.hasMany(RadioShowMedia, { as: "radioShowMedia", foreignKey: "radioShowId" });
|
|
471
|
+
RadioShowPlacement.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
472
|
+
RadioShow.hasMany(RadioShowPlacement, { as: "radioShowPlacements", foreignKey: "radioShowId" });
|
|
473
|
+
RadioShowPublishRequests.belongsTo(RadioShow, { as: "radioShow", foreignKey: "radioShowId" });
|
|
474
|
+
RadioShow.hasMany(RadioShowPublishRequests, { as: "radioShowPublishRequests", foreignKey: "radioShowId" });
|
|
446
475
|
AppUser.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
447
476
|
State.hasMany(AppUser, { as: "appUsers", foreignKey: "stateId" });
|
|
448
477
|
PlatformUserPlaylist.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
@@ -518,6 +547,11 @@ function initModels(sequelize) {
|
|
|
518
547
|
PlatformUserPlaylistTrack: PlatformUserPlaylistTrack,
|
|
519
548
|
PlaybackStatus: PlaybackStatus,
|
|
520
549
|
PlaybackStatusType: PlaybackStatusType,
|
|
550
|
+
RadioShow: RadioShow,
|
|
551
|
+
RadioShowGenres: RadioShowGenres,
|
|
552
|
+
RadioShowMedia: RadioShowMedia,
|
|
553
|
+
RadioShowPlacement: RadioShowPlacement,
|
|
554
|
+
RadioShowPublishRequests: RadioShowPublishRequests,
|
|
521
555
|
State: State,
|
|
522
556
|
TrackDeletionReason: TrackDeletionReason,
|
|
523
557
|
UnmatchedAlbum: UnmatchedAlbum,
|
package/models/AppUser.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { JukeboxUser, JukeboxUserId } from './JukeboxUser';
|
|
|
9
9
|
import type { Notification, NotificationId } from './Notification';
|
|
10
10
|
import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
|
|
11
11
|
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
12
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
12
13
|
import type { State, StateId } from './State';
|
|
13
14
|
import type { UserContacts, UserContactsId } from './UserContacts';
|
|
14
15
|
|
|
@@ -181,6 +182,18 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
|
|
|
181
182
|
hasPlatformUserPlaylist!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
182
183
|
hasPlatformUserPlaylists!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
183
184
|
countPlatformUserPlaylists!: Sequelize.HasManyCountAssociationsMixin;
|
|
185
|
+
// AppUser hasMany RadioShow via creatorUserId
|
|
186
|
+
radioShows!: RadioShow[];
|
|
187
|
+
getRadioShows!: Sequelize.HasManyGetAssociationsMixin<RadioShow>;
|
|
188
|
+
setRadioShows!: Sequelize.HasManySetAssociationsMixin<RadioShow, RadioShowId>;
|
|
189
|
+
addRadioShow!: Sequelize.HasManyAddAssociationMixin<RadioShow, RadioShowId>;
|
|
190
|
+
addRadioShows!: Sequelize.HasManyAddAssociationsMixin<RadioShow, RadioShowId>;
|
|
191
|
+
createRadioShow!: Sequelize.HasManyCreateAssociationMixin<RadioShow>;
|
|
192
|
+
removeRadioShow!: Sequelize.HasManyRemoveAssociationMixin<RadioShow, RadioShowId>;
|
|
193
|
+
removeRadioShows!: Sequelize.HasManyRemoveAssociationsMixin<RadioShow, RadioShowId>;
|
|
194
|
+
hasRadioShow!: Sequelize.HasManyHasAssociationMixin<RadioShow, RadioShowId>;
|
|
195
|
+
hasRadioShows!: Sequelize.HasManyHasAssociationsMixin<RadioShow, RadioShowId>;
|
|
196
|
+
countRadioShows!: Sequelize.HasManyCountAssociationsMixin;
|
|
184
197
|
// AppUser hasMany UserContacts via appUserId
|
|
185
198
|
userContacts!: UserContacts[];
|
|
186
199
|
getUserContacts!: Sequelize.HasManyGetAssociationsMixin<UserContacts>;
|
package/models/CanonGenre.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { JukeboxCanonGenreRelation, JukeboxCanonGenreRelationId } from './J
|
|
|
9
9
|
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
10
10
|
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
11
11
|
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
12
|
+
import type { RadioShowGenres, RadioShowGenresId } from './RadioShowGenres';
|
|
12
13
|
|
|
13
14
|
export interface CanonGenreAttributes {
|
|
14
15
|
name: string;
|
|
@@ -142,6 +143,18 @@ export class CanonGenre extends Model<CanonGenreAttributes, CanonGenreCreationAt
|
|
|
142
143
|
hasPlatformGenreIdPlatformGenre!: Sequelize.BelongsToManyHasAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
143
144
|
hasPlatformGenreIdPlatformGenres!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
144
145
|
countPlatformGenreIdPlatformGenres!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
146
|
+
// CanonGenre hasMany RadioShowGenres via canonGenreId
|
|
147
|
+
radioShowGenres!: RadioShowGenres[];
|
|
148
|
+
getRadioShowGenres!: Sequelize.HasManyGetAssociationsMixin<RadioShowGenres>;
|
|
149
|
+
setRadioShowGenres!: Sequelize.HasManySetAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
150
|
+
addRadioShowGenre!: Sequelize.HasManyAddAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
151
|
+
addRadioShowGenres!: Sequelize.HasManyAddAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
152
|
+
createRadioShowGenre!: Sequelize.HasManyCreateAssociationMixin<RadioShowGenres>;
|
|
153
|
+
removeRadioShowGenre!: Sequelize.HasManyRemoveAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
154
|
+
removeRadioShowGenres!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
155
|
+
hasRadioShowGenre!: Sequelize.HasManyHasAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
156
|
+
hasRadioShowGenres!: Sequelize.HasManyHasAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
157
|
+
countRadioShowGenres!: Sequelize.HasManyCountAssociationsMixin;
|
|
145
158
|
|
|
146
159
|
static initModel(sequelize: Sequelize.Sequelize): typeof CanonGenre {
|
|
147
160
|
return CanonGenre.init({
|
package/models/CanonTrack.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { CanonArtistTrackRelation, CanonArtistTrackRelationId } from './Can
|
|
|
7
7
|
import type { CanonToPlatformTrackRelation, CanonToPlatformTrackRelationId } from './CanonToPlatformTrackRelation';
|
|
8
8
|
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
9
9
|
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
10
|
+
import type { RadioShowPlacement, RadioShowPlacementId } from './RadioShowPlacement';
|
|
10
11
|
|
|
11
12
|
export interface CanonTrackAttributes {
|
|
12
13
|
name: string;
|
|
@@ -120,6 +121,18 @@ export class CanonTrack extends Model<CanonTrackAttributes, CanonTrackCreationAt
|
|
|
120
121
|
hasPlatformTrackIdPlatformTrack!: Sequelize.BelongsToManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
121
122
|
hasPlatformTrackIdPlatformTracks!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
122
123
|
countPlatformTrackIdPlatformTracks!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
124
|
+
// CanonTrack hasMany RadioShowPlacement via canonTrackId
|
|
125
|
+
radioShowPlacements!: RadioShowPlacement[];
|
|
126
|
+
getRadioShowPlacements!: Sequelize.HasManyGetAssociationsMixin<RadioShowPlacement>;
|
|
127
|
+
setRadioShowPlacements!: Sequelize.HasManySetAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
128
|
+
addRadioShowPlacement!: Sequelize.HasManyAddAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
129
|
+
addRadioShowPlacements!: Sequelize.HasManyAddAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
130
|
+
createRadioShowPlacement!: Sequelize.HasManyCreateAssociationMixin<RadioShowPlacement>;
|
|
131
|
+
removeRadioShowPlacement!: Sequelize.HasManyRemoveAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
132
|
+
removeRadioShowPlacements!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
133
|
+
hasRadioShowPlacement!: Sequelize.HasManyHasAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
134
|
+
hasRadioShowPlacements!: Sequelize.HasManyHasAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
135
|
+
countRadioShowPlacements!: Sequelize.HasManyCountAssociationsMixin;
|
|
123
136
|
|
|
124
137
|
static initModel(sequelize: Sequelize.Sequelize): typeof CanonTrack {
|
|
125
138
|
return CanonTrack.init({
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
import type { RadioShowGenres, RadioShowGenresId } from './RadioShowGenres';
|
|
5
|
+
import type { RadioShowMedia, RadioShowMediaId } from './RadioShowMedia';
|
|
6
|
+
import type { RadioShowPlacement, RadioShowPlacementId } from './RadioShowPlacement';
|
|
7
|
+
import type { RadioShowPublishRequests, RadioShowPublishRequestsId } from './RadioShowPublishRequests';
|
|
8
|
+
|
|
9
|
+
export interface RadioShowAttributes {
|
|
10
|
+
creatorUserId: string;
|
|
11
|
+
scheduledRelease?: Date;
|
|
12
|
+
title: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
deleted?: boolean;
|
|
15
|
+
id: string;
|
|
16
|
+
createDate: Date;
|
|
17
|
+
updateDate: Date;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type RadioShowPk = "id";
|
|
21
|
+
export type RadioShowId = RadioShow[RadioShowPk];
|
|
22
|
+
export type RadioShowOptionalAttributes = "scheduledRelease" | "description" | "deleted" | "id" | "createDate" | "updateDate";
|
|
23
|
+
export type RadioShowCreationAttributes = Optional<RadioShowAttributes, RadioShowOptionalAttributes>;
|
|
24
|
+
|
|
25
|
+
export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttributes> implements RadioShowAttributes {
|
|
26
|
+
creatorUserId!: string;
|
|
27
|
+
scheduledRelease?: Date;
|
|
28
|
+
title!: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
deleted?: boolean;
|
|
31
|
+
id!: string;
|
|
32
|
+
createDate!: Date;
|
|
33
|
+
updateDate!: Date;
|
|
34
|
+
|
|
35
|
+
// RadioShow belongsTo AppUser via creatorUserId
|
|
36
|
+
creatorUser!: AppUser;
|
|
37
|
+
getCreatorUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
38
|
+
setCreatorUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
39
|
+
createCreatorUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
40
|
+
// RadioShow hasMany RadioShowGenres via radioShowId
|
|
41
|
+
radioShowGenres!: RadioShowGenres[];
|
|
42
|
+
getRadioShowGenres!: Sequelize.HasManyGetAssociationsMixin<RadioShowGenres>;
|
|
43
|
+
setRadioShowGenres!: Sequelize.HasManySetAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
44
|
+
addRadioShowGenre!: Sequelize.HasManyAddAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
45
|
+
addRadioShowGenres!: Sequelize.HasManyAddAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
46
|
+
createRadioShowGenre!: Sequelize.HasManyCreateAssociationMixin<RadioShowGenres>;
|
|
47
|
+
removeRadioShowGenre!: Sequelize.HasManyRemoveAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
48
|
+
removeRadioShowGenres!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
49
|
+
hasRadioShowGenre!: Sequelize.HasManyHasAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
50
|
+
hasRadioShowGenres!: Sequelize.HasManyHasAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
51
|
+
countRadioShowGenres!: Sequelize.HasManyCountAssociationsMixin;
|
|
52
|
+
// RadioShow hasMany RadioShowMedia via radioShowId
|
|
53
|
+
radioShowMedia!: RadioShowMedia[];
|
|
54
|
+
getRadioShowMedia!: Sequelize.HasManyGetAssociationsMixin<RadioShowMedia>;
|
|
55
|
+
setRadioShowMedia!: Sequelize.HasManySetAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
56
|
+
addRadioShowMedium!: Sequelize.HasManyAddAssociationMixin<RadioShowMedia, RadioShowMediaId>;
|
|
57
|
+
addRadioShowMedia!: Sequelize.HasManyAddAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
58
|
+
createRadioShowMedium!: Sequelize.HasManyCreateAssociationMixin<RadioShowMedia>;
|
|
59
|
+
removeRadioShowMedium!: Sequelize.HasManyRemoveAssociationMixin<RadioShowMedia, RadioShowMediaId>;
|
|
60
|
+
removeRadioShowMedia!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
61
|
+
hasRadioShowMedium!: Sequelize.HasManyHasAssociationMixin<RadioShowMedia, RadioShowMediaId>;
|
|
62
|
+
hasRadioShowMedia!: Sequelize.HasManyHasAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
63
|
+
countRadioShowMedia!: Sequelize.HasManyCountAssociationsMixin;
|
|
64
|
+
// RadioShow hasMany RadioShowPlacement via radioShowId
|
|
65
|
+
radioShowPlacements!: RadioShowPlacement[];
|
|
66
|
+
getRadioShowPlacements!: Sequelize.HasManyGetAssociationsMixin<RadioShowPlacement>;
|
|
67
|
+
setRadioShowPlacements!: Sequelize.HasManySetAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
68
|
+
addRadioShowPlacement!: Sequelize.HasManyAddAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
69
|
+
addRadioShowPlacements!: Sequelize.HasManyAddAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
70
|
+
createRadioShowPlacement!: Sequelize.HasManyCreateAssociationMixin<RadioShowPlacement>;
|
|
71
|
+
removeRadioShowPlacement!: Sequelize.HasManyRemoveAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
72
|
+
removeRadioShowPlacements!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
73
|
+
hasRadioShowPlacement!: Sequelize.HasManyHasAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
74
|
+
hasRadioShowPlacements!: Sequelize.HasManyHasAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
75
|
+
countRadioShowPlacements!: Sequelize.HasManyCountAssociationsMixin;
|
|
76
|
+
// RadioShow hasMany RadioShowPublishRequests via radioShowId
|
|
77
|
+
radioShowPublishRequests!: RadioShowPublishRequests[];
|
|
78
|
+
getRadioShowPublishRequests!: Sequelize.HasManyGetAssociationsMixin<RadioShowPublishRequests>;
|
|
79
|
+
setRadioShowPublishRequests!: Sequelize.HasManySetAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
80
|
+
addRadioShowPublishRequest!: Sequelize.HasManyAddAssociationMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
81
|
+
addRadioShowPublishRequests!: Sequelize.HasManyAddAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
82
|
+
createRadioShowPublishRequest!: Sequelize.HasManyCreateAssociationMixin<RadioShowPublishRequests>;
|
|
83
|
+
removeRadioShowPublishRequest!: Sequelize.HasManyRemoveAssociationMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
84
|
+
removeRadioShowPublishRequests!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
85
|
+
hasRadioShowPublishRequest!: Sequelize.HasManyHasAssociationMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
86
|
+
hasRadioShowPublishRequests!: Sequelize.HasManyHasAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
87
|
+
countRadioShowPublishRequests!: Sequelize.HasManyCountAssociationsMixin;
|
|
88
|
+
|
|
89
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShow {
|
|
90
|
+
return RadioShow.init({
|
|
91
|
+
creatorUserId: {
|
|
92
|
+
type: DataTypes.UUID,
|
|
93
|
+
allowNull: false,
|
|
94
|
+
references: {
|
|
95
|
+
model: 'app_user',
|
|
96
|
+
key: 'id'
|
|
97
|
+
},
|
|
98
|
+
field: 'creator_user_id'
|
|
99
|
+
},
|
|
100
|
+
scheduledRelease: {
|
|
101
|
+
type: DataTypes.DATE,
|
|
102
|
+
allowNull: true,
|
|
103
|
+
field: 'scheduled_release'
|
|
104
|
+
},
|
|
105
|
+
title: {
|
|
106
|
+
type: DataTypes.STRING(40),
|
|
107
|
+
allowNull: false
|
|
108
|
+
},
|
|
109
|
+
description: {
|
|
110
|
+
type: DataTypes.STRING(512),
|
|
111
|
+
allowNull: true
|
|
112
|
+
},
|
|
113
|
+
deleted: {
|
|
114
|
+
type: DataTypes.BOOLEAN,
|
|
115
|
+
allowNull: true
|
|
116
|
+
},
|
|
117
|
+
id: {
|
|
118
|
+
type: DataTypes.UUID,
|
|
119
|
+
allowNull: false,
|
|
120
|
+
defaultValue: DataTypes.UUIDV4,
|
|
121
|
+
primaryKey: true
|
|
122
|
+
},
|
|
123
|
+
createDate: {
|
|
124
|
+
type: DataTypes.DATE,
|
|
125
|
+
allowNull: false,
|
|
126
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
127
|
+
field: 'create_date'
|
|
128
|
+
},
|
|
129
|
+
updateDate: {
|
|
130
|
+
type: DataTypes.DATE,
|
|
131
|
+
allowNull: false,
|
|
132
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
133
|
+
field: 'update_date'
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
sequelize,
|
|
137
|
+
tableName: 'radio_show',
|
|
138
|
+
schema: 'eb',
|
|
139
|
+
timestamps: false,
|
|
140
|
+
indexes: [
|
|
141
|
+
{
|
|
142
|
+
name: "radio_show_pkey",
|
|
143
|
+
unique: true,
|
|
144
|
+
fields: [
|
|
145
|
+
{ name: "id" },
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
]
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
5
|
+
|
|
6
|
+
export interface RadioShowGenresAttributes {
|
|
7
|
+
canonGenreId: string;
|
|
8
|
+
radioShowId: string;
|
|
9
|
+
title: string;
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type RadioShowGenresPk = "id";
|
|
14
|
+
export type RadioShowGenresId = RadioShowGenres[RadioShowGenresPk];
|
|
15
|
+
export type RadioShowGenresOptionalAttributes = "id";
|
|
16
|
+
export type RadioShowGenresCreationAttributes = Optional<RadioShowGenresAttributes, RadioShowGenresOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class RadioShowGenres extends Model<RadioShowGenresAttributes, RadioShowGenresCreationAttributes> implements RadioShowGenresAttributes {
|
|
19
|
+
canonGenreId!: string;
|
|
20
|
+
radioShowId!: string;
|
|
21
|
+
title!: string;
|
|
22
|
+
id!: string;
|
|
23
|
+
|
|
24
|
+
// RadioShowGenres belongsTo CanonGenre via canonGenreId
|
|
25
|
+
canonGenre!: CanonGenre;
|
|
26
|
+
getCanonGenre!: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
27
|
+
setCanonGenre!: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
28
|
+
createCanonGenre!: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
29
|
+
// RadioShowGenres belongsTo RadioShow via radioShowId
|
|
30
|
+
radioShow!: RadioShow;
|
|
31
|
+
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
32
|
+
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
33
|
+
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowGenres {
|
|
36
|
+
return RadioShowGenres.init({
|
|
37
|
+
canonGenreId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
references: {
|
|
41
|
+
model: 'canon_genre',
|
|
42
|
+
key: 'id'
|
|
43
|
+
},
|
|
44
|
+
field: 'canon_genre_id'
|
|
45
|
+
},
|
|
46
|
+
radioShowId: {
|
|
47
|
+
type: DataTypes.UUID,
|
|
48
|
+
allowNull: false,
|
|
49
|
+
references: {
|
|
50
|
+
model: 'radio_show',
|
|
51
|
+
key: 'id'
|
|
52
|
+
},
|
|
53
|
+
field: 'radio_show_id'
|
|
54
|
+
},
|
|
55
|
+
title: {
|
|
56
|
+
type: DataTypes.STRING(40),
|
|
57
|
+
allowNull: false
|
|
58
|
+
},
|
|
59
|
+
id: {
|
|
60
|
+
type: DataTypes.UUID,
|
|
61
|
+
allowNull: false,
|
|
62
|
+
defaultValue: DataTypes.UUIDV4,
|
|
63
|
+
primaryKey: true
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
sequelize,
|
|
67
|
+
tableName: 'radio_show_genres',
|
|
68
|
+
schema: 'eb',
|
|
69
|
+
timestamps: false,
|
|
70
|
+
indexes: [
|
|
71
|
+
{
|
|
72
|
+
name: "radio_show_genres_pkey",
|
|
73
|
+
unique: true,
|
|
74
|
+
fields: [
|
|
75
|
+
{ name: "id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
+
|
|
5
|
+
export interface RadioShowMediaAttributes {
|
|
6
|
+
radioShowId: string;
|
|
7
|
+
originalMediaType?: number;
|
|
8
|
+
s3VideoUrl?: string;
|
|
9
|
+
s3AudioUrl: string;
|
|
10
|
+
approved?: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
createDate: Date;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type RadioShowMediaPk = "id";
|
|
16
|
+
export type RadioShowMediaId = RadioShowMedia[RadioShowMediaPk];
|
|
17
|
+
export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "approved" | "id" | "createDate";
|
|
18
|
+
export type RadioShowMediaCreationAttributes = Optional<RadioShowMediaAttributes, RadioShowMediaOptionalAttributes>;
|
|
19
|
+
|
|
20
|
+
export class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMediaCreationAttributes> implements RadioShowMediaAttributes {
|
|
21
|
+
radioShowId!: string;
|
|
22
|
+
originalMediaType?: number;
|
|
23
|
+
s3VideoUrl?: string;
|
|
24
|
+
s3AudioUrl!: string;
|
|
25
|
+
approved?: boolean;
|
|
26
|
+
id!: string;
|
|
27
|
+
createDate!: Date;
|
|
28
|
+
|
|
29
|
+
// RadioShowMedia belongsTo RadioShow via radioShowId
|
|
30
|
+
radioShow!: RadioShow;
|
|
31
|
+
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
32
|
+
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
33
|
+
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowMedia {
|
|
36
|
+
return RadioShowMedia.init({
|
|
37
|
+
radioShowId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
references: {
|
|
41
|
+
model: 'radio_show',
|
|
42
|
+
key: 'id'
|
|
43
|
+
},
|
|
44
|
+
field: 'radio_show_id'
|
|
45
|
+
},
|
|
46
|
+
originalMediaType: {
|
|
47
|
+
type: DataTypes.INTEGER,
|
|
48
|
+
allowNull: true,
|
|
49
|
+
field: 'original_media_type'
|
|
50
|
+
},
|
|
51
|
+
s3VideoUrl: {
|
|
52
|
+
type: DataTypes.TEXT,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
field: 's3_video_url'
|
|
55
|
+
},
|
|
56
|
+
s3AudioUrl: {
|
|
57
|
+
type: DataTypes.TEXT,
|
|
58
|
+
allowNull: false,
|
|
59
|
+
field: 's3_audio_url'
|
|
60
|
+
},
|
|
61
|
+
approved: {
|
|
62
|
+
type: DataTypes.BOOLEAN,
|
|
63
|
+
allowNull: true
|
|
64
|
+
},
|
|
65
|
+
id: {
|
|
66
|
+
type: DataTypes.UUID,
|
|
67
|
+
allowNull: false,
|
|
68
|
+
defaultValue: DataTypes.UUIDV4,
|
|
69
|
+
primaryKey: true
|
|
70
|
+
},
|
|
71
|
+
createDate: {
|
|
72
|
+
type: DataTypes.DATE,
|
|
73
|
+
allowNull: false,
|
|
74
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
75
|
+
field: 'create_date'
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
sequelize,
|
|
79
|
+
tableName: 'radio_show_media',
|
|
80
|
+
schema: 'eb',
|
|
81
|
+
timestamps: false,
|
|
82
|
+
indexes: [
|
|
83
|
+
{
|
|
84
|
+
name: "radio_show_media_pkey",
|
|
85
|
+
unique: true,
|
|
86
|
+
fields: [
|
|
87
|
+
{ name: "id" },
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|