@earbug/db-models 0.0.59 → 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,136 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AffinityTier, AffinityTierId } from './AffinityTier';
|
|
4
|
-
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
5
|
-
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
6
|
-
|
|
7
|
-
export interface PlatformUserPlaylistGenreAffinityAttributes {
|
|
8
|
-
platformUserPlaylistId: string;
|
|
9
|
-
canonGenreId: string;
|
|
10
|
-
affinityTierId: number;
|
|
11
|
-
rank: number;
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type PlatformUserPlaylistGenreAffinityPk = "id";
|
|
18
|
-
export type PlatformUserPlaylistGenreAffinityId = PlatformUserPlaylistGenreAffinity[PlatformUserPlaylistGenreAffinityPk];
|
|
19
|
-
export type PlatformUserPlaylistGenreAffinityOptionalAttributes = "id" | "createdAt" | "updatedAt";
|
|
20
|
-
export type PlatformUserPlaylistGenreAffinityCreationAttributes = Optional<PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityOptionalAttributes>;
|
|
21
|
-
|
|
22
|
-
export class PlatformUserPlaylistGenreAffinity extends Model<PlatformUserPlaylistGenreAffinityAttributes, PlatformUserPlaylistGenreAffinityCreationAttributes> implements PlatformUserPlaylistGenreAffinityAttributes {
|
|
23
|
-
platformUserPlaylistId!: string;
|
|
24
|
-
canonGenreId!: string;
|
|
25
|
-
affinityTierId!: number;
|
|
26
|
-
rank!: number;
|
|
27
|
-
id!: string;
|
|
28
|
-
createdAt!: Date;
|
|
29
|
-
updatedAt!: Date;
|
|
30
|
-
|
|
31
|
-
// PlatformUserPlaylistGenreAffinity belongsTo AffinityTier via affinityTierId
|
|
32
|
-
affinityTier!: AffinityTier;
|
|
33
|
-
getAffinityTier!: Sequelize.BelongsToGetAssociationMixin<AffinityTier>;
|
|
34
|
-
setAffinityTier!: Sequelize.BelongsToSetAssociationMixin<AffinityTier, AffinityTierId>;
|
|
35
|
-
createAffinityTier!: Sequelize.BelongsToCreateAssociationMixin<AffinityTier>;
|
|
36
|
-
// PlatformUserPlaylistGenreAffinity belongsTo CanonGenre via canonGenreId
|
|
37
|
-
canonGenre!: CanonGenre;
|
|
38
|
-
getCanonGenre!: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
39
|
-
setCanonGenre!: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
40
|
-
createCanonGenre!: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
41
|
-
// PlatformUserPlaylistGenreAffinity belongsTo PlatformUserPlaylist via platformUserPlaylistId
|
|
42
|
-
platformUserPlaylist!: PlatformUserPlaylist;
|
|
43
|
-
getPlatformUserPlaylist!: Sequelize.BelongsToGetAssociationMixin<PlatformUserPlaylist>;
|
|
44
|
-
setPlatformUserPlaylist!: Sequelize.BelongsToSetAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
45
|
-
createPlatformUserPlaylist!: Sequelize.BelongsToCreateAssociationMixin<PlatformUserPlaylist>;
|
|
46
|
-
|
|
47
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformUserPlaylistGenreAffinity {
|
|
48
|
-
return PlatformUserPlaylistGenreAffinity.init({
|
|
49
|
-
platformUserPlaylistId: {
|
|
50
|
-
type: DataTypes.UUID,
|
|
51
|
-
allowNull: false,
|
|
52
|
-
references: {
|
|
53
|
-
model: 'platform_user_playlist',
|
|
54
|
-
key: 'id'
|
|
55
|
-
},
|
|
56
|
-
unique: "unique_pupga_canon_genre",
|
|
57
|
-
field: 'platform_user_playlist_id'
|
|
58
|
-
},
|
|
59
|
-
canonGenreId: {
|
|
60
|
-
type: DataTypes.UUID,
|
|
61
|
-
allowNull: false,
|
|
62
|
-
references: {
|
|
63
|
-
model: 'canon_genre',
|
|
64
|
-
key: 'id'
|
|
65
|
-
},
|
|
66
|
-
unique: "unique_pupga_canon_genre",
|
|
67
|
-
field: 'canon_genre_id'
|
|
68
|
-
},
|
|
69
|
-
affinityTierId: {
|
|
70
|
-
type: DataTypes.SMALLINT,
|
|
71
|
-
allowNull: false,
|
|
72
|
-
references: {
|
|
73
|
-
model: 'affinity_tier',
|
|
74
|
-
key: 'id'
|
|
75
|
-
},
|
|
76
|
-
field: 'affinity_tier_id'
|
|
77
|
-
},
|
|
78
|
-
rank: {
|
|
79
|
-
type: DataTypes.INTEGER,
|
|
80
|
-
allowNull: false
|
|
81
|
-
},
|
|
82
|
-
id: {
|
|
83
|
-
type: DataTypes.UUID,
|
|
84
|
-
allowNull: false,
|
|
85
|
-
defaultValue: DataTypes.UUIDV4,
|
|
86
|
-
primaryKey: true
|
|
87
|
-
},
|
|
88
|
-
createdAt: {
|
|
89
|
-
type: DataTypes.DATE,
|
|
90
|
-
allowNull: false,
|
|
91
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
92
|
-
field: 'created_at'
|
|
93
|
-
},
|
|
94
|
-
updatedAt: {
|
|
95
|
-
type: DataTypes.DATE,
|
|
96
|
-
allowNull: false,
|
|
97
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
98
|
-
field: 'updated_at'
|
|
99
|
-
}
|
|
100
|
-
}, {
|
|
101
|
-
sequelize,
|
|
102
|
-
tableName: 'platform_user_playlist_genre_affinity',
|
|
103
|
-
schema: 'eb',
|
|
104
|
-
timestamps: false,
|
|
105
|
-
indexes: [
|
|
106
|
-
{
|
|
107
|
-
name: "idx_platform_user_playlist_genre_affinity",
|
|
108
|
-
fields: [
|
|
109
|
-
{ name: "platform_user_playlist_id" },
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: "idx_platform_user_playlist_genre_affinity_genre",
|
|
114
|
-
fields: [
|
|
115
|
-
{ name: "canon_genre_id" },
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "platform_user_playlist_genre_affinity_pkey",
|
|
120
|
-
unique: true,
|
|
121
|
-
fields: [
|
|
122
|
-
{ name: "id" },
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "unique_pupga_canon_genre",
|
|
127
|
-
unique: true,
|
|
128
|
-
fields: [
|
|
129
|
-
{ name: "platform_user_playlist_id" },
|
|
130
|
-
{ name: "canon_genre_id" },
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
]
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
4
|
-
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
5
|
-
import type { State, StateId } from './State';
|
|
6
|
-
|
|
7
|
-
export interface PlatformUserPlaylistTrackAttributes {
|
|
8
|
-
platformTrackId: string;
|
|
9
|
-
platformUserPlaylistId: string;
|
|
10
|
-
addedDate?: Date;
|
|
11
|
-
addedByPlatformUserId?: string;
|
|
12
|
-
externalPlaylistTrackId: string;
|
|
13
|
-
id: string;
|
|
14
|
-
trackPosition: number;
|
|
15
|
-
isLocal: boolean;
|
|
16
|
-
createDate: Date;
|
|
17
|
-
updateDate: Date;
|
|
18
|
-
stateId: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type PlatformUserPlaylistTrackPk = "id";
|
|
22
|
-
export type PlatformUserPlaylistTrackId = PlatformUserPlaylistTrack[PlatformUserPlaylistTrackPk];
|
|
23
|
-
export type PlatformUserPlaylistTrackOptionalAttributes = "addedDate" | "addedByPlatformUserId" | "id" | "trackPosition" | "createDate" | "updateDate" | "stateId";
|
|
24
|
-
export type PlatformUserPlaylistTrackCreationAttributes = Optional<PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackOptionalAttributes>;
|
|
25
|
-
|
|
26
|
-
export class PlatformUserPlaylistTrack extends Model<PlatformUserPlaylistTrackAttributes, PlatformUserPlaylistTrackCreationAttributes> implements PlatformUserPlaylistTrackAttributes {
|
|
27
|
-
platformTrackId!: string;
|
|
28
|
-
platformUserPlaylistId!: string;
|
|
29
|
-
addedDate?: Date;
|
|
30
|
-
addedByPlatformUserId?: string;
|
|
31
|
-
externalPlaylistTrackId!: string;
|
|
32
|
-
id!: string;
|
|
33
|
-
trackPosition!: number;
|
|
34
|
-
isLocal!: boolean;
|
|
35
|
-
createDate!: Date;
|
|
36
|
-
updateDate!: Date;
|
|
37
|
-
stateId!: number;
|
|
38
|
-
|
|
39
|
-
// PlatformUserPlaylistTrack belongsTo PlatformTrack via platformTrackId
|
|
40
|
-
platformTrack!: PlatformTrack;
|
|
41
|
-
getPlatformTrack!: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
|
|
42
|
-
setPlatformTrack!: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
43
|
-
createPlatformTrack!: Sequelize.BelongsToCreateAssociationMixin<PlatformTrack>;
|
|
44
|
-
// PlatformUserPlaylistTrack belongsTo PlatformUserPlaylist via platformUserPlaylistId
|
|
45
|
-
platformUserPlaylist!: PlatformUserPlaylist;
|
|
46
|
-
getPlatformUserPlaylist!: Sequelize.BelongsToGetAssociationMixin<PlatformUserPlaylist>;
|
|
47
|
-
setPlatformUserPlaylist!: Sequelize.BelongsToSetAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
48
|
-
createPlatformUserPlaylist!: Sequelize.BelongsToCreateAssociationMixin<PlatformUserPlaylist>;
|
|
49
|
-
// PlatformUserPlaylistTrack belongsTo State via stateId
|
|
50
|
-
state!: State;
|
|
51
|
-
getState!: Sequelize.BelongsToGetAssociationMixin<State>;
|
|
52
|
-
setState!: Sequelize.BelongsToSetAssociationMixin<State, StateId>;
|
|
53
|
-
createState!: Sequelize.BelongsToCreateAssociationMixin<State>;
|
|
54
|
-
|
|
55
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof PlatformUserPlaylistTrack {
|
|
56
|
-
return PlatformUserPlaylistTrack.init({
|
|
57
|
-
platformTrackId: {
|
|
58
|
-
type: DataTypes.UUID,
|
|
59
|
-
allowNull: false,
|
|
60
|
-
references: {
|
|
61
|
-
model: 'platform_track',
|
|
62
|
-
key: 'id'
|
|
63
|
-
},
|
|
64
|
-
unique: "uk_playlist_id_track_id",
|
|
65
|
-
field: 'platform_track_id'
|
|
66
|
-
},
|
|
67
|
-
platformUserPlaylistId: {
|
|
68
|
-
type: DataTypes.UUID,
|
|
69
|
-
allowNull: false,
|
|
70
|
-
references: {
|
|
71
|
-
model: 'platform_user_playlist',
|
|
72
|
-
key: 'id'
|
|
73
|
-
},
|
|
74
|
-
unique: "uk_playlist_id_track_id",
|
|
75
|
-
field: 'platform_user_playlist_id'
|
|
76
|
-
},
|
|
77
|
-
addedDate: {
|
|
78
|
-
type: DataTypes.DATE,
|
|
79
|
-
allowNull: true,
|
|
80
|
-
field: 'added_date'
|
|
81
|
-
},
|
|
82
|
-
addedByPlatformUserId: {
|
|
83
|
-
type: DataTypes.TEXT,
|
|
84
|
-
allowNull: true,
|
|
85
|
-
field: 'added_by_platform_user_id'
|
|
86
|
-
},
|
|
87
|
-
externalPlaylistTrackId: {
|
|
88
|
-
type: DataTypes.STRING(255),
|
|
89
|
-
allowNull: false,
|
|
90
|
-
field: 'external_playlist_track_id'
|
|
91
|
-
},
|
|
92
|
-
id: {
|
|
93
|
-
type: DataTypes.UUID,
|
|
94
|
-
allowNull: false,
|
|
95
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
96
|
-
primaryKey: true
|
|
97
|
-
},
|
|
98
|
-
trackPosition: {
|
|
99
|
-
type: DataTypes.INTEGER,
|
|
100
|
-
allowNull: false,
|
|
101
|
-
defaultValue: 0,
|
|
102
|
-
field: 'track_position'
|
|
103
|
-
},
|
|
104
|
-
isLocal: {
|
|
105
|
-
type: DataTypes.BOOLEAN,
|
|
106
|
-
allowNull: false,
|
|
107
|
-
defaultValue: false,
|
|
108
|
-
field: 'is_local'
|
|
109
|
-
},
|
|
110
|
-
createDate: {
|
|
111
|
-
type: DataTypes.DATE,
|
|
112
|
-
allowNull: false,
|
|
113
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
114
|
-
field: 'create_date'
|
|
115
|
-
},
|
|
116
|
-
updateDate: {
|
|
117
|
-
type: DataTypes.DATE,
|
|
118
|
-
allowNull: false,
|
|
119
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
120
|
-
field: 'update_date'
|
|
121
|
-
},
|
|
122
|
-
stateId: {
|
|
123
|
-
type: DataTypes.SMALLINT,
|
|
124
|
-
allowNull: false,
|
|
125
|
-
defaultValue: 0,
|
|
126
|
-
references: {
|
|
127
|
-
model: 'state',
|
|
128
|
-
key: 'id'
|
|
129
|
-
},
|
|
130
|
-
field: 'state_id'
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
sequelize,
|
|
134
|
-
tableName: 'platform_user_playlist_track',
|
|
135
|
-
schema: 'eb',
|
|
136
|
-
timestamps: false,
|
|
137
|
-
indexes: [
|
|
138
|
-
{
|
|
139
|
-
name: "idx_playlist_track_playlist",
|
|
140
|
-
fields: [
|
|
141
|
-
{ name: "platform_user_playlist_id" },
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: "playlist_track_pkey",
|
|
146
|
-
unique: true,
|
|
147
|
-
fields: [
|
|
148
|
-
{ name: "id" },
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
name: "uk_playlist_id_track_id",
|
|
153
|
-
unique: true,
|
|
154
|
-
fields: [
|
|
155
|
-
{ name: "platform_track_id" },
|
|
156
|
-
{ name: "platform_user_playlist_id" },
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
]
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
package/models/PlaybackStatus.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
|
|
4
|
-
export interface PlaybackStatusAttributes {
|
|
5
|
-
description: string;
|
|
6
|
-
id: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type PlaybackStatusPk = "id";
|
|
10
|
-
export type PlaybackStatusId = PlaybackStatus[PlaybackStatusPk];
|
|
11
|
-
export type PlaybackStatusCreationAttributes = PlaybackStatusAttributes;
|
|
12
|
-
|
|
13
|
-
export class PlaybackStatus extends Model<PlaybackStatusAttributes, PlaybackStatusCreationAttributes> implements PlaybackStatusAttributes {
|
|
14
|
-
description!: string;
|
|
15
|
-
id!: number;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof PlaybackStatus {
|
|
19
|
-
return PlaybackStatus.init({
|
|
20
|
-
description: {
|
|
21
|
-
type: DataTypes.TEXT,
|
|
22
|
-
allowNull: false
|
|
23
|
-
},
|
|
24
|
-
id: {
|
|
25
|
-
autoIncrement: true,
|
|
26
|
-
autoIncrementIdentity: true,
|
|
27
|
-
type: DataTypes.SMALLINT,
|
|
28
|
-
allowNull: false,
|
|
29
|
-
primaryKey: true
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
sequelize,
|
|
33
|
-
tableName: 'playback_status',
|
|
34
|
-
schema: 'eb',
|
|
35
|
-
timestamps: false,
|
|
36
|
-
indexes: [
|
|
37
|
-
{
|
|
38
|
-
name: "playback_status_pkey",
|
|
39
|
-
unique: true,
|
|
40
|
-
fields: [
|
|
41
|
-
{ name: "id" },
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -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 PlaybackStatusTypeAttributes {
|
|
6
|
-
id: number;
|
|
7
|
-
description: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type PlaybackStatusTypePk = "id";
|
|
11
|
-
export type PlaybackStatusTypeId = PlaybackStatusType[PlaybackStatusTypePk];
|
|
12
|
-
export type PlaybackStatusTypeCreationAttributes = PlaybackStatusTypeAttributes;
|
|
13
|
-
|
|
14
|
-
export class PlaybackStatusType extends Model<PlaybackStatusTypeAttributes, PlaybackStatusTypeCreationAttributes> implements PlaybackStatusTypeAttributes {
|
|
15
|
-
id!: number;
|
|
16
|
-
description!: string;
|
|
17
|
-
|
|
18
|
-
// PlaybackStatusType hasMany JukeboxQueueEntry via playbackStatusTypeId
|
|
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 PlaybackStatusType {
|
|
32
|
-
return PlaybackStatusType.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: 'playback_status_type',
|
|
45
|
-
schema: 'eb',
|
|
46
|
-
timestamps: false,
|
|
47
|
-
indexes: [
|
|
48
|
-
{
|
|
49
|
-
name: "playback_status_type_pkey",
|
|
50
|
-
unique: true,
|
|
51
|
-
fields: [
|
|
52
|
-
{ name: "id" },
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
package/models/RadioShow.ts
DELETED
|
@@ -1,209 +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 { 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
|
-
import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
|
|
9
|
-
import type { UserBookmarks, UserBookmarksId } from './UserBookmarks';
|
|
10
|
-
import type { UserComments, UserCommentsId } from './UserComments';
|
|
11
|
-
import type { UserLikes, UserLikesId } from './UserLikes';
|
|
12
|
-
|
|
13
|
-
export interface RadioShowAttributes {
|
|
14
|
-
creatorUserId: string;
|
|
15
|
-
scheduledRelease?: Date;
|
|
16
|
-
title: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
deleted?: boolean;
|
|
19
|
-
id: string;
|
|
20
|
-
createDate: Date;
|
|
21
|
-
updateDate: Date;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type RadioShowPk = "id";
|
|
25
|
-
export type RadioShowId = RadioShow[RadioShowPk];
|
|
26
|
-
export type RadioShowOptionalAttributes = "scheduledRelease" | "description" | "deleted" | "id" | "createDate" | "updateDate";
|
|
27
|
-
export type RadioShowCreationAttributes = Optional<RadioShowAttributes, RadioShowOptionalAttributes>;
|
|
28
|
-
|
|
29
|
-
export class RadioShow extends Model<RadioShowAttributes, RadioShowCreationAttributes> implements RadioShowAttributes {
|
|
30
|
-
creatorUserId!: string;
|
|
31
|
-
scheduledRelease?: Date;
|
|
32
|
-
title!: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
deleted?: boolean;
|
|
35
|
-
id!: string;
|
|
36
|
-
createDate!: Date;
|
|
37
|
-
updateDate!: Date;
|
|
38
|
-
|
|
39
|
-
// RadioShow belongsTo AppUser via creatorUserId
|
|
40
|
-
creatorUser!: AppUser;
|
|
41
|
-
getCreatorUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
42
|
-
setCreatorUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
43
|
-
createCreatorUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
44
|
-
// RadioShow hasMany RadioShowGenres via radioShowId
|
|
45
|
-
radioShowGenres!: RadioShowGenres[];
|
|
46
|
-
getRadioShowGenres!: Sequelize.HasManyGetAssociationsMixin<RadioShowGenres>;
|
|
47
|
-
setRadioShowGenres!: Sequelize.HasManySetAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
48
|
-
addRadioShowGenre!: Sequelize.HasManyAddAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
49
|
-
addRadioShowGenres!: Sequelize.HasManyAddAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
50
|
-
createRadioShowGenre!: Sequelize.HasManyCreateAssociationMixin<RadioShowGenres>;
|
|
51
|
-
removeRadioShowGenre!: Sequelize.HasManyRemoveAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
52
|
-
removeRadioShowGenres!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
53
|
-
hasRadioShowGenre!: Sequelize.HasManyHasAssociationMixin<RadioShowGenres, RadioShowGenresId>;
|
|
54
|
-
hasRadioShowGenres!: Sequelize.HasManyHasAssociationsMixin<RadioShowGenres, RadioShowGenresId>;
|
|
55
|
-
countRadioShowGenres!: Sequelize.HasManyCountAssociationsMixin;
|
|
56
|
-
// RadioShow hasMany RadioShowMedia via radioShowId
|
|
57
|
-
radioShowMedia!: RadioShowMedia[];
|
|
58
|
-
getRadioShowMedia!: Sequelize.HasManyGetAssociationsMixin<RadioShowMedia>;
|
|
59
|
-
setRadioShowMedia!: Sequelize.HasManySetAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
60
|
-
addRadioShowMedium!: Sequelize.HasManyAddAssociationMixin<RadioShowMedia, RadioShowMediaId>;
|
|
61
|
-
addRadioShowMedia!: Sequelize.HasManyAddAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
62
|
-
createRadioShowMedium!: Sequelize.HasManyCreateAssociationMixin<RadioShowMedia>;
|
|
63
|
-
removeRadioShowMedium!: Sequelize.HasManyRemoveAssociationMixin<RadioShowMedia, RadioShowMediaId>;
|
|
64
|
-
removeRadioShowMedia!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
65
|
-
hasRadioShowMedium!: Sequelize.HasManyHasAssociationMixin<RadioShowMedia, RadioShowMediaId>;
|
|
66
|
-
hasRadioShowMedia!: Sequelize.HasManyHasAssociationsMixin<RadioShowMedia, RadioShowMediaId>;
|
|
67
|
-
countRadioShowMedia!: Sequelize.HasManyCountAssociationsMixin;
|
|
68
|
-
// RadioShow hasMany RadioShowPlacement via radioShowId
|
|
69
|
-
radioShowPlacements!: RadioShowPlacement[];
|
|
70
|
-
getRadioShowPlacements!: Sequelize.HasManyGetAssociationsMixin<RadioShowPlacement>;
|
|
71
|
-
setRadioShowPlacements!: Sequelize.HasManySetAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
72
|
-
addRadioShowPlacement!: Sequelize.HasManyAddAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
73
|
-
addRadioShowPlacements!: Sequelize.HasManyAddAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
74
|
-
createRadioShowPlacement!: Sequelize.HasManyCreateAssociationMixin<RadioShowPlacement>;
|
|
75
|
-
removeRadioShowPlacement!: Sequelize.HasManyRemoveAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
76
|
-
removeRadioShowPlacements!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
77
|
-
hasRadioShowPlacement!: Sequelize.HasManyHasAssociationMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
78
|
-
hasRadioShowPlacements!: Sequelize.HasManyHasAssociationsMixin<RadioShowPlacement, RadioShowPlacementId>;
|
|
79
|
-
countRadioShowPlacements!: Sequelize.HasManyCountAssociationsMixin;
|
|
80
|
-
// RadioShow hasMany RadioShowPublishRequests via radioShowId
|
|
81
|
-
radioShowPublishRequests!: RadioShowPublishRequests[];
|
|
82
|
-
getRadioShowPublishRequests!: Sequelize.HasManyGetAssociationsMixin<RadioShowPublishRequests>;
|
|
83
|
-
setRadioShowPublishRequests!: Sequelize.HasManySetAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
84
|
-
addRadioShowPublishRequest!: Sequelize.HasManyAddAssociationMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
85
|
-
addRadioShowPublishRequests!: Sequelize.HasManyAddAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
86
|
-
createRadioShowPublishRequest!: Sequelize.HasManyCreateAssociationMixin<RadioShowPublishRequests>;
|
|
87
|
-
removeRadioShowPublishRequest!: Sequelize.HasManyRemoveAssociationMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
88
|
-
removeRadioShowPublishRequests!: Sequelize.HasManyRemoveAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
89
|
-
hasRadioShowPublishRequest!: Sequelize.HasManyHasAssociationMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
90
|
-
hasRadioShowPublishRequests!: Sequelize.HasManyHasAssociationsMixin<RadioShowPublishRequests, RadioShowPublishRequestsId>;
|
|
91
|
-
countRadioShowPublishRequests!: Sequelize.HasManyCountAssociationsMixin;
|
|
92
|
-
// RadioShow hasMany UserAbuseReports via radioShowId
|
|
93
|
-
userAbuseReports!: UserAbuseReports[];
|
|
94
|
-
getUserAbuseReports!: Sequelize.HasManyGetAssociationsMixin<UserAbuseReports>;
|
|
95
|
-
setUserAbuseReports!: Sequelize.HasManySetAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
96
|
-
addUserAbuseReport!: Sequelize.HasManyAddAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
97
|
-
addUserAbuseReports!: Sequelize.HasManyAddAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
98
|
-
createUserAbuseReport!: Sequelize.HasManyCreateAssociationMixin<UserAbuseReports>;
|
|
99
|
-
removeUserAbuseReport!: Sequelize.HasManyRemoveAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
100
|
-
removeUserAbuseReports!: Sequelize.HasManyRemoveAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
101
|
-
hasUserAbuseReport!: Sequelize.HasManyHasAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
102
|
-
hasUserAbuseReports!: Sequelize.HasManyHasAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
103
|
-
countUserAbuseReports!: Sequelize.HasManyCountAssociationsMixin;
|
|
104
|
-
// RadioShow hasMany UserBookmarks via radioShowId
|
|
105
|
-
userBookmarks!: UserBookmarks[];
|
|
106
|
-
getUserBookmarks!: Sequelize.HasManyGetAssociationsMixin<UserBookmarks>;
|
|
107
|
-
setUserBookmarks!: Sequelize.HasManySetAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
108
|
-
addUserBookmark!: Sequelize.HasManyAddAssociationMixin<UserBookmarks, UserBookmarksId>;
|
|
109
|
-
addUserBookmarks!: Sequelize.HasManyAddAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
110
|
-
createUserBookmark!: Sequelize.HasManyCreateAssociationMixin<UserBookmarks>;
|
|
111
|
-
removeUserBookmark!: Sequelize.HasManyRemoveAssociationMixin<UserBookmarks, UserBookmarksId>;
|
|
112
|
-
removeUserBookmarks!: Sequelize.HasManyRemoveAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
113
|
-
hasUserBookmark!: Sequelize.HasManyHasAssociationMixin<UserBookmarks, UserBookmarksId>;
|
|
114
|
-
hasUserBookmarks!: Sequelize.HasManyHasAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
115
|
-
countUserBookmarks!: Sequelize.HasManyCountAssociationsMixin;
|
|
116
|
-
// RadioShow hasMany UserComments via radioShowId
|
|
117
|
-
userComments!: UserComments[];
|
|
118
|
-
getUserComments!: Sequelize.HasManyGetAssociationsMixin<UserComments>;
|
|
119
|
-
setUserComments!: Sequelize.HasManySetAssociationsMixin<UserComments, UserCommentsId>;
|
|
120
|
-
addUserComment!: Sequelize.HasManyAddAssociationMixin<UserComments, UserCommentsId>;
|
|
121
|
-
addUserComments!: Sequelize.HasManyAddAssociationsMixin<UserComments, UserCommentsId>;
|
|
122
|
-
createUserComment!: Sequelize.HasManyCreateAssociationMixin<UserComments>;
|
|
123
|
-
removeUserComment!: Sequelize.HasManyRemoveAssociationMixin<UserComments, UserCommentsId>;
|
|
124
|
-
removeUserComments!: Sequelize.HasManyRemoveAssociationsMixin<UserComments, UserCommentsId>;
|
|
125
|
-
hasUserComment!: Sequelize.HasManyHasAssociationMixin<UserComments, UserCommentsId>;
|
|
126
|
-
hasUserComments!: Sequelize.HasManyHasAssociationsMixin<UserComments, UserCommentsId>;
|
|
127
|
-
countUserComments!: Sequelize.HasManyCountAssociationsMixin;
|
|
128
|
-
// RadioShow hasMany UserLikes via radioShowId
|
|
129
|
-
userLikes!: UserLikes[];
|
|
130
|
-
getUserLikes!: Sequelize.HasManyGetAssociationsMixin<UserLikes>;
|
|
131
|
-
setUserLikes!: Sequelize.HasManySetAssociationsMixin<UserLikes, UserLikesId>;
|
|
132
|
-
addUserLike!: Sequelize.HasManyAddAssociationMixin<UserLikes, UserLikesId>;
|
|
133
|
-
addUserLikes!: Sequelize.HasManyAddAssociationsMixin<UserLikes, UserLikesId>;
|
|
134
|
-
createUserLike!: Sequelize.HasManyCreateAssociationMixin<UserLikes>;
|
|
135
|
-
removeUserLike!: Sequelize.HasManyRemoveAssociationMixin<UserLikes, UserLikesId>;
|
|
136
|
-
removeUserLikes!: Sequelize.HasManyRemoveAssociationsMixin<UserLikes, UserLikesId>;
|
|
137
|
-
hasUserLike!: Sequelize.HasManyHasAssociationMixin<UserLikes, UserLikesId>;
|
|
138
|
-
hasUserLikes!: Sequelize.HasManyHasAssociationsMixin<UserLikes, UserLikesId>;
|
|
139
|
-
countUserLikes!: Sequelize.HasManyCountAssociationsMixin;
|
|
140
|
-
|
|
141
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof RadioShow {
|
|
142
|
-
return RadioShow.init({
|
|
143
|
-
creatorUserId: {
|
|
144
|
-
type: DataTypes.UUID,
|
|
145
|
-
allowNull: false,
|
|
146
|
-
references: {
|
|
147
|
-
model: 'app_user',
|
|
148
|
-
key: 'id'
|
|
149
|
-
},
|
|
150
|
-
field: 'creator_user_id'
|
|
151
|
-
},
|
|
152
|
-
scheduledRelease: {
|
|
153
|
-
type: DataTypes.DATE,
|
|
154
|
-
allowNull: true,
|
|
155
|
-
field: 'scheduled_release'
|
|
156
|
-
},
|
|
157
|
-
title: {
|
|
158
|
-
type: DataTypes.STRING(40),
|
|
159
|
-
allowNull: false
|
|
160
|
-
},
|
|
161
|
-
description: {
|
|
162
|
-
type: DataTypes.STRING(512),
|
|
163
|
-
allowNull: true
|
|
164
|
-
},
|
|
165
|
-
deleted: {
|
|
166
|
-
type: DataTypes.BOOLEAN,
|
|
167
|
-
allowNull: true
|
|
168
|
-
},
|
|
169
|
-
id: {
|
|
170
|
-
type: DataTypes.UUID,
|
|
171
|
-
allowNull: false,
|
|
172
|
-
defaultValue: DataTypes.UUIDV4,
|
|
173
|
-
primaryKey: true
|
|
174
|
-
},
|
|
175
|
-
createDate: {
|
|
176
|
-
type: DataTypes.DATE,
|
|
177
|
-
allowNull: false,
|
|
178
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
179
|
-
field: 'create_date'
|
|
180
|
-
},
|
|
181
|
-
updateDate: {
|
|
182
|
-
type: DataTypes.DATE,
|
|
183
|
-
allowNull: false,
|
|
184
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
185
|
-
field: 'update_date'
|
|
186
|
-
}
|
|
187
|
-
}, {
|
|
188
|
-
sequelize,
|
|
189
|
-
tableName: 'radio_show',
|
|
190
|
-
schema: 'eb',
|
|
191
|
-
timestamps: false,
|
|
192
|
-
indexes: [
|
|
193
|
-
{
|
|
194
|
-
name: "idx_radio_show_creator",
|
|
195
|
-
fields: [
|
|
196
|
-
{ name: "creator_user_id" },
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
name: "radio_show_pkey",
|
|
201
|
-
unique: true,
|
|
202
|
-
fields: [
|
|
203
|
-
{ name: "id" },
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
]
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
}
|