@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,60 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
|
-
|
|
5
|
-
export interface JukeboxTerminationConditionAttributes {
|
|
6
|
-
description: string;
|
|
7
|
-
id: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type JukeboxTerminationConditionPk = "id";
|
|
11
|
-
export type JukeboxTerminationConditionId = JukeboxTerminationCondition[JukeboxTerminationConditionPk];
|
|
12
|
-
export type JukeboxTerminationConditionCreationAttributes = JukeboxTerminationConditionAttributes;
|
|
13
|
-
|
|
14
|
-
export class JukeboxTerminationCondition extends Model<JukeboxTerminationConditionAttributes, JukeboxTerminationConditionCreationAttributes> implements JukeboxTerminationConditionAttributes {
|
|
15
|
-
description!: string;
|
|
16
|
-
id!: number;
|
|
17
|
-
|
|
18
|
-
// JukeboxTerminationCondition hasMany JukeboxSession via terminationConditionId
|
|
19
|
-
jukeboxSessions!: JukeboxSession[];
|
|
20
|
-
getJukeboxSessions!: Sequelize.HasManyGetAssociationsMixin<JukeboxSession>;
|
|
21
|
-
setJukeboxSessions!: Sequelize.HasManySetAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
22
|
-
addJukeboxSession!: Sequelize.HasManyAddAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
23
|
-
addJukeboxSessions!: Sequelize.HasManyAddAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
24
|
-
createJukeboxSession!: Sequelize.HasManyCreateAssociationMixin<JukeboxSession>;
|
|
25
|
-
removeJukeboxSession!: Sequelize.HasManyRemoveAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
26
|
-
removeJukeboxSessions!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
27
|
-
hasJukeboxSession!: Sequelize.HasManyHasAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
28
|
-
hasJukeboxSessions!: Sequelize.HasManyHasAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
29
|
-
countJukeboxSessions!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxTerminationCondition {
|
|
32
|
-
return JukeboxTerminationCondition.init({
|
|
33
|
-
description: {
|
|
34
|
-
type: DataTypes.TEXT,
|
|
35
|
-
allowNull: false
|
|
36
|
-
},
|
|
37
|
-
id: {
|
|
38
|
-
autoIncrement: true,
|
|
39
|
-
autoIncrementIdentity: true,
|
|
40
|
-
type: DataTypes.SMALLINT,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
primaryKey: true
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
sequelize,
|
|
46
|
-
tableName: 'jukebox_termination_condition',
|
|
47
|
-
schema: 'eb',
|
|
48
|
-
timestamps: false,
|
|
49
|
-
indexes: [
|
|
50
|
-
{
|
|
51
|
-
name: "jukebox_termination_condition_pkey",
|
|
52
|
-
unique: true,
|
|
53
|
-
fields: [
|
|
54
|
-
{ name: "id" },
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
package/models/JukeboxType.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
|
-
|
|
5
|
-
export interface JukeboxTypeAttributes {
|
|
6
|
-
description: string;
|
|
7
|
-
id: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type JukeboxTypePk = "id";
|
|
11
|
-
export type JukeboxTypeId = JukeboxType[JukeboxTypePk];
|
|
12
|
-
export type JukeboxTypeCreationAttributes = JukeboxTypeAttributes;
|
|
13
|
-
|
|
14
|
-
export class JukeboxType extends Model<JukeboxTypeAttributes, JukeboxTypeCreationAttributes> implements JukeboxTypeAttributes {
|
|
15
|
-
description!: string;
|
|
16
|
-
id!: number;
|
|
17
|
-
|
|
18
|
-
// JukeboxType hasMany JukeboxSession via typeId
|
|
19
|
-
jukeboxSessions!: JukeboxSession[];
|
|
20
|
-
getJukeboxSessions!: Sequelize.HasManyGetAssociationsMixin<JukeboxSession>;
|
|
21
|
-
setJukeboxSessions!: Sequelize.HasManySetAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
22
|
-
addJukeboxSession!: Sequelize.HasManyAddAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
23
|
-
addJukeboxSessions!: Sequelize.HasManyAddAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
24
|
-
createJukeboxSession!: Sequelize.HasManyCreateAssociationMixin<JukeboxSession>;
|
|
25
|
-
removeJukeboxSession!: Sequelize.HasManyRemoveAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
26
|
-
removeJukeboxSessions!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
27
|
-
hasJukeboxSession!: Sequelize.HasManyHasAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
28
|
-
hasJukeboxSessions!: Sequelize.HasManyHasAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
29
|
-
countJukeboxSessions!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxType {
|
|
32
|
-
return JukeboxType.init({
|
|
33
|
-
description: {
|
|
34
|
-
type: DataTypes.TEXT,
|
|
35
|
-
allowNull: false
|
|
36
|
-
},
|
|
37
|
-
id: {
|
|
38
|
-
autoIncrement: true,
|
|
39
|
-
autoIncrementIdentity: true,
|
|
40
|
-
type: DataTypes.SMALLINT,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
primaryKey: true
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
sequelize,
|
|
46
|
-
tableName: 'jukebox_type',
|
|
47
|
-
schema: 'eb',
|
|
48
|
-
timestamps: false,
|
|
49
|
-
indexes: [
|
|
50
|
-
{
|
|
51
|
-
name: "jukebox_type_pkey",
|
|
52
|
-
unique: true,
|
|
53
|
-
fields: [
|
|
54
|
-
{ name: "id" },
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
package/models/JukeboxUser.ts
DELETED
|
@@ -1,182 +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 { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
5
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
6
|
-
import type { JukeboxUserType, JukeboxUserTypeId } from './JukeboxUserType';
|
|
7
|
-
import type { PauseStatusType, PauseStatusTypeId } from './PauseStatusType';
|
|
8
|
-
|
|
9
|
-
export interface JukeboxUserAttributes {
|
|
10
|
-
jukeboxSessionId: string;
|
|
11
|
-
appUserId: string;
|
|
12
|
-
exitDate?: Date;
|
|
13
|
-
pausedQueueEntryId?: string;
|
|
14
|
-
id: string;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
updatedAt: Date;
|
|
17
|
-
enterDate: Date;
|
|
18
|
-
jukeboxUserTypeId: number;
|
|
19
|
-
pauseStatusTypeId: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type JukeboxUserPk = "id";
|
|
23
|
-
export type JukeboxUserId = JukeboxUser[JukeboxUserPk];
|
|
24
|
-
export type JukeboxUserOptionalAttributes = "exitDate" | "pausedQueueEntryId" | "id" | "createdAt" | "updatedAt" | "enterDate" | "jukeboxUserTypeId" | "pauseStatusTypeId";
|
|
25
|
-
export type JukeboxUserCreationAttributes = Optional<JukeboxUserAttributes, JukeboxUserOptionalAttributes>;
|
|
26
|
-
|
|
27
|
-
export class JukeboxUser extends Model<JukeboxUserAttributes, JukeboxUserCreationAttributes> implements JukeboxUserAttributes {
|
|
28
|
-
jukeboxSessionId!: string;
|
|
29
|
-
appUserId!: string;
|
|
30
|
-
exitDate?: Date;
|
|
31
|
-
pausedQueueEntryId?: string;
|
|
32
|
-
id!: string;
|
|
33
|
-
createdAt!: Date;
|
|
34
|
-
updatedAt!: Date;
|
|
35
|
-
enterDate!: Date;
|
|
36
|
-
jukeboxUserTypeId!: number;
|
|
37
|
-
pauseStatusTypeId!: number;
|
|
38
|
-
|
|
39
|
-
// JukeboxUser belongsTo AppUser via appUserId
|
|
40
|
-
appUser!: AppUser;
|
|
41
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
42
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
43
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
44
|
-
// JukeboxUser belongsTo JukeboxQueueEntry via pausedQueueEntryId
|
|
45
|
-
pausedQueueEntry!: JukeboxQueueEntry;
|
|
46
|
-
getPausedQueueEntry!: Sequelize.BelongsToGetAssociationMixin<JukeboxQueueEntry>;
|
|
47
|
-
setPausedQueueEntry!: Sequelize.BelongsToSetAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
48
|
-
createPausedQueueEntry!: Sequelize.BelongsToCreateAssociationMixin<JukeboxQueueEntry>;
|
|
49
|
-
// JukeboxUser belongsTo JukeboxSession via jukeboxSessionId
|
|
50
|
-
jukeboxSession!: JukeboxSession;
|
|
51
|
-
getJukeboxSession!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
52
|
-
setJukeboxSession!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
53
|
-
createJukeboxSession!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
54
|
-
// JukeboxUser belongsTo JukeboxUserType via jukeboxUserTypeId
|
|
55
|
-
jukeboxUserType!: JukeboxUserType;
|
|
56
|
-
getJukeboxUserType!: Sequelize.BelongsToGetAssociationMixin<JukeboxUserType>;
|
|
57
|
-
setJukeboxUserType!: Sequelize.BelongsToSetAssociationMixin<JukeboxUserType, JukeboxUserTypeId>;
|
|
58
|
-
createJukeboxUserType!: Sequelize.BelongsToCreateAssociationMixin<JukeboxUserType>;
|
|
59
|
-
// JukeboxUser belongsTo PauseStatusType via pauseStatusTypeId
|
|
60
|
-
pauseStatusType!: PauseStatusType;
|
|
61
|
-
getPauseStatusType!: Sequelize.BelongsToGetAssociationMixin<PauseStatusType>;
|
|
62
|
-
setPauseStatusType!: Sequelize.BelongsToSetAssociationMixin<PauseStatusType, PauseStatusTypeId>;
|
|
63
|
-
createPauseStatusType!: Sequelize.BelongsToCreateAssociationMixin<PauseStatusType>;
|
|
64
|
-
|
|
65
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxUser {
|
|
66
|
-
return JukeboxUser.init({
|
|
67
|
-
jukeboxSessionId: {
|
|
68
|
-
type: DataTypes.UUID,
|
|
69
|
-
allowNull: false,
|
|
70
|
-
references: {
|
|
71
|
-
model: 'jukebox_session',
|
|
72
|
-
key: 'id'
|
|
73
|
-
},
|
|
74
|
-
unique: "unique_jukebox_user_id",
|
|
75
|
-
field: 'jukebox_session_id'
|
|
76
|
-
},
|
|
77
|
-
appUserId: {
|
|
78
|
-
type: DataTypes.UUID,
|
|
79
|
-
allowNull: false,
|
|
80
|
-
references: {
|
|
81
|
-
model: 'app_user',
|
|
82
|
-
key: 'id'
|
|
83
|
-
},
|
|
84
|
-
unique: "unique_jukebox_user_id",
|
|
85
|
-
field: 'app_user_id'
|
|
86
|
-
},
|
|
87
|
-
exitDate: {
|
|
88
|
-
type: DataTypes.DATE,
|
|
89
|
-
allowNull: true,
|
|
90
|
-
field: 'exit_date'
|
|
91
|
-
},
|
|
92
|
-
pausedQueueEntryId: {
|
|
93
|
-
type: DataTypes.UUID,
|
|
94
|
-
allowNull: true,
|
|
95
|
-
references: {
|
|
96
|
-
model: 'jukebox_queue_entry',
|
|
97
|
-
key: 'id'
|
|
98
|
-
},
|
|
99
|
-
field: 'paused_queue_entry_id'
|
|
100
|
-
},
|
|
101
|
-
id: {
|
|
102
|
-
type: DataTypes.UUID,
|
|
103
|
-
allowNull: false,
|
|
104
|
-
defaultValue: DataTypes.UUIDV4,
|
|
105
|
-
primaryKey: true
|
|
106
|
-
},
|
|
107
|
-
createdAt: {
|
|
108
|
-
type: DataTypes.DATE,
|
|
109
|
-
allowNull: false,
|
|
110
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
111
|
-
field: 'created_at'
|
|
112
|
-
},
|
|
113
|
-
updatedAt: {
|
|
114
|
-
type: DataTypes.DATE,
|
|
115
|
-
allowNull: false,
|
|
116
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
117
|
-
field: 'updated_at'
|
|
118
|
-
},
|
|
119
|
-
enterDate: {
|
|
120
|
-
type: DataTypes.DATE,
|
|
121
|
-
allowNull: false,
|
|
122
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
123
|
-
field: 'enter_date'
|
|
124
|
-
},
|
|
125
|
-
jukeboxUserTypeId: {
|
|
126
|
-
type: DataTypes.SMALLINT,
|
|
127
|
-
allowNull: false,
|
|
128
|
-
defaultValue: 0,
|
|
129
|
-
references: {
|
|
130
|
-
model: 'jukebox_user_type',
|
|
131
|
-
key: 'id'
|
|
132
|
-
},
|
|
133
|
-
field: 'jukebox_user_type_id'
|
|
134
|
-
},
|
|
135
|
-
pauseStatusTypeId: {
|
|
136
|
-
type: DataTypes.SMALLINT,
|
|
137
|
-
allowNull: false,
|
|
138
|
-
defaultValue: 0,
|
|
139
|
-
references: {
|
|
140
|
-
model: 'pause_status_type',
|
|
141
|
-
key: 'id'
|
|
142
|
-
},
|
|
143
|
-
field: 'pause_status_type_id'
|
|
144
|
-
}
|
|
145
|
-
}, {
|
|
146
|
-
sequelize,
|
|
147
|
-
tableName: 'jukebox_user',
|
|
148
|
-
schema: 'eb',
|
|
149
|
-
timestamps: false,
|
|
150
|
-
indexes: [
|
|
151
|
-
{
|
|
152
|
-
name: "idx_jukebox_user_app_user",
|
|
153
|
-
fields: [
|
|
154
|
-
{ name: "app_user_id" },
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: "idx_jukebox_user_one_active_per_user",
|
|
159
|
-
unique: true,
|
|
160
|
-
fields: [
|
|
161
|
-
{ name: "app_user_id" },
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: "jukebox_user_pkey",
|
|
166
|
-
unique: true,
|
|
167
|
-
fields: [
|
|
168
|
-
{ name: "id" },
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: "unique_jukebox_user_id",
|
|
173
|
-
unique: true,
|
|
174
|
-
fields: [
|
|
175
|
-
{ name: "jukebox_session_id" },
|
|
176
|
-
{ name: "app_user_id" },
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
]
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { JukeboxUser, JukeboxUserId } from './JukeboxUser';
|
|
4
|
-
|
|
5
|
-
export interface JukeboxUserTypeAttributes {
|
|
6
|
-
id: number;
|
|
7
|
-
description: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type JukeboxUserTypePk = "id";
|
|
11
|
-
export type JukeboxUserTypeId = JukeboxUserType[JukeboxUserTypePk];
|
|
12
|
-
export type JukeboxUserTypeCreationAttributes = JukeboxUserTypeAttributes;
|
|
13
|
-
|
|
14
|
-
export class JukeboxUserType extends Model<JukeboxUserTypeAttributes, JukeboxUserTypeCreationAttributes> implements JukeboxUserTypeAttributes {
|
|
15
|
-
id!: number;
|
|
16
|
-
description!: string;
|
|
17
|
-
|
|
18
|
-
// JukeboxUserType hasMany JukeboxUser via jukeboxUserTypeId
|
|
19
|
-
jukeboxUsers!: JukeboxUser[];
|
|
20
|
-
getJukeboxUsers!: Sequelize.HasManyGetAssociationsMixin<JukeboxUser>;
|
|
21
|
-
setJukeboxUsers!: Sequelize.HasManySetAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
22
|
-
addJukeboxUser!: Sequelize.HasManyAddAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
23
|
-
addJukeboxUsers!: Sequelize.HasManyAddAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
24
|
-
createJukeboxUser!: Sequelize.HasManyCreateAssociationMixin<JukeboxUser>;
|
|
25
|
-
removeJukeboxUser!: Sequelize.HasManyRemoveAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
26
|
-
removeJukeboxUsers!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
27
|
-
hasJukeboxUser!: Sequelize.HasManyHasAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
28
|
-
hasJukeboxUsers!: Sequelize.HasManyHasAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
29
|
-
countJukeboxUsers!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxUserType {
|
|
32
|
-
return JukeboxUserType.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: 'jukebox_user_type',
|
|
45
|
-
schema: 'eb',
|
|
46
|
-
timestamps: false,
|
|
47
|
-
indexes: [
|
|
48
|
-
{
|
|
49
|
-
name: "jukebox_user_type_pkey",
|
|
50
|
-
unique: true,
|
|
51
|
-
fields: [
|
|
52
|
-
{ name: "id" },
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
package/models/KnexMigrations.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
|
|
4
|
-
export interface KnexMigrationsAttributes {
|
|
5
|
-
name?: string;
|
|
6
|
-
batch?: number;
|
|
7
|
-
migrationTime?: Date;
|
|
8
|
-
id: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type KnexMigrationsPk = "id";
|
|
12
|
-
export type KnexMigrationsId = KnexMigrations[KnexMigrationsPk];
|
|
13
|
-
export type KnexMigrationsOptionalAttributes = "name" | "batch" | "migrationTime" | "id";
|
|
14
|
-
export type KnexMigrationsCreationAttributes = Optional<KnexMigrationsAttributes, KnexMigrationsOptionalAttributes>;
|
|
15
|
-
|
|
16
|
-
export class KnexMigrations extends Model<KnexMigrationsAttributes, KnexMigrationsCreationAttributes> implements KnexMigrationsAttributes {
|
|
17
|
-
name?: string;
|
|
18
|
-
batch?: number;
|
|
19
|
-
migrationTime?: Date;
|
|
20
|
-
id!: number;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof KnexMigrations {
|
|
24
|
-
return KnexMigrations.init({
|
|
25
|
-
name: {
|
|
26
|
-
type: DataTypes.STRING(255),
|
|
27
|
-
allowNull: true
|
|
28
|
-
},
|
|
29
|
-
batch: {
|
|
30
|
-
type: DataTypes.INTEGER,
|
|
31
|
-
allowNull: true
|
|
32
|
-
},
|
|
33
|
-
migrationTime: {
|
|
34
|
-
type: DataTypes.DATE,
|
|
35
|
-
allowNull: true,
|
|
36
|
-
field: 'migration_time'
|
|
37
|
-
},
|
|
38
|
-
id: {
|
|
39
|
-
autoIncrement: true,
|
|
40
|
-
type: DataTypes.INTEGER,
|
|
41
|
-
allowNull: false,
|
|
42
|
-
primaryKey: true
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
sequelize,
|
|
46
|
-
tableName: 'knex_migrations',
|
|
47
|
-
schema: 'public',
|
|
48
|
-
timestamps: false,
|
|
49
|
-
indexes: [
|
|
50
|
-
{
|
|
51
|
-
name: "knex_migrations_pkey",
|
|
52
|
-
unique: true,
|
|
53
|
-
fields: [
|
|
54
|
-
{ name: "id" },
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
|
|
4
|
-
export interface KnexMigrationsLockAttributes {
|
|
5
|
-
isLocked?: number;
|
|
6
|
-
index: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type KnexMigrationsLockPk = "index";
|
|
10
|
-
export type KnexMigrationsLockId = KnexMigrationsLock[KnexMigrationsLockPk];
|
|
11
|
-
export type KnexMigrationsLockOptionalAttributes = "isLocked" | "index";
|
|
12
|
-
export type KnexMigrationsLockCreationAttributes = Optional<KnexMigrationsLockAttributes, KnexMigrationsLockOptionalAttributes>;
|
|
13
|
-
|
|
14
|
-
export class KnexMigrationsLock extends Model<KnexMigrationsLockAttributes, KnexMigrationsLockCreationAttributes> implements KnexMigrationsLockAttributes {
|
|
15
|
-
isLocked?: number;
|
|
16
|
-
index!: number;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof KnexMigrationsLock {
|
|
20
|
-
return KnexMigrationsLock.init({
|
|
21
|
-
isLocked: {
|
|
22
|
-
type: DataTypes.INTEGER,
|
|
23
|
-
allowNull: true,
|
|
24
|
-
field: 'is_locked'
|
|
25
|
-
},
|
|
26
|
-
index: {
|
|
27
|
-
autoIncrement: true,
|
|
28
|
-
type: DataTypes.INTEGER,
|
|
29
|
-
allowNull: false,
|
|
30
|
-
primaryKey: true
|
|
31
|
-
}
|
|
32
|
-
}, {
|
|
33
|
-
sequelize,
|
|
34
|
-
tableName: 'knex_migrations_lock',
|
|
35
|
-
schema: 'public',
|
|
36
|
-
timestamps: false,
|
|
37
|
-
indexes: [
|
|
38
|
-
{
|
|
39
|
-
name: "knex_migrations_lock_pkey",
|
|
40
|
-
unique: true,
|
|
41
|
-
fields: [
|
|
42
|
-
{ name: "index" },
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
]
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
package/models/MerchItem.ts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
|
-
import type { MerchPlatform, MerchPlatformId } from './MerchPlatform';
|
|
5
|
-
import type { MerchType, MerchTypeId } from './MerchType';
|
|
6
|
-
import type { UserBookmarks, UserBookmarksId } from './UserBookmarks';
|
|
7
|
-
import type { UserComments, UserCommentsId } from './UserComments';
|
|
8
|
-
import type { UserLikes, UserLikesId } from './UserLikes';
|
|
9
|
-
|
|
10
|
-
export interface MerchItemAttributes {
|
|
11
|
-
canonArtistId: string;
|
|
12
|
-
merchTypeId: string;
|
|
13
|
-
merchPlatformId: string;
|
|
14
|
-
merchItemPlatformId: string;
|
|
15
|
-
title: string;
|
|
16
|
-
description: string;
|
|
17
|
-
photo?: string;
|
|
18
|
-
popularity?: number;
|
|
19
|
-
id: string;
|
|
20
|
-
inactive?: boolean;
|
|
21
|
-
createDate: Date;
|
|
22
|
-
updateDate: Date;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type MerchItemPk = "id";
|
|
26
|
-
export type MerchItemId = MerchItem[MerchItemPk];
|
|
27
|
-
export type MerchItemOptionalAttributes = "photo" | "popularity" | "id" | "inactive" | "createDate" | "updateDate";
|
|
28
|
-
export type MerchItemCreationAttributes = Optional<MerchItemAttributes, MerchItemOptionalAttributes>;
|
|
29
|
-
|
|
30
|
-
export class MerchItem extends Model<MerchItemAttributes, MerchItemCreationAttributes> implements MerchItemAttributes {
|
|
31
|
-
canonArtistId!: string;
|
|
32
|
-
merchTypeId!: string;
|
|
33
|
-
merchPlatformId!: string;
|
|
34
|
-
merchItemPlatformId!: string;
|
|
35
|
-
title!: string;
|
|
36
|
-
description!: string;
|
|
37
|
-
photo?: string;
|
|
38
|
-
popularity?: number;
|
|
39
|
-
id!: string;
|
|
40
|
-
inactive?: boolean;
|
|
41
|
-
createDate!: Date;
|
|
42
|
-
updateDate!: Date;
|
|
43
|
-
|
|
44
|
-
// MerchItem belongsTo CanonArtist via canonArtistId
|
|
45
|
-
canonArtist!: CanonArtist;
|
|
46
|
-
getCanonArtist!: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
|
|
47
|
-
setCanonArtist!: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
|
|
48
|
-
createCanonArtist!: Sequelize.BelongsToCreateAssociationMixin<CanonArtist>;
|
|
49
|
-
// MerchItem hasMany UserBookmarks via merchItemId
|
|
50
|
-
userBookmarks!: UserBookmarks[];
|
|
51
|
-
getUserBookmarks!: Sequelize.HasManyGetAssociationsMixin<UserBookmarks>;
|
|
52
|
-
setUserBookmarks!: Sequelize.HasManySetAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
53
|
-
addUserBookmark!: Sequelize.HasManyAddAssociationMixin<UserBookmarks, UserBookmarksId>;
|
|
54
|
-
addUserBookmarks!: Sequelize.HasManyAddAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
55
|
-
createUserBookmark!: Sequelize.HasManyCreateAssociationMixin<UserBookmarks>;
|
|
56
|
-
removeUserBookmark!: Sequelize.HasManyRemoveAssociationMixin<UserBookmarks, UserBookmarksId>;
|
|
57
|
-
removeUserBookmarks!: Sequelize.HasManyRemoveAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
58
|
-
hasUserBookmark!: Sequelize.HasManyHasAssociationMixin<UserBookmarks, UserBookmarksId>;
|
|
59
|
-
hasUserBookmarks!: Sequelize.HasManyHasAssociationsMixin<UserBookmarks, UserBookmarksId>;
|
|
60
|
-
countUserBookmarks!: Sequelize.HasManyCountAssociationsMixin;
|
|
61
|
-
// MerchItem hasMany UserComments via merchItemId
|
|
62
|
-
userComments!: UserComments[];
|
|
63
|
-
getUserComments!: Sequelize.HasManyGetAssociationsMixin<UserComments>;
|
|
64
|
-
setUserComments!: Sequelize.HasManySetAssociationsMixin<UserComments, UserCommentsId>;
|
|
65
|
-
addUserComment!: Sequelize.HasManyAddAssociationMixin<UserComments, UserCommentsId>;
|
|
66
|
-
addUserComments!: Sequelize.HasManyAddAssociationsMixin<UserComments, UserCommentsId>;
|
|
67
|
-
createUserComment!: Sequelize.HasManyCreateAssociationMixin<UserComments>;
|
|
68
|
-
removeUserComment!: Sequelize.HasManyRemoveAssociationMixin<UserComments, UserCommentsId>;
|
|
69
|
-
removeUserComments!: Sequelize.HasManyRemoveAssociationsMixin<UserComments, UserCommentsId>;
|
|
70
|
-
hasUserComment!: Sequelize.HasManyHasAssociationMixin<UserComments, UserCommentsId>;
|
|
71
|
-
hasUserComments!: Sequelize.HasManyHasAssociationsMixin<UserComments, UserCommentsId>;
|
|
72
|
-
countUserComments!: Sequelize.HasManyCountAssociationsMixin;
|
|
73
|
-
// MerchItem hasMany UserLikes via merchItemId
|
|
74
|
-
userLikes!: UserLikes[];
|
|
75
|
-
getUserLikes!: Sequelize.HasManyGetAssociationsMixin<UserLikes>;
|
|
76
|
-
setUserLikes!: Sequelize.HasManySetAssociationsMixin<UserLikes, UserLikesId>;
|
|
77
|
-
addUserLike!: Sequelize.HasManyAddAssociationMixin<UserLikes, UserLikesId>;
|
|
78
|
-
addUserLikes!: Sequelize.HasManyAddAssociationsMixin<UserLikes, UserLikesId>;
|
|
79
|
-
createUserLike!: Sequelize.HasManyCreateAssociationMixin<UserLikes>;
|
|
80
|
-
removeUserLike!: Sequelize.HasManyRemoveAssociationMixin<UserLikes, UserLikesId>;
|
|
81
|
-
removeUserLikes!: Sequelize.HasManyRemoveAssociationsMixin<UserLikes, UserLikesId>;
|
|
82
|
-
hasUserLike!: Sequelize.HasManyHasAssociationMixin<UserLikes, UserLikesId>;
|
|
83
|
-
hasUserLikes!: Sequelize.HasManyHasAssociationsMixin<UserLikes, UserLikesId>;
|
|
84
|
-
countUserLikes!: Sequelize.HasManyCountAssociationsMixin;
|
|
85
|
-
// MerchItem belongsTo MerchPlatform via merchPlatformId
|
|
86
|
-
merchPlatform!: MerchPlatform;
|
|
87
|
-
getMerchPlatform!: Sequelize.BelongsToGetAssociationMixin<MerchPlatform>;
|
|
88
|
-
setMerchPlatform!: Sequelize.BelongsToSetAssociationMixin<MerchPlatform, MerchPlatformId>;
|
|
89
|
-
createMerchPlatform!: Sequelize.BelongsToCreateAssociationMixin<MerchPlatform>;
|
|
90
|
-
// MerchItem belongsTo MerchType via merchTypeId
|
|
91
|
-
merchType!: MerchType;
|
|
92
|
-
getMerchType!: Sequelize.BelongsToGetAssociationMixin<MerchType>;
|
|
93
|
-
setMerchType!: Sequelize.BelongsToSetAssociationMixin<MerchType, MerchTypeId>;
|
|
94
|
-
createMerchType!: Sequelize.BelongsToCreateAssociationMixin<MerchType>;
|
|
95
|
-
|
|
96
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof MerchItem {
|
|
97
|
-
return MerchItem.init({
|
|
98
|
-
canonArtistId: {
|
|
99
|
-
type: DataTypes.UUID,
|
|
100
|
-
allowNull: false,
|
|
101
|
-
references: {
|
|
102
|
-
model: 'canon_artist',
|
|
103
|
-
key: 'id'
|
|
104
|
-
},
|
|
105
|
-
field: 'canon_artist_id'
|
|
106
|
-
},
|
|
107
|
-
merchTypeId: {
|
|
108
|
-
type: DataTypes.UUID,
|
|
109
|
-
allowNull: false,
|
|
110
|
-
references: {
|
|
111
|
-
model: 'merch_type',
|
|
112
|
-
key: 'id'
|
|
113
|
-
},
|
|
114
|
-
field: 'merch_type_id'
|
|
115
|
-
},
|
|
116
|
-
merchPlatformId: {
|
|
117
|
-
type: DataTypes.UUID,
|
|
118
|
-
allowNull: false,
|
|
119
|
-
references: {
|
|
120
|
-
model: 'merch_platform',
|
|
121
|
-
key: 'id'
|
|
122
|
-
},
|
|
123
|
-
field: 'merch_platform_id'
|
|
124
|
-
},
|
|
125
|
-
merchItemPlatformId: {
|
|
126
|
-
type: DataTypes.TEXT,
|
|
127
|
-
allowNull: false,
|
|
128
|
-
field: 'merch_item_platform_id'
|
|
129
|
-
},
|
|
130
|
-
title: {
|
|
131
|
-
type: DataTypes.TEXT,
|
|
132
|
-
allowNull: false
|
|
133
|
-
},
|
|
134
|
-
description: {
|
|
135
|
-
type: DataTypes.TEXT,
|
|
136
|
-
allowNull: false
|
|
137
|
-
},
|
|
138
|
-
photo: {
|
|
139
|
-
type: DataTypes.TEXT,
|
|
140
|
-
allowNull: true
|
|
141
|
-
},
|
|
142
|
-
popularity: {
|
|
143
|
-
type: DataTypes.SMALLINT,
|
|
144
|
-
allowNull: true
|
|
145
|
-
},
|
|
146
|
-
id: {
|
|
147
|
-
type: DataTypes.UUID,
|
|
148
|
-
allowNull: false,
|
|
149
|
-
defaultValue: DataTypes.UUIDV4,
|
|
150
|
-
primaryKey: true
|
|
151
|
-
},
|
|
152
|
-
inactive: {
|
|
153
|
-
type: DataTypes.BOOLEAN,
|
|
154
|
-
allowNull: true,
|
|
155
|
-
defaultValue: false
|
|
156
|
-
},
|
|
157
|
-
createDate: {
|
|
158
|
-
type: DataTypes.DATE,
|
|
159
|
-
allowNull: false,
|
|
160
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
161
|
-
field: 'create_date'
|
|
162
|
-
},
|
|
163
|
-
updateDate: {
|
|
164
|
-
type: DataTypes.DATE,
|
|
165
|
-
allowNull: false,
|
|
166
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
167
|
-
field: 'update_date'
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
sequelize,
|
|
171
|
-
tableName: 'merch_item',
|
|
172
|
-
schema: 'eb',
|
|
173
|
-
timestamps: false,
|
|
174
|
-
indexes: [
|
|
175
|
-
{
|
|
176
|
-
name: "idx_merch_item_artist",
|
|
177
|
-
fields: [
|
|
178
|
-
{ name: "canon_artist_id" },
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: "idx_merch_item_artist_create_date",
|
|
183
|
-
fields: [
|
|
184
|
-
{ name: "canon_artist_id" },
|
|
185
|
-
{ name: "create_date", order: "DESC" },
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
name: "merch_item_pkey",
|
|
190
|
-
unique: true,
|
|
191
|
-
fields: [
|
|
192
|
-
{ name: "id" },
|
|
193
|
-
]
|
|
194
|
-
},
|
|
195
|
-
]
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|