@earbug/db-models 0.0.60 → 0.0.62
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/AffinityRelationshipType.d.ts +2 -2
- package/dist/AffinityRelationshipType.js +6 -6
- package/dist/AppUser.d.ts +5 -5
- package/dist/AppUser.js +7 -7
- package/dist/AppUserDevice.d.ts +2 -2
- package/dist/AppUserDevice.js +6 -6
- package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
- package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
- package/dist/AppUserFollowRelation.d.ts +3 -3
- package/dist/AppUserFollowRelation.js +6 -6
- package/dist/AppUserPlatformRelation.d.ts +13 -13
- package/dist/AppUserPlatformRelation.js +25 -25
- package/dist/CanonAlbum.d.ts +5 -5
- package/dist/CanonAlbum.js +10 -10
- package/dist/CanonArtist.d.ts +5 -5
- package/dist/CanonArtist.js +11 -11
- package/dist/CanonGenre.d.ts +3 -3
- package/dist/CanonGenre.js +6 -6
- package/dist/CanonLabel.d.ts +2 -2
- package/dist/CanonLabel.js +6 -6
- package/dist/CanonMember.d.ts +3 -3
- package/dist/CanonMember.js +6 -6
- package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
- package/dist/CanonMemberExternalReferenceRelation.js +5 -5
- package/dist/CanonTrack.d.ts +5 -5
- package/dist/CanonTrack.js +11 -11
- package/dist/ConfigParam.d.ts +2 -2
- package/dist/ConfigParam.js +5 -5
- package/dist/ExternalReference.d.ts +2 -2
- package/dist/ExternalReference.js +5 -5
- package/dist/FeedContentType.d.ts +2 -2
- package/dist/FeedContentType.js +4 -4
- package/dist/GuestUser.d.ts +5 -5
- package/dist/GuestUser.js +13 -13
- package/dist/JukeboxAccessType.d.ts +2 -2
- package/dist/JukeboxAccessType.js +4 -4
- package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
- package/dist/JukeboxCanonGenreRelation.js +6 -6
- package/dist/JukeboxInvite.d.ts +3 -3
- package/dist/JukeboxInvite.js +6 -6
- package/dist/JukeboxQueueEntry.d.ts +9 -9
- package/dist/JukeboxQueueEntry.js +25 -25
- package/dist/JukeboxQueueMode.d.ts +2 -2
- package/dist/JukeboxQueueMode.js +4 -4
- package/dist/JukeboxSession.d.ts +9 -9
- package/dist/JukeboxSession.js +20 -20
- package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
- package/dist/JukeboxSessionArtistAffinity.js +6 -6
- package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
- package/dist/JukeboxSessionGenreAffinity.js +6 -6
- package/dist/JukeboxTerminationCondition.d.ts +2 -2
- package/dist/JukeboxTerminationCondition.js +4 -4
- package/dist/JukeboxType.d.ts +2 -2
- package/dist/JukeboxType.js +4 -4
- package/dist/JukeboxUser.d.ts +7 -7
- package/dist/JukeboxUser.js +20 -20
- package/dist/KnexMigrations.d.ts +3 -3
- package/dist/KnexMigrations.js +6 -6
- package/dist/KnexMigrationsLock.d.ts +3 -3
- package/dist/KnexMigrationsLock.js +5 -5
- package/dist/MerchItem.d.ts +3 -3
- package/dist/MerchItem.js +6 -6
- package/dist/MerchOrchestration.d.ts +3 -3
- package/dist/MerchOrchestration.js +6 -6
- package/dist/MerchPlatform.d.ts +2 -2
- package/dist/MerchPlatform.js +6 -6
- package/dist/MerchType.d.ts +2 -2
- package/dist/MerchType.js +4 -4
- package/dist/MetricsDaily.d.ts +3 -3
- package/dist/MetricsDaily.js +4 -4
- package/dist/NewsSite.d.ts +3 -3
- package/dist/NewsSite.js +6 -6
- package/dist/Notification.d.ts +13 -13
- package/dist/Notification.js +33 -33
- package/dist/Platform.d.ts +2 -2
- package/dist/Platform.js +7 -7
- package/dist/PlatformAlbum.d.ts +5 -5
- package/dist/PlatformAlbum.js +10 -10
- package/dist/PlatformArtist.d.ts +5 -5
- package/dist/PlatformArtist.js +10 -10
- package/dist/PlatformGenre.d.ts +2 -2
- package/dist/PlatformGenre.js +6 -6
- package/dist/PlatformTrack.d.ts +3 -3
- package/dist/PlatformTrack.js +6 -6
- package/dist/PlatformUserAlbum.d.ts +2 -2
- package/dist/PlatformUserAlbum.js +6 -6
- package/dist/PlatformUserAlbumTrack.d.ts +4 -4
- package/dist/PlatformUserAlbumTrack.js +11 -11
- package/dist/PlatformUserPlaylist.d.ts +5 -5
- package/dist/PlatformUserPlaylist.js +11 -11
- package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
- package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
- package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
- package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
- package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
- package/dist/PlatformUserPlaylistTrack.js +17 -17
- package/dist/PlaybackStatus.d.ts +2 -2
- package/dist/PlaybackStatus.js +4 -4
- package/dist/RadioShow.d.ts +3 -3
- package/dist/RadioShow.js +6 -6
- package/dist/RadioShowMedia.d.ts +3 -3
- package/dist/RadioShowMedia.js +6 -6
- package/dist/RadioShowPlacement.d.ts +3 -3
- package/dist/RadioShowPlacement.js +6 -6
- package/dist/RadioShowPublishRequests.d.ts +3 -3
- package/dist/RadioShowPublishRequests.js +6 -6
- package/dist/State.d.ts +2 -2
- package/dist/State.js +4 -4
- package/dist/UnmatchedAlbum.d.ts +2 -2
- package/dist/UnmatchedAlbum.js +6 -6
- package/dist/UnmatchedArtist.d.ts +2 -2
- package/dist/UnmatchedArtist.js +6 -6
- package/dist/UserAbuseReports.d.ts +7 -7
- package/dist/UserAbuseReports.js +18 -18
- package/dist/UserAffinity.d.ts +2 -2
- package/dist/UserAffinity.js +6 -6
- package/dist/UserArtistAffinity.d.ts +2 -2
- package/dist/UserArtistAffinity.js +6 -6
- package/dist/UserBookmarks.d.ts +3 -3
- package/dist/UserBookmarks.js +6 -6
- package/dist/UserComments.d.ts +5 -5
- package/dist/UserComments.js +12 -12
- package/dist/UserContacts.d.ts +3 -3
- package/dist/UserContacts.js +7 -7
- package/dist/UserEngagementFactor.d.ts +2 -2
- package/dist/UserEngagementFactor.js +6 -6
- package/dist/UserGenreAffinity.d.ts +2 -2
- package/dist/UserGenreAffinity.js +6 -6
- package/dist/UserLikes.d.ts +3 -3
- package/dist/UserLikes.js +6 -6
- package/dist/UserMessages.d.ts +5 -5
- package/dist/UserMessages.js +15 -15
- package/dist/Versus.d.ts +5 -5
- package/dist/Versus.js +11 -11
- package/dist/VersusCoCreator.d.ts +4 -4
- package/dist/VersusCoCreator.js +12 -12
- package/dist/VersusOption.d.ts +3 -3
- package/dist/VersusOption.js +6 -6
- package/dist/VersusPublishIssue.d.ts +3 -3
- package/dist/VersusPublishIssue.js +6 -6
- package/dist/VersusQuestion.d.ts +2 -2
- package/dist/VersusQuestion.js +6 -6
- package/dist/VersusVote.d.ts +2 -2
- package/dist/VersusVote.js +6 -6
- package/dist/init-models.d.ts +349 -3
- package/dist/init-models.js +905 -1
- package/package.json +5 -2
- package/.github/workflows/publish.yaml +0 -56
- package/.nvmrc +0 -1
- package/dist/CanonAlbumImageHarvested.d.ts +0 -30
- package/dist/CanonAlbumImageHarvested.js +0 -70
- package/dist/CanonArtistImageHarvested.d.ts +0 -30
- package/dist/CanonArtistImageHarvested.js +0 -70
- package/model_options.json +0 -3
- package/models/AccessControlPreference.ts +0 -53
- package/models/AffinityRelationshipType.ts +0 -96
- package/models/AffinityTier.ts +0 -131
- package/models/AppUser.ts +0 -577
- package/models/AppUserDevice.ts +0 -101
- package/models/AppUserFollowRelation.ts +0 -128
- package/models/AppUserPlatformRelation.ts +0 -150
- package/models/CanonAlbum.ts +0 -229
- package/models/CanonAlbumExternalReferenceRelation.ts +0 -92
- package/models/CanonAlbumGenreRelation.ts +0 -86
- package/models/CanonAlbumImageHarvested.ts +0 -98
- package/models/CanonAlbumLabelRelation.ts +0 -86
- package/models/CanonAlbumTrackRelation.ts +0 -92
- package/models/CanonArtist.ts +0 -356
- package/models/CanonArtistAlbumRelation.ts +0 -92
- package/models/CanonArtistExternalReferenceRelation.ts +0 -92
- package/models/CanonArtistGenreRelation.ts +0 -86
- package/models/CanonArtistImageHarvested.ts +0 -98
- package/models/CanonArtistMemberRelation.ts +0 -86
- package/models/CanonArtistTrackRelation.ts +0 -92
- package/models/CanonGenre.ts +0 -273
- package/models/CanonGenreExternalReferenceRelation.ts +0 -92
- package/models/CanonLabel.ts +0 -129
- package/models/CanonLabelExternalReferenceRelation.ts +0 -92
- package/models/CanonMember.ts +0 -130
- package/models/CanonMemberExternalReferenceRelation.ts +0 -99
- package/models/CanonToPlatformAlbumRelation.ts +0 -92
- package/models/CanonToPlatformArtistRelation.ts +0 -92
- package/models/CanonToPlatformGenreRelation.ts +0 -86
- package/models/CanonToPlatformTrackRelation.ts +0 -92
- package/models/CanonTrack.ts +0 -232
- package/models/ConfigParam.ts +0 -62
- package/models/ExternalReference.ts +0 -201
- package/models/FeedConfig.ts +0 -65
- package/models/FeedContentType.ts +0 -124
- package/models/GuestUser.ts +0 -137
- package/models/JukeboxAccessType.ts +0 -60
- package/models/JukeboxCanonGenreRelation.ts +0 -108
- package/models/JukeboxInvite.ts +0 -125
- package/models/JukeboxQueueEntry.ts +0 -247
- package/models/JukeboxQueueMode.ts +0 -60
- package/models/JukeboxSession.ts +0 -334
- package/models/JukeboxSessionArtistAffinity.ts +0 -136
- package/models/JukeboxSessionGenreAffinity.ts +0 -136
- package/models/JukeboxStatus.ts +0 -58
- package/models/JukeboxTerminationCondition.ts +0 -60
- package/models/JukeboxType.ts +0 -60
- package/models/JukeboxUser.ts +0 -182
- package/models/JukeboxUserType.ts +0 -58
- package/models/KnexMigrations.ts +0 -60
- package/models/KnexMigrationsLock.ts +0 -48
- package/models/MerchItem.ts +0 -198
- package/models/MerchOrchestration.ts +0 -130
- package/models/MerchPlatform.ts +0 -95
- package/models/MerchType.ts +0 -89
- package/models/MetricsDaily.ts +0 -79
- package/models/MetricsEvent.ts +0 -124
- package/models/NewsArticle.ts +0 -177
- package/models/NewsPlatform.ts +0 -76
- package/models/NewsSite.ts +0 -75
- package/models/Notification.ts +0 -214
- package/models/NotificationType.ts +0 -66
- package/models/PauseStatusType.ts +0 -58
- package/models/Platform.ts +0 -189
- package/models/PlatformAlbum.ts +0 -398
- package/models/PlatformAlbumGenreRelation.ts +0 -86
- package/models/PlatformAlbumTrackRelation.ts +0 -92
- package/models/PlatformArtist.ts +0 -358
- package/models/PlatformArtistAlbumRelation.ts +0 -92
- package/models/PlatformArtistGenreRelation.ts +0 -86
- package/models/PlatformArtistTrackRelation.ts +0 -92
- package/models/PlatformGenre.ts +0 -194
- package/models/PlatformTrack.ts +0 -339
- package/models/PlatformTrackGenreRelation.ts +0 -86
- package/models/PlatformUserAlbum.ts +0 -152
- package/models/PlatformUserAlbumTrack.ts +0 -138
- package/models/PlatformUserPlaylist.ts +0 -260
- package/models/PlatformUserPlaylistArtistAffinity.ts +0 -136
- package/models/PlatformUserPlaylistGenreAffinity.ts +0 -136
- package/models/PlatformUserPlaylistTrack.ts +0 -162
- package/models/PlaybackStatus.ts +0 -47
- package/models/PlaybackStatusType.ts +0 -58
- package/models/RadioShow.ts +0 -209
- package/models/RadioShowGenres.ts +0 -107
- package/models/RadioShowMedia.ts +0 -181
- package/models/RadioShowPlacement.ts +0 -115
- package/models/RadioShowPublishRequests.ts +0 -86
- package/models/State.ts +0 -86
- package/models/TrackDeletionReason.ts +0 -58
- package/models/UnmatchedAlbum.ts +0 -66
- package/models/UnmatchedArtist.ts +0 -81
- package/models/UserAbuseReports.ts +0 -232
- package/models/UserAffinity.ts +0 -117
- package/models/UserArtistAffinity.ts +0 -136
- package/models/UserBookmarks.ts +0 -235
- package/models/UserComments.ts +0 -271
- package/models/UserContacts.ts +0 -155
- package/models/UserEngagementFactor.ts +0 -109
- package/models/UserGenreAffinity.ts +0 -136
- package/models/UserLikes.ts +0 -235
- package/models/UserMessages.ts +0 -189
- package/models/Versus.ts +0 -438
- package/models/VersusAccessType.ts +0 -66
- package/models/VersusCoCreator.ts +0 -111
- package/models/VersusCreatorScope.ts +0 -66
- package/models/VersusEndMode.ts +0 -66
- package/models/VersusEndTimerDuration.ts +0 -81
- package/models/VersusEndVoteThreshold.ts +0 -67
- package/models/VersusEntityKind.ts +0 -79
- package/models/VersusOption.ts +0 -258
- package/models/VersusPublishIssue.ts +0 -146
- package/models/VersusQuestion.ts +0 -123
- package/models/VersusQuestionVariableType.ts +0 -66
- package/models/VersusVote.ts +0 -99
- package/models/VersusVotingListType.ts +0 -66
- package/models/VersusVotingMode.ts +0 -66
- package/models/index.ts +0 -3
- package/models/init-models.ts +0 -14
- package/models/initDb.ts +0 -72
- package/models/rdsCaBundle.ts +0 -5
- package/scripts/update-rds-ca-bundle.mjs +0 -44
- package/tsconfig.json +0 -52
|
@@ -1,107 +0,0 @@
|
|
|
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
|
-
seqNum?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type RadioShowGenresPk = "id";
|
|
15
|
-
export type RadioShowGenresId = RadioShowGenres[RadioShowGenresPk];
|
|
16
|
-
export type RadioShowGenresOptionalAttributes = "id" | "seqNum";
|
|
17
|
-
export type RadioShowGenresCreationAttributes = Optional<RadioShowGenresAttributes, RadioShowGenresOptionalAttributes>;
|
|
18
|
-
|
|
19
|
-
export class RadioShowGenres extends Model<RadioShowGenresAttributes, RadioShowGenresCreationAttributes> implements RadioShowGenresAttributes {
|
|
20
|
-
canonGenreId!: string;
|
|
21
|
-
radioShowId!: string;
|
|
22
|
-
title!: string;
|
|
23
|
-
id!: string;
|
|
24
|
-
seqNum?: number;
|
|
25
|
-
|
|
26
|
-
// RadioShowGenres belongsTo CanonGenre via canonGenreId
|
|
27
|
-
canonGenre!: CanonGenre;
|
|
28
|
-
getCanonGenre!: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
29
|
-
setCanonGenre!: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
30
|
-
createCanonGenre!: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
31
|
-
// RadioShowGenres belongsTo RadioShow via radioShowId
|
|
32
|
-
radioShow!: RadioShow;
|
|
33
|
-
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
34
|
-
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
35
|
-
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
36
|
-
|
|
37
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowGenres {
|
|
38
|
-
return RadioShowGenres.init({
|
|
39
|
-
canonGenreId: {
|
|
40
|
-
type: DataTypes.UUID,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
references: {
|
|
43
|
-
model: 'canon_genre',
|
|
44
|
-
key: 'id'
|
|
45
|
-
},
|
|
46
|
-
unique: "uq_radio_show_genre_unique",
|
|
47
|
-
field: 'canon_genre_id'
|
|
48
|
-
},
|
|
49
|
-
radioShowId: {
|
|
50
|
-
type: DataTypes.UUID,
|
|
51
|
-
allowNull: false,
|
|
52
|
-
references: {
|
|
53
|
-
model: 'radio_show',
|
|
54
|
-
key: 'id'
|
|
55
|
-
},
|
|
56
|
-
unique: "uq_radio_show_genre_unique",
|
|
57
|
-
field: 'radio_show_id'
|
|
58
|
-
},
|
|
59
|
-
title: {
|
|
60
|
-
type: DataTypes.STRING(40),
|
|
61
|
-
allowNull: false
|
|
62
|
-
},
|
|
63
|
-
id: {
|
|
64
|
-
type: DataTypes.UUID,
|
|
65
|
-
allowNull: false,
|
|
66
|
-
defaultValue: DataTypes.UUIDV4,
|
|
67
|
-
primaryKey: true
|
|
68
|
-
},
|
|
69
|
-
seqNum: {
|
|
70
|
-
type: DataTypes.SMALLINT,
|
|
71
|
-
allowNull: true,
|
|
72
|
-
unique: "uq_radio_show_genre_seq_unique",
|
|
73
|
-
field: 'seq_num'
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
sequelize,
|
|
77
|
-
tableName: 'radio_show_genres',
|
|
78
|
-
schema: 'eb',
|
|
79
|
-
timestamps: false,
|
|
80
|
-
indexes: [
|
|
81
|
-
{
|
|
82
|
-
name: "radio_show_genres_pkey",
|
|
83
|
-
unique: true,
|
|
84
|
-
fields: [
|
|
85
|
-
{ name: "id" },
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: "uq_radio_show_genre_seq_unique",
|
|
90
|
-
unique: true,
|
|
91
|
-
fields: [
|
|
92
|
-
{ name: "radio_show_id" },
|
|
93
|
-
{ name: "seq_num" },
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: "uq_radio_show_genre_unique",
|
|
98
|
-
unique: true,
|
|
99
|
-
fields: [
|
|
100
|
-
{ name: "radio_show_id" },
|
|
101
|
-
{ name: "canon_genre_id" },
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
]
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
package/models/RadioShowMedia.ts
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
-
import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
|
|
5
|
-
|
|
6
|
-
export interface RadioShowMediaAttributes {
|
|
7
|
-
radioShowId: string;
|
|
8
|
-
originalMediaType?: number;
|
|
9
|
-
s3VideoUrl?: string;
|
|
10
|
-
s3AudioUrl: string;
|
|
11
|
-
id: string;
|
|
12
|
-
createDate: Date;
|
|
13
|
-
description?: string;
|
|
14
|
-
cropInstructions?: string;
|
|
15
|
-
deleted?: boolean;
|
|
16
|
-
sourceS3Key?: string;
|
|
17
|
-
isAppRecorded?: boolean;
|
|
18
|
-
automatedModerationApproved?: boolean;
|
|
19
|
-
automatedModerationRejectionMetadata?: object;
|
|
20
|
-
automatedModerationDecidedAt?: Date;
|
|
21
|
-
manualModerationApproved?: boolean;
|
|
22
|
-
manualModerationDecidedAt?: Date;
|
|
23
|
-
manualModerationBy?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type RadioShowMediaPk = "id";
|
|
27
|
-
export type RadioShowMediaId = RadioShowMedia[RadioShowMediaPk];
|
|
28
|
-
export type RadioShowMediaOptionalAttributes = "originalMediaType" | "s3VideoUrl" | "id" | "createDate" | "description" | "cropInstructions" | "deleted" | "sourceS3Key" | "isAppRecorded" | "automatedModerationApproved" | "automatedModerationRejectionMetadata" | "automatedModerationDecidedAt" | "manualModerationApproved" | "manualModerationDecidedAt" | "manualModerationBy";
|
|
29
|
-
export type RadioShowMediaCreationAttributes = Optional<RadioShowMediaAttributes, RadioShowMediaOptionalAttributes>;
|
|
30
|
-
|
|
31
|
-
export class RadioShowMedia extends Model<RadioShowMediaAttributes, RadioShowMediaCreationAttributes> implements RadioShowMediaAttributes {
|
|
32
|
-
radioShowId!: string;
|
|
33
|
-
originalMediaType?: number;
|
|
34
|
-
s3VideoUrl?: string;
|
|
35
|
-
s3AudioUrl!: string;
|
|
36
|
-
id!: string;
|
|
37
|
-
createDate!: Date;
|
|
38
|
-
description?: string;
|
|
39
|
-
cropInstructions?: string;
|
|
40
|
-
deleted?: boolean;
|
|
41
|
-
sourceS3Key?: string;
|
|
42
|
-
isAppRecorded?: boolean;
|
|
43
|
-
automatedModerationApproved?: boolean;
|
|
44
|
-
automatedModerationRejectionMetadata?: object;
|
|
45
|
-
automatedModerationDecidedAt?: Date;
|
|
46
|
-
manualModerationApproved?: boolean;
|
|
47
|
-
manualModerationDecidedAt?: Date;
|
|
48
|
-
manualModerationBy?: string;
|
|
49
|
-
|
|
50
|
-
// RadioShowMedia belongsTo RadioShow via radioShowId
|
|
51
|
-
radioShow!: RadioShow;
|
|
52
|
-
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
53
|
-
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
54
|
-
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
55
|
-
// RadioShowMedia hasMany UserAbuseReports via radioShowMediaId
|
|
56
|
-
userAbuseReports!: UserAbuseReports[];
|
|
57
|
-
getUserAbuseReports!: Sequelize.HasManyGetAssociationsMixin<UserAbuseReports>;
|
|
58
|
-
setUserAbuseReports!: Sequelize.HasManySetAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
59
|
-
addUserAbuseReport!: Sequelize.HasManyAddAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
60
|
-
addUserAbuseReports!: Sequelize.HasManyAddAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
61
|
-
createUserAbuseReport!: Sequelize.HasManyCreateAssociationMixin<UserAbuseReports>;
|
|
62
|
-
removeUserAbuseReport!: Sequelize.HasManyRemoveAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
63
|
-
removeUserAbuseReports!: Sequelize.HasManyRemoveAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
64
|
-
hasUserAbuseReport!: Sequelize.HasManyHasAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
65
|
-
hasUserAbuseReports!: Sequelize.HasManyHasAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
66
|
-
countUserAbuseReports!: Sequelize.HasManyCountAssociationsMixin;
|
|
67
|
-
|
|
68
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowMedia {
|
|
69
|
-
return RadioShowMedia.init({
|
|
70
|
-
radioShowId: {
|
|
71
|
-
type: DataTypes.UUID,
|
|
72
|
-
allowNull: false,
|
|
73
|
-
references: {
|
|
74
|
-
model: 'radio_show',
|
|
75
|
-
key: 'id'
|
|
76
|
-
},
|
|
77
|
-
field: 'radio_show_id'
|
|
78
|
-
},
|
|
79
|
-
originalMediaType: {
|
|
80
|
-
type: DataTypes.INTEGER,
|
|
81
|
-
allowNull: true,
|
|
82
|
-
field: 'original_media_type'
|
|
83
|
-
},
|
|
84
|
-
s3VideoUrl: {
|
|
85
|
-
type: DataTypes.TEXT,
|
|
86
|
-
allowNull: true,
|
|
87
|
-
field: 's3_video_url'
|
|
88
|
-
},
|
|
89
|
-
s3AudioUrl: {
|
|
90
|
-
type: DataTypes.TEXT,
|
|
91
|
-
allowNull: false,
|
|
92
|
-
field: 's3_audio_url'
|
|
93
|
-
},
|
|
94
|
-
id: {
|
|
95
|
-
type: DataTypes.UUID,
|
|
96
|
-
allowNull: false,
|
|
97
|
-
defaultValue: DataTypes.UUIDV4,
|
|
98
|
-
primaryKey: true
|
|
99
|
-
},
|
|
100
|
-
createDate: {
|
|
101
|
-
type: DataTypes.DATE,
|
|
102
|
-
allowNull: false,
|
|
103
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
104
|
-
field: 'create_date'
|
|
105
|
-
},
|
|
106
|
-
description: {
|
|
107
|
-
type: DataTypes.TEXT,
|
|
108
|
-
allowNull: true
|
|
109
|
-
},
|
|
110
|
-
cropInstructions: {
|
|
111
|
-
type: DataTypes.TEXT,
|
|
112
|
-
allowNull: true,
|
|
113
|
-
field: 'crop_instructions'
|
|
114
|
-
},
|
|
115
|
-
deleted: {
|
|
116
|
-
type: DataTypes.BOOLEAN,
|
|
117
|
-
allowNull: true
|
|
118
|
-
},
|
|
119
|
-
sourceS3Key: {
|
|
120
|
-
type: DataTypes.TEXT,
|
|
121
|
-
allowNull: true,
|
|
122
|
-
field: 'source_s3_key'
|
|
123
|
-
},
|
|
124
|
-
isAppRecorded: {
|
|
125
|
-
type: DataTypes.BOOLEAN,
|
|
126
|
-
allowNull: true,
|
|
127
|
-
field: 'is_app_recorded'
|
|
128
|
-
},
|
|
129
|
-
automatedModerationApproved: {
|
|
130
|
-
type: DataTypes.BOOLEAN,
|
|
131
|
-
allowNull: true,
|
|
132
|
-
field: 'automated_moderation_approved'
|
|
133
|
-
},
|
|
134
|
-
automatedModerationRejectionMetadata: {
|
|
135
|
-
type: DataTypes.JSONB,
|
|
136
|
-
allowNull: true,
|
|
137
|
-
field: 'automated_moderation_rejection_metadata'
|
|
138
|
-
},
|
|
139
|
-
automatedModerationDecidedAt: {
|
|
140
|
-
type: DataTypes.DATE,
|
|
141
|
-
allowNull: true,
|
|
142
|
-
field: 'automated_moderation_decided_at'
|
|
143
|
-
},
|
|
144
|
-
manualModerationApproved: {
|
|
145
|
-
type: DataTypes.BOOLEAN,
|
|
146
|
-
allowNull: true,
|
|
147
|
-
field: 'manual_moderation_approved'
|
|
148
|
-
},
|
|
149
|
-
manualModerationDecidedAt: {
|
|
150
|
-
type: DataTypes.DATE,
|
|
151
|
-
allowNull: true,
|
|
152
|
-
field: 'manual_moderation_decided_at'
|
|
153
|
-
},
|
|
154
|
-
manualModerationBy: {
|
|
155
|
-
type: DataTypes.TEXT,
|
|
156
|
-
allowNull: true,
|
|
157
|
-
field: 'manual_moderation_by'
|
|
158
|
-
}
|
|
159
|
-
}, {
|
|
160
|
-
sequelize,
|
|
161
|
-
tableName: 'radio_show_media',
|
|
162
|
-
schema: 'eb',
|
|
163
|
-
timestamps: false,
|
|
164
|
-
indexes: [
|
|
165
|
-
{
|
|
166
|
-
name: "idx_radio_show_media_show",
|
|
167
|
-
fields: [
|
|
168
|
-
{ name: "radio_show_id" },
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: "radio_show_media_pkey",
|
|
173
|
-
unique: true,
|
|
174
|
-
fields: [
|
|
175
|
-
{ name: "id" },
|
|
176
|
-
]
|
|
177
|
-
},
|
|
178
|
-
]
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
4
|
-
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
5
|
-
|
|
6
|
-
export interface RadioShowPlacementAttributes {
|
|
7
|
-
radioShowId: string;
|
|
8
|
-
canonTrackId?: string;
|
|
9
|
-
radioShowMediaId?: string;
|
|
10
|
-
seqNum: number;
|
|
11
|
-
startTime?: string;
|
|
12
|
-
endTime?: string;
|
|
13
|
-
id: string;
|
|
14
|
-
deleted?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type RadioShowPlacementPk = "id";
|
|
18
|
-
export type RadioShowPlacementId = RadioShowPlacement[RadioShowPlacementPk];
|
|
19
|
-
export type RadioShowPlacementOptionalAttributes = "canonTrackId" | "radioShowMediaId" | "startTime" | "endTime" | "id" | "deleted";
|
|
20
|
-
export type RadioShowPlacementCreationAttributes = Optional<RadioShowPlacementAttributes, RadioShowPlacementOptionalAttributes>;
|
|
21
|
-
|
|
22
|
-
export class RadioShowPlacement extends Model<RadioShowPlacementAttributes, RadioShowPlacementCreationAttributes> implements RadioShowPlacementAttributes {
|
|
23
|
-
radioShowId!: string;
|
|
24
|
-
canonTrackId?: string;
|
|
25
|
-
radioShowMediaId?: string;
|
|
26
|
-
seqNum!: number;
|
|
27
|
-
startTime?: string;
|
|
28
|
-
endTime?: string;
|
|
29
|
-
id!: string;
|
|
30
|
-
deleted?: boolean;
|
|
31
|
-
|
|
32
|
-
// RadioShowPlacement belongsTo CanonTrack via canonTrackId
|
|
33
|
-
canonTrack!: CanonTrack;
|
|
34
|
-
getCanonTrack!: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
|
|
35
|
-
setCanonTrack!: Sequelize.BelongsToSetAssociationMixin<CanonTrack, CanonTrackId>;
|
|
36
|
-
createCanonTrack!: Sequelize.BelongsToCreateAssociationMixin<CanonTrack>;
|
|
37
|
-
// RadioShowPlacement belongsTo RadioShow via radioShowId
|
|
38
|
-
radioShow!: RadioShow;
|
|
39
|
-
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
40
|
-
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
41
|
-
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
42
|
-
|
|
43
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowPlacement {
|
|
44
|
-
return RadioShowPlacement.init({
|
|
45
|
-
radioShowId: {
|
|
46
|
-
type: DataTypes.UUID,
|
|
47
|
-
allowNull: false,
|
|
48
|
-
references: {
|
|
49
|
-
model: 'radio_show',
|
|
50
|
-
key: 'id'
|
|
51
|
-
},
|
|
52
|
-
field: 'radio_show_id'
|
|
53
|
-
},
|
|
54
|
-
canonTrackId: {
|
|
55
|
-
type: DataTypes.UUID,
|
|
56
|
-
allowNull: true,
|
|
57
|
-
references: {
|
|
58
|
-
model: 'canon_track',
|
|
59
|
-
key: 'id'
|
|
60
|
-
},
|
|
61
|
-
field: 'canon_track_id'
|
|
62
|
-
},
|
|
63
|
-
radioShowMediaId: {
|
|
64
|
-
type: DataTypes.UUID,
|
|
65
|
-
allowNull: true,
|
|
66
|
-
field: 'radio_show_media_id'
|
|
67
|
-
},
|
|
68
|
-
seqNum: {
|
|
69
|
-
type: DataTypes.INTEGER,
|
|
70
|
-
allowNull: false,
|
|
71
|
-
field: 'seq_num'
|
|
72
|
-
},
|
|
73
|
-
startTime: {
|
|
74
|
-
type: DataTypes.TIME,
|
|
75
|
-
allowNull: true,
|
|
76
|
-
field: 'start_time'
|
|
77
|
-
},
|
|
78
|
-
endTime: {
|
|
79
|
-
type: DataTypes.TIME,
|
|
80
|
-
allowNull: true,
|
|
81
|
-
field: 'end_time'
|
|
82
|
-
},
|
|
83
|
-
id: {
|
|
84
|
-
type: DataTypes.UUID,
|
|
85
|
-
allowNull: false,
|
|
86
|
-
defaultValue: DataTypes.UUIDV4,
|
|
87
|
-
primaryKey: true
|
|
88
|
-
},
|
|
89
|
-
deleted: {
|
|
90
|
-
type: DataTypes.BOOLEAN,
|
|
91
|
-
allowNull: true
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
sequelize,
|
|
95
|
-
tableName: 'radio_show_placement',
|
|
96
|
-
schema: 'eb',
|
|
97
|
-
timestamps: false,
|
|
98
|
-
indexes: [
|
|
99
|
-
{
|
|
100
|
-
name: "idx_radio_show_placement_show",
|
|
101
|
-
fields: [
|
|
102
|
-
{ name: "radio_show_id" },
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "radio_show_placement_pkey",
|
|
107
|
-
unique: true,
|
|
108
|
-
fields: [
|
|
109
|
-
{ name: "id" },
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
]
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
4
|
-
|
|
5
|
-
export interface RadioShowPublishRequestsAttributes {
|
|
6
|
-
radioShowId: string;
|
|
7
|
-
approved?: boolean;
|
|
8
|
-
id: string;
|
|
9
|
-
createDate: Date;
|
|
10
|
-
updateDate: Date;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type RadioShowPublishRequestsPk = "id";
|
|
14
|
-
export type RadioShowPublishRequestsId = RadioShowPublishRequests[RadioShowPublishRequestsPk];
|
|
15
|
-
export type RadioShowPublishRequestsOptionalAttributes = "approved" | "id" | "createDate" | "updateDate";
|
|
16
|
-
export type RadioShowPublishRequestsCreationAttributes = Optional<RadioShowPublishRequestsAttributes, RadioShowPublishRequestsOptionalAttributes>;
|
|
17
|
-
|
|
18
|
-
export class RadioShowPublishRequests extends Model<RadioShowPublishRequestsAttributes, RadioShowPublishRequestsCreationAttributes> implements RadioShowPublishRequestsAttributes {
|
|
19
|
-
radioShowId!: string;
|
|
20
|
-
approved?: boolean;
|
|
21
|
-
id!: string;
|
|
22
|
-
createDate!: Date;
|
|
23
|
-
updateDate!: Date;
|
|
24
|
-
|
|
25
|
-
// RadioShowPublishRequests belongsTo RadioShow via radioShowId
|
|
26
|
-
radioShow!: RadioShow;
|
|
27
|
-
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
28
|
-
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
29
|
-
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShowPublishRequests {
|
|
32
|
-
return RadioShowPublishRequests.init({
|
|
33
|
-
radioShowId: {
|
|
34
|
-
type: DataTypes.UUID,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
references: {
|
|
37
|
-
model: 'radio_show',
|
|
38
|
-
key: 'id'
|
|
39
|
-
},
|
|
40
|
-
field: 'radio_show_id'
|
|
41
|
-
},
|
|
42
|
-
approved: {
|
|
43
|
-
type: DataTypes.BOOLEAN,
|
|
44
|
-
allowNull: true
|
|
45
|
-
},
|
|
46
|
-
id: {
|
|
47
|
-
type: DataTypes.UUID,
|
|
48
|
-
allowNull: false,
|
|
49
|
-
defaultValue: DataTypes.UUIDV4,
|
|
50
|
-
primaryKey: true
|
|
51
|
-
},
|
|
52
|
-
createDate: {
|
|
53
|
-
type: DataTypes.DATE,
|
|
54
|
-
allowNull: false,
|
|
55
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
56
|
-
field: 'create_date'
|
|
57
|
-
},
|
|
58
|
-
updateDate: {
|
|
59
|
-
type: DataTypes.DATE,
|
|
60
|
-
allowNull: false,
|
|
61
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
62
|
-
field: 'update_date'
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
65
|
-
sequelize,
|
|
66
|
-
tableName: 'radio_show_publish_requests',
|
|
67
|
-
schema: 'eb',
|
|
68
|
-
timestamps: false,
|
|
69
|
-
indexes: [
|
|
70
|
-
{
|
|
71
|
-
name: "idx_radio_show_publish_show",
|
|
72
|
-
fields: [
|
|
73
|
-
{ name: "radio_show_id" },
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "radio_show_publish_requests_pkey",
|
|
78
|
-
unique: true,
|
|
79
|
-
fields: [
|
|
80
|
-
{ name: "id" },
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
]
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
package/models/State.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
5
|
-
import type { PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId } from './PlatformUserPlaylistTrack';
|
|
6
|
-
|
|
7
|
-
export interface StateAttributes {
|
|
8
|
-
description: string;
|
|
9
|
-
id: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type StatePk = "id";
|
|
13
|
-
export type StateId = State[StatePk];
|
|
14
|
-
export type StateCreationAttributes = StateAttributes;
|
|
15
|
-
|
|
16
|
-
export class State extends Model<StateAttributes, StateCreationAttributes> implements StateAttributes {
|
|
17
|
-
description!: string;
|
|
18
|
-
id!: number;
|
|
19
|
-
|
|
20
|
-
// State hasMany AppUser via stateId
|
|
21
|
-
appUsers!: AppUser[];
|
|
22
|
-
getAppUsers!: Sequelize.HasManyGetAssociationsMixin<AppUser>;
|
|
23
|
-
setAppUsers!: Sequelize.HasManySetAssociationsMixin<AppUser, AppUserId>;
|
|
24
|
-
addAppUser!: Sequelize.HasManyAddAssociationMixin<AppUser, AppUserId>;
|
|
25
|
-
addAppUsers!: Sequelize.HasManyAddAssociationsMixin<AppUser, AppUserId>;
|
|
26
|
-
createAppUser!: Sequelize.HasManyCreateAssociationMixin<AppUser>;
|
|
27
|
-
removeAppUser!: Sequelize.HasManyRemoveAssociationMixin<AppUser, AppUserId>;
|
|
28
|
-
removeAppUsers!: Sequelize.HasManyRemoveAssociationsMixin<AppUser, AppUserId>;
|
|
29
|
-
hasAppUser!: Sequelize.HasManyHasAssociationMixin<AppUser, AppUserId>;
|
|
30
|
-
hasAppUsers!: Sequelize.HasManyHasAssociationsMixin<AppUser, AppUserId>;
|
|
31
|
-
countAppUsers!: Sequelize.HasManyCountAssociationsMixin;
|
|
32
|
-
// State hasMany PlatformUserPlaylist via stateId
|
|
33
|
-
platformUserPlaylists!: PlatformUserPlaylist[];
|
|
34
|
-
getPlatformUserPlaylists!: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylist>;
|
|
35
|
-
setPlatformUserPlaylists!: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
36
|
-
addPlatformUserPlaylist!: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
37
|
-
addPlatformUserPlaylists!: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
38
|
-
createPlatformUserPlaylist!: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylist>;
|
|
39
|
-
removePlatformUserPlaylist!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
40
|
-
removePlatformUserPlaylists!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
41
|
-
hasPlatformUserPlaylist!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
42
|
-
hasPlatformUserPlaylists!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
43
|
-
countPlatformUserPlaylists!: Sequelize.HasManyCountAssociationsMixin;
|
|
44
|
-
// State hasMany PlatformUserPlaylistTrack via stateId
|
|
45
|
-
platformUserPlaylistTracks!: PlatformUserPlaylistTrack[];
|
|
46
|
-
getPlatformUserPlaylistTracks!: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylistTrack>;
|
|
47
|
-
setPlatformUserPlaylistTracks!: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
48
|
-
addPlatformUserPlaylistTrack!: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
49
|
-
addPlatformUserPlaylistTracks!: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
50
|
-
createPlatformUserPlaylistTrack!: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylistTrack>;
|
|
51
|
-
removePlatformUserPlaylistTrack!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
52
|
-
removePlatformUserPlaylistTracks!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
53
|
-
hasPlatformUserPlaylistTrack!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
54
|
-
hasPlatformUserPlaylistTracks!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
55
|
-
countPlatformUserPlaylistTracks!: Sequelize.HasManyCountAssociationsMixin;
|
|
56
|
-
|
|
57
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof State {
|
|
58
|
-
return State.init({
|
|
59
|
-
description: {
|
|
60
|
-
type: DataTypes.TEXT,
|
|
61
|
-
allowNull: false
|
|
62
|
-
},
|
|
63
|
-
id: {
|
|
64
|
-
autoIncrement: true,
|
|
65
|
-
autoIncrementIdentity: true,
|
|
66
|
-
type: DataTypes.SMALLINT,
|
|
67
|
-
allowNull: false,
|
|
68
|
-
primaryKey: true
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
sequelize,
|
|
72
|
-
tableName: 'state',
|
|
73
|
-
schema: 'eb',
|
|
74
|
-
timestamps: false,
|
|
75
|
-
indexes: [
|
|
76
|
-
{
|
|
77
|
-
name: "state_pkey",
|
|
78
|
-
unique: true,
|
|
79
|
-
fields: [
|
|
80
|
-
{ name: "id" },
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
]
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
4
|
-
|
|
5
|
-
export interface TrackDeletionReasonAttributes {
|
|
6
|
-
id: number;
|
|
7
|
-
description: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type TrackDeletionReasonPk = "id";
|
|
11
|
-
export type TrackDeletionReasonId = TrackDeletionReason[TrackDeletionReasonPk];
|
|
12
|
-
export type TrackDeletionReasonCreationAttributes = TrackDeletionReasonAttributes;
|
|
13
|
-
|
|
14
|
-
export class TrackDeletionReason extends Model<TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes> implements TrackDeletionReasonAttributes {
|
|
15
|
-
id!: number;
|
|
16
|
-
description!: string;
|
|
17
|
-
|
|
18
|
-
// TrackDeletionReason hasMany JukeboxQueueEntry via trackDeletionReasonId
|
|
19
|
-
jukeboxQueueEntries!: JukeboxQueueEntry[];
|
|
20
|
-
getJukeboxQueueEntries!: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
|
|
21
|
-
setJukeboxQueueEntries!: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
22
|
-
addJukeboxQueueEntry!: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
23
|
-
addJukeboxQueueEntries!: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
24
|
-
createJukeboxQueueEntry!: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
|
|
25
|
-
removeJukeboxQueueEntry!: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
26
|
-
removeJukeboxQueueEntries!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
27
|
-
hasJukeboxQueueEntry!: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
28
|
-
hasJukeboxQueueEntries!: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
29
|
-
countJukeboxQueueEntries!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof TrackDeletionReason {
|
|
32
|
-
return TrackDeletionReason.init({
|
|
33
|
-
id: {
|
|
34
|
-
type: DataTypes.SMALLINT,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
|
-
description: {
|
|
39
|
-
type: DataTypes.STRING(255),
|
|
40
|
-
allowNull: false
|
|
41
|
-
}
|
|
42
|
-
}, {
|
|
43
|
-
sequelize,
|
|
44
|
-
tableName: 'track_deletion_reason',
|
|
45
|
-
schema: 'eb',
|
|
46
|
-
timestamps: false,
|
|
47
|
-
indexes: [
|
|
48
|
-
{
|
|
49
|
-
name: "track_deletion_reason_pkey",
|
|
50
|
-
unique: true,
|
|
51
|
-
fields: [
|
|
52
|
-
{ name: "id" },
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|