@earbug/db-models 0.0.63 → 0.0.64
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/RadioShow.d.ts +8 -1
- package/dist/RadioShow.js +16 -0
- package/dist/RadioShowType.d.ts +26 -0
- package/dist/RadioShowType.js +42 -0
- package/dist/init-models.d.ts +5 -2
- package/dist/init-models.js +8 -2
- package/models/RadioShow.ts +25 -1
- package/models/RadioShowType.ts +66 -0
- package/models/init-models.ts +9 -0
- package/package.json +1 -1
package/dist/RadioShow.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { RadioShowGenres, RadioShowGenresId } from './RadioShowGenres';
|
|
|
5
5
|
import type { RadioShowMedia, RadioShowMediaId } from './RadioShowMedia';
|
|
6
6
|
import type { RadioShowPlacement, RadioShowPlacementId } from './RadioShowPlacement';
|
|
7
7
|
import type { RadioShowPublishRequests, RadioShowPublishRequestsId } from './RadioShowPublishRequests';
|
|
8
|
+
import type { RadioShowType, RadioShowTypeId } from './RadioShowType';
|
|
8
9
|
import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
|
|
9
10
|
import type { UserBookmarks, UserBookmarksId } from './UserBookmarks';
|
|
10
11
|
import type { UserComments, UserCommentsId } from './UserComments';
|
|
@@ -18,10 +19,11 @@ export interface RadioShowAttributes {
|
|
|
18
19
|
deleted?: boolean;
|
|
19
20
|
createDate: Date;
|
|
20
21
|
updateDate: Date;
|
|
22
|
+
radioShowTypeId: number;
|
|
21
23
|
}
|
|
22
24
|
export type RadioShowPk = "id";
|
|
23
25
|
export type RadioShowId = RadioShow[RadioShowPk];
|
|
24
|
-
export type RadioShowOptionalAttributes = "id" | "scheduledRelease" | "description" | "deleted" | "createDate" | "updateDate";
|
|
26
|
+
export type RadioShowOptionalAttributes = "id" | "scheduledRelease" | "description" | "deleted" | "createDate" | "updateDate" | "radioShowTypeId";
|
|
25
27
|
export type RadioShowCreationAttributes = Optional<RadioShowAttributes, RadioShowOptionalAttributes>;
|
|
26
28
|
export declare class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttributes> implements RadioShowAttributes {
|
|
27
29
|
id: string;
|
|
@@ -32,6 +34,7 @@ export declare class RadioShow extends Model<RadioShowAttributes, RadioShowCreat
|
|
|
32
34
|
deleted?: boolean;
|
|
33
35
|
createDate: Date;
|
|
34
36
|
updateDate: Date;
|
|
37
|
+
radioShowTypeId: number;
|
|
35
38
|
creatorUser: AppUser;
|
|
36
39
|
getCreatorUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
37
40
|
setCreatorUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
@@ -124,5 +127,9 @@ export declare class RadioShow extends Model<RadioShowAttributes, RadioShowCreat
|
|
|
124
127
|
hasUserLike: Sequelize.HasManyHasAssociationMixin<UserLikes, UserLikesId>;
|
|
125
128
|
hasUserLikes: Sequelize.HasManyHasAssociationsMixin<UserLikes, UserLikesId>;
|
|
126
129
|
countUserLikes: Sequelize.HasManyCountAssociationsMixin;
|
|
130
|
+
radioShowType: RadioShowType;
|
|
131
|
+
getRadioShowType: Sequelize.BelongsToGetAssociationMixin<RadioShowType>;
|
|
132
|
+
setRadioShowType: Sequelize.BelongsToSetAssociationMixin<RadioShowType, RadioShowTypeId>;
|
|
133
|
+
createRadioShowType: Sequelize.BelongsToCreateAssociationMixin<RadioShowType>;
|
|
127
134
|
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShow;
|
|
128
135
|
}
|
package/dist/RadioShow.js
CHANGED
|
@@ -72,6 +72,16 @@ class RadioShow extends sequelize_1.Model {
|
|
|
72
72
|
allowNull: false,
|
|
73
73
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
74
74
|
field: 'update_date'
|
|
75
|
+
},
|
|
76
|
+
radioShowTypeId: {
|
|
77
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
78
|
+
allowNull: false,
|
|
79
|
+
defaultValue: 1,
|
|
80
|
+
references: {
|
|
81
|
+
model: 'radio_show_type',
|
|
82
|
+
key: 'id'
|
|
83
|
+
},
|
|
84
|
+
field: 'radio_show_type_id'
|
|
75
85
|
}
|
|
76
86
|
}, {
|
|
77
87
|
sequelize,
|
|
@@ -85,6 +95,12 @@ class RadioShow extends sequelize_1.Model {
|
|
|
85
95
|
{ name: "creator_user_id" },
|
|
86
96
|
]
|
|
87
97
|
},
|
|
98
|
+
{
|
|
99
|
+
name: "idx_radio_show_type",
|
|
100
|
+
fields: [
|
|
101
|
+
{ name: "radio_show_type_id" },
|
|
102
|
+
]
|
|
103
|
+
},
|
|
88
104
|
{
|
|
89
105
|
name: "radio_show_pkey",
|
|
90
106
|
unique: true,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
+
export interface RadioShowTypeAttributes {
|
|
5
|
+
id: number;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export type RadioShowTypePk = "id";
|
|
9
|
+
export type RadioShowTypeId = RadioShowType[RadioShowTypePk];
|
|
10
|
+
export type RadioShowTypeCreationAttributes = RadioShowTypeAttributes;
|
|
11
|
+
export declare class RadioShowType extends Model<RadioShowTypeAttributes, RadioShowTypeCreationAttributes> implements RadioShowTypeAttributes {
|
|
12
|
+
id: number;
|
|
13
|
+
description: string;
|
|
14
|
+
radioShows: RadioShow[];
|
|
15
|
+
getRadioShows: Sequelize.HasManyGetAssociationsMixin<RadioShow>;
|
|
16
|
+
setRadioShows: Sequelize.HasManySetAssociationsMixin<RadioShow, RadioShowId>;
|
|
17
|
+
addRadioShow: Sequelize.HasManyAddAssociationMixin<RadioShow, RadioShowId>;
|
|
18
|
+
addRadioShows: Sequelize.HasManyAddAssociationsMixin<RadioShow, RadioShowId>;
|
|
19
|
+
createRadioShow: Sequelize.HasManyCreateAssociationMixin<RadioShow>;
|
|
20
|
+
removeRadioShow: Sequelize.HasManyRemoveAssociationMixin<RadioShow, RadioShowId>;
|
|
21
|
+
removeRadioShows: Sequelize.HasManyRemoveAssociationsMixin<RadioShow, RadioShowId>;
|
|
22
|
+
hasRadioShow: Sequelize.HasManyHasAssociationMixin<RadioShow, RadioShowId>;
|
|
23
|
+
hasRadioShows: Sequelize.HasManyHasAssociationsMixin<RadioShow, RadioShowId>;
|
|
24
|
+
countRadioShows: Sequelize.HasManyCountAssociationsMixin;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowType;
|
|
26
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioShowType = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class RadioShowType extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return RadioShowType.init({
|
|
8
|
+
id: {
|
|
9
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
10
|
+
allowNull: false,
|
|
11
|
+
primaryKey: true
|
|
12
|
+
},
|
|
13
|
+
description: {
|
|
14
|
+
type: sequelize_1.DataTypes.STRING(64),
|
|
15
|
+
allowNull: false,
|
|
16
|
+
unique: "radio_show_type_description_key"
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
sequelize,
|
|
20
|
+
tableName: 'radio_show_type',
|
|
21
|
+
schema: 'eb',
|
|
22
|
+
timestamps: false,
|
|
23
|
+
indexes: [
|
|
24
|
+
{
|
|
25
|
+
name: "radio_show_type_description_key",
|
|
26
|
+
unique: true,
|
|
27
|
+
fields: [
|
|
28
|
+
{ name: "description" },
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "radio_show_type_pkey",
|
|
33
|
+
unique: true,
|
|
34
|
+
fields: [
|
|
35
|
+
{ name: "id" },
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.RadioShowType = RadioShowType;
|
package/dist/init-models.d.ts
CHANGED
|
@@ -171,6 +171,8 @@ import { RadioShowPlacement as _RadioShowPlacement } from "./RadioShowPlacement"
|
|
|
171
171
|
import type { RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes } from "./RadioShowPlacement";
|
|
172
172
|
import { RadioShowPublishRequests as _RadioShowPublishRequests } from "./RadioShowPublishRequests";
|
|
173
173
|
import type { RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes } from "./RadioShowPublishRequests";
|
|
174
|
+
import { RadioShowType as _RadioShowType } from "./RadioShowType";
|
|
175
|
+
import type { RadioShowTypeAttributes, RadioShowTypeCreationAttributes } from "./RadioShowType";
|
|
174
176
|
import { State as _State } from "./State";
|
|
175
177
|
import type { StateAttributes, StateCreationAttributes } from "./State";
|
|
176
178
|
import { TrackDeletionReason as _TrackDeletionReason } from "./TrackDeletionReason";
|
|
@@ -229,8 +231,8 @@ import { VersusVotingListType as _VersusVotingListType } from "./VersusVotingLis
|
|
|
229
231
|
import type { VersusVotingListTypeAttributes, VersusVotingListTypeCreationAttributes } from "./VersusVotingListType";
|
|
230
232
|
import { VersusVotingMode as _VersusVotingMode } from "./VersusVotingMode";
|
|
231
233
|
import type { VersusVotingModeAttributes, VersusVotingModeCreationAttributes } from "./VersusVotingMode";
|
|
232
|
-
export { _AccessControlPreference as AccessControlPreference, _AffinityRelationshipType as AffinityRelationshipType, _AffinityTier as AffinityTier, _AppUser as AppUser, _AppUserDevice as AppUserDevice, _AppUserDeviceClassicBackup20260906 as AppUserDeviceClassicBackup20260906, _AppUserFollowRelation as AppUserFollowRelation, _AppUserPlatformRelation as AppUserPlatformRelation, _CanonAlbum as CanonAlbum, _CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation, _CanonAlbumGenreRelation as CanonAlbumGenreRelation, _CanonAlbumLabelRelation as CanonAlbumLabelRelation, _CanonAlbumTrackRelation as CanonAlbumTrackRelation, _CanonArtist as CanonArtist, _CanonArtistAlbumRelation as CanonArtistAlbumRelation, _CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation, _CanonArtistGenreRelation as CanonArtistGenreRelation, _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, _FeedConfig as FeedConfig, _FeedContentType as FeedContentType, _GuestUser as GuestUser, _JukeboxAccessType as JukeboxAccessType, _JukeboxCanonGenreRelation as JukeboxCanonGenreRelation, _JukeboxInvite as JukeboxInvite, _JukeboxQueueEntry as JukeboxQueueEntry, _JukeboxQueueMode as JukeboxQueueMode, _JukeboxSession as JukeboxSession, _JukeboxSessionArtistAffinity as JukeboxSessionArtistAffinity, _JukeboxSessionGenreAffinity as JukeboxSessionGenreAffinity, _JukeboxStatus as JukeboxStatus, _JukeboxTerminationCondition as JukeboxTerminationCondition, _JukeboxType as JukeboxType, _JukeboxUser as JukeboxUser, _JukeboxUserType as JukeboxUserType, _KnexMigrations as KnexMigrations, _KnexMigrationsLock as KnexMigrationsLock, _MerchItem as MerchItem, _MerchOrchestration as MerchOrchestration, _MerchPlatform as MerchPlatform, _MerchType as MerchType, _MetricsDaily as MetricsDaily, _MetricsEvent as MetricsEvent, _NewsArticle as NewsArticle, _NewsPlatform as NewsPlatform, _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, _PlatformUserPlaylistArtistAffinity as PlatformUserPlaylistArtistAffinity, _PlatformUserPlaylistGenreAffinity as PlatformUserPlaylistGenreAffinity, _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, _UserAbuseReports as UserAbuseReports, _UserAffinity as UserAffinity, _UserArtistAffinity as UserArtistAffinity, _UserBookmarks as UserBookmarks, _UserComments as UserComments, _UserContacts as UserContacts, _UserEngagementFactor as UserEngagementFactor, _UserGenreAffinity as UserGenreAffinity, _UserLikes as UserLikes, _UserMessages as UserMessages, _Versus as Versus, _VersusAccessType as VersusAccessType, _VersusCoCreator as VersusCoCreator, _VersusCreatorScope as VersusCreatorScope, _VersusEndMode as VersusEndMode, _VersusEndTimerDuration as VersusEndTimerDuration, _VersusEndVoteThreshold as VersusEndVoteThreshold, _VersusEntityKind as VersusEntityKind, _VersusOption as VersusOption, _VersusPublishIssue as VersusPublishIssue, _VersusQuestion as VersusQuestion, _VersusQuestionVariableType as VersusQuestionVariableType, _VersusVote as VersusVote, _VersusVotingListType as VersusVotingListType, _VersusVotingMode as VersusVotingMode, };
|
|
233
|
-
export type { AccessControlPreferenceAttributes, AccessControlPreferenceCreationAttributes, AffinityRelationshipTypeAttributes, AffinityRelationshipTypeCreationAttributes, AffinityTierAttributes, AffinityTierCreationAttributes, AppUserAttributes, AppUserCreationAttributes, AppUserDeviceAttributes, AppUserDeviceCreationAttributes, AppUserDeviceClassicBackup20260906Attributes, AppUserDeviceClassicBackup20260906CreationAttributes, AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes, AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes, CanonAlbumAttributes, CanonAlbumCreationAttributes, CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes, CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes, CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes, CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes, CanonArtistAttributes, CanonArtistCreationAttributes, CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes, CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes, CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes, 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, FeedConfigAttributes, FeedConfigCreationAttributes, FeedContentTypeAttributes, FeedContentTypeCreationAttributes, GuestUserAttributes, GuestUserCreationAttributes, JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes, JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes, JukeboxInviteAttributes, JukeboxInviteCreationAttributes, JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes, JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes, JukeboxSessionAttributes, JukeboxSessionCreationAttributes, JukeboxSessionArtistAffinityAttributes, JukeboxSessionArtistAffinityCreationAttributes, JukeboxSessionGenreAffinityAttributes, JukeboxSessionGenreAffinityCreationAttributes, JukeboxStatusAttributes, JukeboxStatusCreationAttributes, JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes, JukeboxTypeAttributes, JukeboxTypeCreationAttributes, JukeboxUserAttributes, JukeboxUserCreationAttributes, JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes, KnexMigrationsAttributes, KnexMigrationsCreationAttributes, KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes, MerchItemAttributes, MerchItemCreationAttributes, MerchOrchestrationAttributes, MerchOrchestrationCreationAttributes, MerchPlatformAttributes, MerchPlatformCreationAttributes, MerchTypeAttributes, MerchTypeCreationAttributes, MetricsDailyAttributes, MetricsDailyCreationAttributes, MetricsEventAttributes, MetricsEventCreationAttributes, NewsArticleAttributes, NewsArticleCreationAttributes, NewsPlatformAttributes, NewsPlatformCreationAttributes, 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, PlatformUserPlaylistArtistAffinityAttributes, PlatformUserPlaylistArtistAffinityCreationAttributes, PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityCreationAttributes, PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes, PlaybackStatusAttributes, PlaybackStatusCreationAttributes, PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes, RadioShowAttributes, RadioShowCreationAttributes, RadioShowGenresAttributes, RadioShowGenresCreationAttributes, RadioShowMediaAttributes, RadioShowMediaCreationAttributes, RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes, RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserAbuseReportsAttributes, UserAbuseReportsCreationAttributes, UserAffinityAttributes, UserAffinityCreationAttributes, UserArtistAffinityAttributes, UserArtistAffinityCreationAttributes, UserBookmarksAttributes, UserBookmarksCreationAttributes, UserCommentsAttributes, UserCommentsCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, UserEngagementFactorAttributes, UserEngagementFactorCreationAttributes, UserGenreAffinityAttributes, UserGenreAffinityCreationAttributes, UserLikesAttributes, UserLikesCreationAttributes, UserMessagesAttributes, UserMessagesCreationAttributes, VersusAttributes, VersusCreationAttributes, VersusAccessTypeAttributes, VersusAccessTypeCreationAttributes, VersusCoCreatorAttributes, VersusCoCreatorCreationAttributes, VersusCreatorScopeAttributes, VersusCreatorScopeCreationAttributes, VersusEndModeAttributes, VersusEndModeCreationAttributes, VersusEndTimerDurationAttributes, VersusEndTimerDurationCreationAttributes, VersusEndVoteThresholdAttributes, VersusEndVoteThresholdCreationAttributes, VersusEntityKindAttributes, VersusEntityKindCreationAttributes, VersusOptionAttributes, VersusOptionCreationAttributes, VersusPublishIssueAttributes, VersusPublishIssueCreationAttributes, VersusQuestionAttributes, VersusQuestionCreationAttributes, VersusQuestionVariableTypeAttributes, VersusQuestionVariableTypeCreationAttributes, VersusVoteAttributes, VersusVoteCreationAttributes, VersusVotingListTypeAttributes, VersusVotingListTypeCreationAttributes, VersusVotingModeAttributes, VersusVotingModeCreationAttributes, };
|
|
234
|
+
export { _AccessControlPreference as AccessControlPreference, _AffinityRelationshipType as AffinityRelationshipType, _AffinityTier as AffinityTier, _AppUser as AppUser, _AppUserDevice as AppUserDevice, _AppUserDeviceClassicBackup20260906 as AppUserDeviceClassicBackup20260906, _AppUserFollowRelation as AppUserFollowRelation, _AppUserPlatformRelation as AppUserPlatformRelation, _CanonAlbum as CanonAlbum, _CanonAlbumExternalReferenceRelation as CanonAlbumExternalReferenceRelation, _CanonAlbumGenreRelation as CanonAlbumGenreRelation, _CanonAlbumLabelRelation as CanonAlbumLabelRelation, _CanonAlbumTrackRelation as CanonAlbumTrackRelation, _CanonArtist as CanonArtist, _CanonArtistAlbumRelation as CanonArtistAlbumRelation, _CanonArtistExternalReferenceRelation as CanonArtistExternalReferenceRelation, _CanonArtistGenreRelation as CanonArtistGenreRelation, _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, _FeedConfig as FeedConfig, _FeedContentType as FeedContentType, _GuestUser as GuestUser, _JukeboxAccessType as JukeboxAccessType, _JukeboxCanonGenreRelation as JukeboxCanonGenreRelation, _JukeboxInvite as JukeboxInvite, _JukeboxQueueEntry as JukeboxQueueEntry, _JukeboxQueueMode as JukeboxQueueMode, _JukeboxSession as JukeboxSession, _JukeboxSessionArtistAffinity as JukeboxSessionArtistAffinity, _JukeboxSessionGenreAffinity as JukeboxSessionGenreAffinity, _JukeboxStatus as JukeboxStatus, _JukeboxTerminationCondition as JukeboxTerminationCondition, _JukeboxType as JukeboxType, _JukeboxUser as JukeboxUser, _JukeboxUserType as JukeboxUserType, _KnexMigrations as KnexMigrations, _KnexMigrationsLock as KnexMigrationsLock, _MerchItem as MerchItem, _MerchOrchestration as MerchOrchestration, _MerchPlatform as MerchPlatform, _MerchType as MerchType, _MetricsDaily as MetricsDaily, _MetricsEvent as MetricsEvent, _NewsArticle as NewsArticle, _NewsPlatform as NewsPlatform, _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, _PlatformUserPlaylistArtistAffinity as PlatformUserPlaylistArtistAffinity, _PlatformUserPlaylistGenreAffinity as PlatformUserPlaylistGenreAffinity, _PlatformUserPlaylistTrack as PlatformUserPlaylistTrack, _PlaybackStatus as PlaybackStatus, _PlaybackStatusType as PlaybackStatusType, _RadioShow as RadioShow, _RadioShowGenres as RadioShowGenres, _RadioShowMedia as RadioShowMedia, _RadioShowPlacement as RadioShowPlacement, _RadioShowPublishRequests as RadioShowPublishRequests, _RadioShowType as RadioShowType, _State as State, _TrackDeletionReason as TrackDeletionReason, _UnmatchedAlbum as UnmatchedAlbum, _UnmatchedArtist as UnmatchedArtist, _UserAbuseReports as UserAbuseReports, _UserAffinity as UserAffinity, _UserArtistAffinity as UserArtistAffinity, _UserBookmarks as UserBookmarks, _UserComments as UserComments, _UserContacts as UserContacts, _UserEngagementFactor as UserEngagementFactor, _UserGenreAffinity as UserGenreAffinity, _UserLikes as UserLikes, _UserMessages as UserMessages, _Versus as Versus, _VersusAccessType as VersusAccessType, _VersusCoCreator as VersusCoCreator, _VersusCreatorScope as VersusCreatorScope, _VersusEndMode as VersusEndMode, _VersusEndTimerDuration as VersusEndTimerDuration, _VersusEndVoteThreshold as VersusEndVoteThreshold, _VersusEntityKind as VersusEntityKind, _VersusOption as VersusOption, _VersusPublishIssue as VersusPublishIssue, _VersusQuestion as VersusQuestion, _VersusQuestionVariableType as VersusQuestionVariableType, _VersusVote as VersusVote, _VersusVotingListType as VersusVotingListType, _VersusVotingMode as VersusVotingMode, };
|
|
235
|
+
export type { AccessControlPreferenceAttributes, AccessControlPreferenceCreationAttributes, AffinityRelationshipTypeAttributes, AffinityRelationshipTypeCreationAttributes, AffinityTierAttributes, AffinityTierCreationAttributes, AppUserAttributes, AppUserCreationAttributes, AppUserDeviceAttributes, AppUserDeviceCreationAttributes, AppUserDeviceClassicBackup20260906Attributes, AppUserDeviceClassicBackup20260906CreationAttributes, AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes, AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes, CanonAlbumAttributes, CanonAlbumCreationAttributes, CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes, CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes, CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes, CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes, CanonArtistAttributes, CanonArtistCreationAttributes, CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes, CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes, CanonArtistGenreRelationAttributes, CanonArtistGenreRelationCreationAttributes, 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, FeedConfigAttributes, FeedConfigCreationAttributes, FeedContentTypeAttributes, FeedContentTypeCreationAttributes, GuestUserAttributes, GuestUserCreationAttributes, JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes, JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes, JukeboxInviteAttributes, JukeboxInviteCreationAttributes, JukeboxQueueEntryAttributes, JukeboxQueueEntryCreationAttributes, JukeboxQueueModeAttributes, JukeboxQueueModeCreationAttributes, JukeboxSessionAttributes, JukeboxSessionCreationAttributes, JukeboxSessionArtistAffinityAttributes, JukeboxSessionArtistAffinityCreationAttributes, JukeboxSessionGenreAffinityAttributes, JukeboxSessionGenreAffinityCreationAttributes, JukeboxStatusAttributes, JukeboxStatusCreationAttributes, JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes, JukeboxTypeAttributes, JukeboxTypeCreationAttributes, JukeboxUserAttributes, JukeboxUserCreationAttributes, JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes, KnexMigrationsAttributes, KnexMigrationsCreationAttributes, KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes, MerchItemAttributes, MerchItemCreationAttributes, MerchOrchestrationAttributes, MerchOrchestrationCreationAttributes, MerchPlatformAttributes, MerchPlatformCreationAttributes, MerchTypeAttributes, MerchTypeCreationAttributes, MetricsDailyAttributes, MetricsDailyCreationAttributes, MetricsEventAttributes, MetricsEventCreationAttributes, NewsArticleAttributes, NewsArticleCreationAttributes, NewsPlatformAttributes, NewsPlatformCreationAttributes, 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, PlatformUserPlaylistArtistAffinityAttributes, PlatformUserPlaylistArtistAffinityCreationAttributes, PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityCreationAttributes, PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes, PlaybackStatusAttributes, PlaybackStatusCreationAttributes, PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes, RadioShowAttributes, RadioShowCreationAttributes, RadioShowGenresAttributes, RadioShowGenresCreationAttributes, RadioShowMediaAttributes, RadioShowMediaCreationAttributes, RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes, RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes, RadioShowTypeAttributes, RadioShowTypeCreationAttributes, StateAttributes, StateCreationAttributes, TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes, UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes, UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes, UserAbuseReportsAttributes, UserAbuseReportsCreationAttributes, UserAffinityAttributes, UserAffinityCreationAttributes, UserArtistAffinityAttributes, UserArtistAffinityCreationAttributes, UserBookmarksAttributes, UserBookmarksCreationAttributes, UserCommentsAttributes, UserCommentsCreationAttributes, UserContactsAttributes, UserContactsCreationAttributes, UserEngagementFactorAttributes, UserEngagementFactorCreationAttributes, UserGenreAffinityAttributes, UserGenreAffinityCreationAttributes, UserLikesAttributes, UserLikesCreationAttributes, UserMessagesAttributes, UserMessagesCreationAttributes, VersusAttributes, VersusCreationAttributes, VersusAccessTypeAttributes, VersusAccessTypeCreationAttributes, VersusCoCreatorAttributes, VersusCoCreatorCreationAttributes, VersusCreatorScopeAttributes, VersusCreatorScopeCreationAttributes, VersusEndModeAttributes, VersusEndModeCreationAttributes, VersusEndTimerDurationAttributes, VersusEndTimerDurationCreationAttributes, VersusEndVoteThresholdAttributes, VersusEndVoteThresholdCreationAttributes, VersusEntityKindAttributes, VersusEntityKindCreationAttributes, VersusOptionAttributes, VersusOptionCreationAttributes, VersusPublishIssueAttributes, VersusPublishIssueCreationAttributes, VersusQuestionAttributes, VersusQuestionCreationAttributes, VersusQuestionVariableTypeAttributes, VersusQuestionVariableTypeCreationAttributes, VersusVoteAttributes, VersusVoteCreationAttributes, VersusVotingListTypeAttributes, VersusVotingListTypeCreationAttributes, VersusVotingModeAttributes, VersusVotingModeCreationAttributes, };
|
|
234
236
|
export declare function initModels(sequelize: Sequelize): {
|
|
235
237
|
AccessControlPreference: typeof _AccessControlPreference;
|
|
236
238
|
AffinityRelationshipType: typeof _AffinityRelationshipType;
|
|
@@ -318,6 +320,7 @@ export declare function initModels(sequelize: Sequelize): {
|
|
|
318
320
|
RadioShowMedia: typeof _RadioShowMedia;
|
|
319
321
|
RadioShowPlacement: typeof _RadioShowPlacement;
|
|
320
322
|
RadioShowPublishRequests: typeof _RadioShowPublishRequests;
|
|
323
|
+
RadioShowType: typeof _RadioShowType;
|
|
321
324
|
State: typeof _State;
|
|
322
325
|
TrackDeletionReason: typeof _TrackDeletionReason;
|
|
323
326
|
UnmatchedAlbum: typeof _UnmatchedAlbum;
|
package/dist/init-models.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KnexMigrationsLock = exports.KnexMigrations = exports.JukeboxUserType = exports.JukeboxUser = exports.JukeboxType = exports.JukeboxTerminationCondition = exports.JukeboxStatus = exports.JukeboxSessionGenreAffinity = exports.JukeboxSessionArtistAffinity = exports.JukeboxSession = exports.JukeboxQueueMode = exports.JukeboxQueueEntry = exports.JukeboxInvite = exports.JukeboxCanonGenreRelation = exports.JukeboxAccessType = exports.GuestUser = exports.FeedContentType = exports.FeedConfig = 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.CanonArtistGenreRelation = exports.CanonArtistExternalReferenceRelation = exports.CanonArtistAlbumRelation = exports.CanonArtist = exports.CanonAlbumTrackRelation = exports.CanonAlbumLabelRelation = exports.CanonAlbumGenreRelation = exports.CanonAlbumExternalReferenceRelation = exports.CanonAlbum = exports.AppUserPlatformRelation = exports.AppUserFollowRelation = exports.AppUserDeviceClassicBackup20260906 = exports.AppUserDevice = exports.AppUser = exports.AffinityTier = exports.AffinityRelationshipType = exports.AccessControlPreference = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.VersusVotingMode = exports.VersusVotingListType = exports.VersusVote = exports.VersusQuestionVariableType = exports.VersusQuestion = exports.VersusPublishIssue = exports.VersusOption = exports.VersusEntityKind = exports.VersusEndVoteThreshold = exports.VersusEndTimerDuration = exports.VersusEndMode = exports.VersusCreatorScope = exports.VersusCoCreator = exports.VersusAccessType = exports.Versus = void 0;
|
|
4
|
+
exports.UserLikes = exports.UserGenreAffinity = exports.UserEngagementFactor = exports.UserContacts = exports.UserComments = exports.UserBookmarks = exports.UserArtistAffinity = exports.UserAffinity = exports.UserAbuseReports = exports.UnmatchedArtist = exports.UnmatchedAlbum = exports.TrackDeletionReason = exports.State = exports.RadioShowType = exports.RadioShowPublishRequests = exports.RadioShowPlacement = exports.RadioShowMedia = exports.RadioShowGenres = exports.RadioShow = exports.PlaybackStatusType = exports.PlaybackStatus = exports.PlatformUserPlaylistTrack = exports.PlatformUserPlaylistGenreAffinity = exports.PlatformUserPlaylistArtistAffinity = 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 = exports.Platform = exports.PauseStatusType = exports.NotificationType = exports.Notification = exports.NewsSite = exports.NewsPlatform = exports.NewsArticle = exports.MetricsEvent = exports.MetricsDaily = exports.MerchType = exports.MerchPlatform = exports.MerchOrchestration = exports.MerchItem = void 0;
|
|
5
|
+
exports.VersusVotingMode = exports.VersusVotingListType = exports.VersusVote = exports.VersusQuestionVariableType = exports.VersusQuestion = exports.VersusPublishIssue = exports.VersusOption = exports.VersusEntityKind = exports.VersusEndVoteThreshold = exports.VersusEndTimerDuration = exports.VersusEndMode = exports.VersusCreatorScope = exports.VersusCoCreator = exports.VersusAccessType = exports.Versus = exports.UserMessages = void 0;
|
|
6
6
|
exports.initModels = initModels;
|
|
7
7
|
const AccessControlPreference_1 = require("./AccessControlPreference");
|
|
8
8
|
Object.defineProperty(exports, "AccessControlPreference", { enumerable: true, get: function () { return AccessControlPreference_1.AccessControlPreference; } });
|
|
@@ -176,6 +176,8 @@ const RadioShowPlacement_1 = require("./RadioShowPlacement");
|
|
|
176
176
|
Object.defineProperty(exports, "RadioShowPlacement", { enumerable: true, get: function () { return RadioShowPlacement_1.RadioShowPlacement; } });
|
|
177
177
|
const RadioShowPublishRequests_1 = require("./RadioShowPublishRequests");
|
|
178
178
|
Object.defineProperty(exports, "RadioShowPublishRequests", { enumerable: true, get: function () { return RadioShowPublishRequests_1.RadioShowPublishRequests; } });
|
|
179
|
+
const RadioShowType_1 = require("./RadioShowType");
|
|
180
|
+
Object.defineProperty(exports, "RadioShowType", { enumerable: true, get: function () { return RadioShowType_1.RadioShowType; } });
|
|
179
181
|
const State_1 = require("./State");
|
|
180
182
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return State_1.State; } });
|
|
181
183
|
const TrackDeletionReason_1 = require("./TrackDeletionReason");
|
|
@@ -321,6 +323,7 @@ function initModels(sequelize) {
|
|
|
321
323
|
const RadioShowMedia = RadioShowMedia_1.RadioShowMedia.initModel(sequelize);
|
|
322
324
|
const RadioShowPlacement = RadioShowPlacement_1.RadioShowPlacement.initModel(sequelize);
|
|
323
325
|
const RadioShowPublishRequests = RadioShowPublishRequests_1.RadioShowPublishRequests.initModel(sequelize);
|
|
326
|
+
const RadioShowType = RadioShowType_1.RadioShowType.initModel(sequelize);
|
|
324
327
|
const State = State_1.State.initModel(sequelize);
|
|
325
328
|
const TrackDeletionReason = TrackDeletionReason_1.TrackDeletionReason.initModel(sequelize);
|
|
326
329
|
const UnmatchedAlbum = UnmatchedAlbum_1.UnmatchedAlbum.initModel(sequelize);
|
|
@@ -742,6 +745,8 @@ function initModels(sequelize) {
|
|
|
742
745
|
RadioShow.hasMany(UserLikes, { as: "userLikes", foreignKey: "radioShowId" });
|
|
743
746
|
UserAbuseReports.belongsTo(RadioShowMedia, { as: "radioShowMedium", foreignKey: "radioShowMediaId" });
|
|
744
747
|
RadioShowMedia.hasMany(UserAbuseReports, { as: "userAbuseReports", foreignKey: "radioShowMediaId" });
|
|
748
|
+
RadioShow.belongsTo(RadioShowType, { as: "radioShowType", foreignKey: "radioShowTypeId" });
|
|
749
|
+
RadioShowType.hasMany(RadioShow, { as: "radioShows", foreignKey: "radioShowTypeId" });
|
|
745
750
|
AppUser.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
746
751
|
State.hasMany(AppUser, { as: "appUsers", foreignKey: "stateId" });
|
|
747
752
|
PlatformUserPlaylist.belongsTo(State, { as: "state", foreignKey: "stateId" });
|
|
@@ -877,6 +882,7 @@ function initModels(sequelize) {
|
|
|
877
882
|
RadioShowMedia: RadioShowMedia,
|
|
878
883
|
RadioShowPlacement: RadioShowPlacement,
|
|
879
884
|
RadioShowPublishRequests: RadioShowPublishRequests,
|
|
885
|
+
RadioShowType: RadioShowType,
|
|
880
886
|
State: State,
|
|
881
887
|
TrackDeletionReason: TrackDeletionReason,
|
|
882
888
|
UnmatchedAlbum: UnmatchedAlbum,
|
package/models/RadioShow.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { RadioShowGenres, RadioShowGenresId } from './RadioShowGenres';
|
|
|
5
5
|
import type { RadioShowMedia, RadioShowMediaId } from './RadioShowMedia';
|
|
6
6
|
import type { RadioShowPlacement, RadioShowPlacementId } from './RadioShowPlacement';
|
|
7
7
|
import type { RadioShowPublishRequests, RadioShowPublishRequestsId } from './RadioShowPublishRequests';
|
|
8
|
+
import type { RadioShowType, RadioShowTypeId } from './RadioShowType';
|
|
8
9
|
import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
|
|
9
10
|
import type { UserBookmarks, UserBookmarksId } from './UserBookmarks';
|
|
10
11
|
import type { UserComments, UserCommentsId } from './UserComments';
|
|
@@ -19,11 +20,12 @@ export interface RadioShowAttributes {
|
|
|
19
20
|
deleted?: boolean;
|
|
20
21
|
createDate: Date;
|
|
21
22
|
updateDate: Date;
|
|
23
|
+
radioShowTypeId: number;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export type RadioShowPk = "id";
|
|
25
27
|
export type RadioShowId = RadioShow[RadioShowPk];
|
|
26
|
-
export type RadioShowOptionalAttributes = "id" | "scheduledRelease" | "description" | "deleted" | "createDate" | "updateDate";
|
|
28
|
+
export type RadioShowOptionalAttributes = "id" | "scheduledRelease" | "description" | "deleted" | "createDate" | "updateDate" | "radioShowTypeId";
|
|
27
29
|
export type RadioShowCreationAttributes = Optional<RadioShowAttributes, RadioShowOptionalAttributes>;
|
|
28
30
|
|
|
29
31
|
export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttributes> implements RadioShowAttributes {
|
|
@@ -35,6 +37,7 @@ export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttri
|
|
|
35
37
|
deleted?: boolean;
|
|
36
38
|
createDate!: Date;
|
|
37
39
|
updateDate!: Date;
|
|
40
|
+
radioShowTypeId!: number;
|
|
38
41
|
|
|
39
42
|
// RadioShow belongsTo AppUser via creatorUserId
|
|
40
43
|
creatorUser!: AppUser;
|
|
@@ -137,6 +140,11 @@ export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttri
|
|
|
137
140
|
hasUserLike!: Sequelize.HasManyHasAssociationMixin<UserLikes, UserLikesId>;
|
|
138
141
|
hasUserLikes!: Sequelize.HasManyHasAssociationsMixin<UserLikes, UserLikesId>;
|
|
139
142
|
countUserLikes!: Sequelize.HasManyCountAssociationsMixin;
|
|
143
|
+
// RadioShow belongsTo RadioShowType via radioShowTypeId
|
|
144
|
+
radioShowType!: RadioShowType;
|
|
145
|
+
getRadioShowType!: Sequelize.BelongsToGetAssociationMixin<RadioShowType>;
|
|
146
|
+
setRadioShowType!: Sequelize.BelongsToSetAssociationMixin<RadioShowType, RadioShowTypeId>;
|
|
147
|
+
createRadioShowType!: Sequelize.BelongsToCreateAssociationMixin<RadioShowType>;
|
|
140
148
|
|
|
141
149
|
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShow {
|
|
142
150
|
return RadioShow.init({
|
|
@@ -183,6 +191,16 @@ export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttri
|
|
|
183
191
|
allowNull: false,
|
|
184
192
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
185
193
|
field: 'update_date'
|
|
194
|
+
},
|
|
195
|
+
radioShowTypeId: {
|
|
196
|
+
type: DataTypes.SMALLINT,
|
|
197
|
+
allowNull: false,
|
|
198
|
+
defaultValue: 1,
|
|
199
|
+
references: {
|
|
200
|
+
model: 'radio_show_type',
|
|
201
|
+
key: 'id'
|
|
202
|
+
},
|
|
203
|
+
field: 'radio_show_type_id'
|
|
186
204
|
}
|
|
187
205
|
}, {
|
|
188
206
|
sequelize,
|
|
@@ -196,6 +214,12 @@ export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttri
|
|
|
196
214
|
{ name: "creator_user_id" },
|
|
197
215
|
]
|
|
198
216
|
},
|
|
217
|
+
{
|
|
218
|
+
name: "idx_radio_show_type",
|
|
219
|
+
fields: [
|
|
220
|
+
{ name: "radio_show_type_id" },
|
|
221
|
+
]
|
|
222
|
+
},
|
|
199
223
|
{
|
|
200
224
|
name: "radio_show_pkey",
|
|
201
225
|
unique: true,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
+
|
|
5
|
+
export interface RadioShowTypeAttributes {
|
|
6
|
+
id: number;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type RadioShowTypePk = "id";
|
|
11
|
+
export type RadioShowTypeId = RadioShowType[RadioShowTypePk];
|
|
12
|
+
export type RadioShowTypeCreationAttributes = RadioShowTypeAttributes;
|
|
13
|
+
|
|
14
|
+
export class RadioShowType extends Model<RadioShowTypeAttributes, RadioShowTypeCreationAttributes> implements RadioShowTypeAttributes {
|
|
15
|
+
id!: number;
|
|
16
|
+
description!: string;
|
|
17
|
+
|
|
18
|
+
// RadioShowType hasMany RadioShow via radioShowTypeId
|
|
19
|
+
radioShows!: RadioShow[];
|
|
20
|
+
getRadioShows!: Sequelize.HasManyGetAssociationsMixin<RadioShow>;
|
|
21
|
+
setRadioShows!: Sequelize.HasManySetAssociationsMixin<RadioShow, RadioShowId>;
|
|
22
|
+
addRadioShow!: Sequelize.HasManyAddAssociationMixin<RadioShow, RadioShowId>;
|
|
23
|
+
addRadioShows!: Sequelize.HasManyAddAssociationsMixin<RadioShow, RadioShowId>;
|
|
24
|
+
createRadioShow!: Sequelize.HasManyCreateAssociationMixin<RadioShow>;
|
|
25
|
+
removeRadioShow!: Sequelize.HasManyRemoveAssociationMixin<RadioShow, RadioShowId>;
|
|
26
|
+
removeRadioShows!: Sequelize.HasManyRemoveAssociationsMixin<RadioShow, RadioShowId>;
|
|
27
|
+
hasRadioShow!: Sequelize.HasManyHasAssociationMixin<RadioShow, RadioShowId>;
|
|
28
|
+
hasRadioShows!: Sequelize.HasManyHasAssociationsMixin<RadioShow, RadioShowId>;
|
|
29
|
+
countRadioShows!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
+
|
|
31
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowType {
|
|
32
|
+
return RadioShowType.init({
|
|
33
|
+
id: {
|
|
34
|
+
type: DataTypes.SMALLINT,
|
|
35
|
+
allowNull: false,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
type: DataTypes.STRING(64),
|
|
40
|
+
allowNull: false,
|
|
41
|
+
unique: "radio_show_type_description_key"
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
sequelize,
|
|
45
|
+
tableName: 'radio_show_type',
|
|
46
|
+
schema: 'eb',
|
|
47
|
+
timestamps: false,
|
|
48
|
+
indexes: [
|
|
49
|
+
{
|
|
50
|
+
name: "radio_show_type_description_key",
|
|
51
|
+
unique: true,
|
|
52
|
+
fields: [
|
|
53
|
+
{ name: "description" },
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "radio_show_type_pkey",
|
|
58
|
+
unique: true,
|
|
59
|
+
fields: [
|
|
60
|
+
{ name: "id" },
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
package/models/init-models.ts
CHANGED
|
@@ -171,6 +171,8 @@ import { RadioShowPlacement as _RadioShowPlacement } from "./RadioShowPlacement"
|
|
|
171
171
|
import type { RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes } from "./RadioShowPlacement";
|
|
172
172
|
import { RadioShowPublishRequests as _RadioShowPublishRequests } from "./RadioShowPublishRequests";
|
|
173
173
|
import type { RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes } from "./RadioShowPublishRequests";
|
|
174
|
+
import { RadioShowType as _RadioShowType } from "./RadioShowType";
|
|
175
|
+
import type { RadioShowTypeAttributes, RadioShowTypeCreationAttributes } from "./RadioShowType";
|
|
174
176
|
import { State as _State } from "./State";
|
|
175
177
|
import type { StateAttributes, StateCreationAttributes } from "./State";
|
|
176
178
|
import { TrackDeletionReason as _TrackDeletionReason } from "./TrackDeletionReason";
|
|
@@ -317,6 +319,7 @@ export {
|
|
|
317
319
|
_RadioShowMedia as RadioShowMedia,
|
|
318
320
|
_RadioShowPlacement as RadioShowPlacement,
|
|
319
321
|
_RadioShowPublishRequests as RadioShowPublishRequests,
|
|
322
|
+
_RadioShowType as RadioShowType,
|
|
320
323
|
_State as State,
|
|
321
324
|
_TrackDeletionReason as TrackDeletionReason,
|
|
322
325
|
_UnmatchedAlbum as UnmatchedAlbum,
|
|
@@ -521,6 +524,8 @@ export type {
|
|
|
521
524
|
RadioShowPlacementCreationAttributes,
|
|
522
525
|
RadioShowPublishRequestsAttributes,
|
|
523
526
|
RadioShowPublishRequestsCreationAttributes,
|
|
527
|
+
RadioShowTypeAttributes,
|
|
528
|
+
RadioShowTypeCreationAttributes,
|
|
524
529
|
StateAttributes,
|
|
525
530
|
StateCreationAttributes,
|
|
526
531
|
TrackDeletionReasonAttributes,
|
|
@@ -668,6 +673,7 @@ export function initModels(sequelize: Sequelize) {
|
|
|
668
673
|
const RadioShowMedia = _RadioShowMedia.initModel(sequelize);
|
|
669
674
|
const RadioShowPlacement = _RadioShowPlacement.initModel(sequelize);
|
|
670
675
|
const RadioShowPublishRequests = _RadioShowPublishRequests.initModel(sequelize);
|
|
676
|
+
const RadioShowType = _RadioShowType.initModel(sequelize);
|
|
671
677
|
const State = _State.initModel(sequelize);
|
|
672
678
|
const TrackDeletionReason = _TrackDeletionReason.initModel(sequelize);
|
|
673
679
|
const UnmatchedAlbum = _UnmatchedAlbum.initModel(sequelize);
|
|
@@ -1090,6 +1096,8 @@ export function initModels(sequelize: Sequelize) {
|
|
|
1090
1096
|
RadioShow.hasMany(UserLikes, { as: "userLikes", foreignKey: "radioShowId"});
|
|
1091
1097
|
UserAbuseReports.belongsTo(RadioShowMedia, { as: "radioShowMedium", foreignKey: "radioShowMediaId"});
|
|
1092
1098
|
RadioShowMedia.hasMany(UserAbuseReports, { as: "userAbuseReports", foreignKey: "radioShowMediaId"});
|
|
1099
|
+
RadioShow.belongsTo(RadioShowType, { as: "radioShowType", foreignKey: "radioShowTypeId"});
|
|
1100
|
+
RadioShowType.hasMany(RadioShow, { as: "radioShows", foreignKey: "radioShowTypeId"});
|
|
1093
1101
|
AppUser.belongsTo(State, { as: "state", foreignKey: "stateId"});
|
|
1094
1102
|
State.hasMany(AppUser, { as: "appUsers", foreignKey: "stateId"});
|
|
1095
1103
|
PlatformUserPlaylist.belongsTo(State, { as: "state", foreignKey: "stateId"});
|
|
@@ -1226,6 +1234,7 @@ export function initModels(sequelize: Sequelize) {
|
|
|
1226
1234
|
RadioShowMedia: RadioShowMedia,
|
|
1227
1235
|
RadioShowPlacement: RadioShowPlacement,
|
|
1228
1236
|
RadioShowPublishRequests: RadioShowPublishRequests,
|
|
1237
|
+
RadioShowType: RadioShowType,
|
|
1229
1238
|
State: State,
|
|
1230
1239
|
TrackDeletionReason: TrackDeletionReason,
|
|
1231
1240
|
UnmatchedAlbum: UnmatchedAlbum,
|