@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
package/models/AppUserDevice.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
|
|
5
|
-
export interface AppUserDeviceAttributes {
|
|
6
|
-
id: string;
|
|
7
|
-
createdAt: Date;
|
|
8
|
-
appUserId: string;
|
|
9
|
-
devicePlatformId: number;
|
|
10
|
-
endpointArn: string;
|
|
11
|
-
platformApplicationArn?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type AppUserDevicePk = "id";
|
|
15
|
-
export type AppUserDeviceId = AppUserDevice[AppUserDevicePk];
|
|
16
|
-
export type AppUserDeviceOptionalAttributes = "id" | "createdAt" | "platformApplicationArn";
|
|
17
|
-
export type AppUserDeviceCreationAttributes = Optional<AppUserDeviceAttributes, AppUserDeviceOptionalAttributes>;
|
|
18
|
-
|
|
19
|
-
export class AppUserDevice extends Model<AppUserDeviceAttributes, AppUserDeviceCreationAttributes> implements AppUserDeviceAttributes {
|
|
20
|
-
id!: string;
|
|
21
|
-
createdAt!: Date;
|
|
22
|
-
appUserId!: string;
|
|
23
|
-
devicePlatformId!: number;
|
|
24
|
-
endpointArn!: string;
|
|
25
|
-
platformApplicationArn?: string;
|
|
26
|
-
|
|
27
|
-
// AppUserDevice belongsTo AppUser via appUserId
|
|
28
|
-
appUser!: AppUser;
|
|
29
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
30
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
31
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
32
|
-
|
|
33
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof AppUserDevice {
|
|
34
|
-
return AppUserDevice.init({
|
|
35
|
-
id: {
|
|
36
|
-
type: DataTypes.UUID,
|
|
37
|
-
allowNull: false,
|
|
38
|
-
defaultValue: DataTypes.UUIDV4,
|
|
39
|
-
primaryKey: true
|
|
40
|
-
},
|
|
41
|
-
createdAt: {
|
|
42
|
-
type: DataTypes.DATE,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
45
|
-
field: 'created_at'
|
|
46
|
-
},
|
|
47
|
-
appUserId: {
|
|
48
|
-
type: DataTypes.UUID,
|
|
49
|
-
allowNull: false,
|
|
50
|
-
references: {
|
|
51
|
-
model: 'app_user',
|
|
52
|
-
key: 'id'
|
|
53
|
-
},
|
|
54
|
-
field: 'app_user_id'
|
|
55
|
-
},
|
|
56
|
-
devicePlatformId: {
|
|
57
|
-
type: DataTypes.SMALLINT,
|
|
58
|
-
allowNull: false,
|
|
59
|
-
field: 'device_platform_id'
|
|
60
|
-
},
|
|
61
|
-
endpointArn: {
|
|
62
|
-
type: DataTypes.TEXT,
|
|
63
|
-
allowNull: false,
|
|
64
|
-
unique: "unique_app_user_device_endpoint_arn",
|
|
65
|
-
field: 'endpoint_arn'
|
|
66
|
-
},
|
|
67
|
-
platformApplicationArn: {
|
|
68
|
-
type: DataTypes.TEXT,
|
|
69
|
-
allowNull: true,
|
|
70
|
-
field: 'platform_application_arn'
|
|
71
|
-
}
|
|
72
|
-
}, {
|
|
73
|
-
sequelize,
|
|
74
|
-
tableName: 'app_user_device',
|
|
75
|
-
schema: 'eb',
|
|
76
|
-
timestamps: false,
|
|
77
|
-
indexes: [
|
|
78
|
-
{
|
|
79
|
-
name: "app_user_device_pkey",
|
|
80
|
-
unique: true,
|
|
81
|
-
fields: [
|
|
82
|
-
{ name: "id" },
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: "idx_app_user_device_user",
|
|
87
|
-
fields: [
|
|
88
|
-
{ name: "app_user_id" },
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "unique_app_user_device_endpoint_arn",
|
|
93
|
-
unique: true,
|
|
94
|
-
fields: [
|
|
95
|
-
{ name: "endpoint_arn" },
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
]
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
|
|
5
|
-
export interface AppUserFollowRelationAttributes {
|
|
6
|
-
appUserId: string;
|
|
7
|
-
followingAppUserId: string;
|
|
8
|
-
stateId: number;
|
|
9
|
-
isBlocked: boolean;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
updatedAt: Date;
|
|
12
|
-
id: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type AppUserFollowRelationPk = "id";
|
|
16
|
-
export type AppUserFollowRelationId = AppUserFollowRelation[AppUserFollowRelationPk];
|
|
17
|
-
export type AppUserFollowRelationOptionalAttributes = "stateId" | "createdAt" | "updatedAt" | "id";
|
|
18
|
-
export type AppUserFollowRelationCreationAttributes = Optional<AppUserFollowRelationAttributes, AppUserFollowRelationOptionalAttributes>;
|
|
19
|
-
|
|
20
|
-
export class AppUserFollowRelation extends Model<AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes> implements AppUserFollowRelationAttributes {
|
|
21
|
-
appUserId!: string;
|
|
22
|
-
followingAppUserId!: string;
|
|
23
|
-
stateId!: number;
|
|
24
|
-
isBlocked!: boolean;
|
|
25
|
-
createdAt!: Date;
|
|
26
|
-
updatedAt!: Date;
|
|
27
|
-
id!: string;
|
|
28
|
-
|
|
29
|
-
// AppUserFollowRelation belongsTo AppUser via appUserId
|
|
30
|
-
appUser!: AppUser;
|
|
31
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
32
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
33
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
34
|
-
// AppUserFollowRelation belongsTo AppUser via followingAppUserId
|
|
35
|
-
followingAppUser!: AppUser;
|
|
36
|
-
getFollowingAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
37
|
-
setFollowingAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
38
|
-
createFollowingAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
39
|
-
|
|
40
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof AppUserFollowRelation {
|
|
41
|
-
return AppUserFollowRelation.init({
|
|
42
|
-
appUserId: {
|
|
43
|
-
type: DataTypes.UUID,
|
|
44
|
-
allowNull: false,
|
|
45
|
-
references: {
|
|
46
|
-
model: 'app_user',
|
|
47
|
-
key: 'id'
|
|
48
|
-
},
|
|
49
|
-
unique: "unique_app_user_followers",
|
|
50
|
-
field: 'app_user_id'
|
|
51
|
-
},
|
|
52
|
-
followingAppUserId: {
|
|
53
|
-
type: DataTypes.UUID,
|
|
54
|
-
allowNull: false,
|
|
55
|
-
references: {
|
|
56
|
-
model: 'app_user',
|
|
57
|
-
key: 'id'
|
|
58
|
-
},
|
|
59
|
-
unique: "unique_app_user_followers",
|
|
60
|
-
field: 'following_app_user_id'
|
|
61
|
-
},
|
|
62
|
-
stateId: {
|
|
63
|
-
type: DataTypes.SMALLINT,
|
|
64
|
-
allowNull: false,
|
|
65
|
-
defaultValue: 0,
|
|
66
|
-
field: 'state_id'
|
|
67
|
-
},
|
|
68
|
-
isBlocked: {
|
|
69
|
-
type: DataTypes.BOOLEAN,
|
|
70
|
-
allowNull: false,
|
|
71
|
-
defaultValue: false,
|
|
72
|
-
field: 'is_blocked'
|
|
73
|
-
},
|
|
74
|
-
createdAt: {
|
|
75
|
-
type: DataTypes.DATE,
|
|
76
|
-
allowNull: false,
|
|
77
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
78
|
-
field: 'created_at'
|
|
79
|
-
},
|
|
80
|
-
updatedAt: {
|
|
81
|
-
type: DataTypes.DATE,
|
|
82
|
-
allowNull: false,
|
|
83
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
84
|
-
field: 'updated_at'
|
|
85
|
-
},
|
|
86
|
-
id: {
|
|
87
|
-
type: DataTypes.UUID,
|
|
88
|
-
allowNull: false,
|
|
89
|
-
defaultValue: DataTypes.UUIDV4,
|
|
90
|
-
primaryKey: true
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
sequelize,
|
|
94
|
-
tableName: 'app_user_follow_relation',
|
|
95
|
-
schema: 'eb',
|
|
96
|
-
timestamps: false,
|
|
97
|
-
indexes: [
|
|
98
|
-
{
|
|
99
|
-
name: "app_user_follow_relation_pkey",
|
|
100
|
-
unique: true,
|
|
101
|
-
fields: [
|
|
102
|
-
{ name: "id" },
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "app_user_id",
|
|
107
|
-
fields: [
|
|
108
|
-
{ name: "app_user_id" },
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "idx_follow_relation_following",
|
|
113
|
-
fields: [
|
|
114
|
-
{ name: "following_app_user_id" },
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: "unique_app_user_followers",
|
|
119
|
-
unique: true,
|
|
120
|
-
fields: [
|
|
121
|
-
{ name: "app_user_id" },
|
|
122
|
-
{ name: "following_app_user_id" },
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
]
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
@@ -1,150 +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 { Platform, PlatformId } from './Platform';
|
|
5
|
-
|
|
6
|
-
export interface AppUserPlatformRelationAttributes {
|
|
7
|
-
appUserId: string;
|
|
8
|
-
platformId: number;
|
|
9
|
-
externalUserId: string;
|
|
10
|
-
accessToken: string;
|
|
11
|
-
refreshToken?: string;
|
|
12
|
-
expirationDate: Date;
|
|
13
|
-
countryCode: string;
|
|
14
|
-
id: string;
|
|
15
|
-
createDate: Date;
|
|
16
|
-
updateDate: Date;
|
|
17
|
-
stateId: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type AppUserPlatformRelationPk = "id";
|
|
21
|
-
export type AppUserPlatformRelationId = AppUserPlatformRelation[AppUserPlatformRelationPk];
|
|
22
|
-
export type AppUserPlatformRelationOptionalAttributes = "refreshToken" | "id" | "createDate" | "updateDate" | "stateId";
|
|
23
|
-
export type AppUserPlatformRelationCreationAttributes = Optional<AppUserPlatformRelationAttributes, AppUserPlatformRelationOptionalAttributes>;
|
|
24
|
-
|
|
25
|
-
export class AppUserPlatformRelation extends Model<AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes> implements AppUserPlatformRelationAttributes {
|
|
26
|
-
appUserId!: string;
|
|
27
|
-
platformId!: number;
|
|
28
|
-
externalUserId!: string;
|
|
29
|
-
accessToken!: string;
|
|
30
|
-
refreshToken?: string;
|
|
31
|
-
expirationDate!: Date;
|
|
32
|
-
countryCode!: string;
|
|
33
|
-
id!: string;
|
|
34
|
-
createDate!: Date;
|
|
35
|
-
updateDate!: Date;
|
|
36
|
-
stateId!: number;
|
|
37
|
-
|
|
38
|
-
// AppUserPlatformRelation belongsTo AppUser via appUserId
|
|
39
|
-
appUser!: AppUser;
|
|
40
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
41
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
42
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
43
|
-
// AppUserPlatformRelation belongsTo Platform via platformId
|
|
44
|
-
platform!: Platform;
|
|
45
|
-
getPlatform!: Sequelize.BelongsToGetAssociationMixin<Platform>;
|
|
46
|
-
setPlatform!: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
|
|
47
|
-
createPlatform!: Sequelize.BelongsToCreateAssociationMixin<Platform>;
|
|
48
|
-
|
|
49
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof AppUserPlatformRelation {
|
|
50
|
-
return AppUserPlatformRelation.init({
|
|
51
|
-
appUserId: {
|
|
52
|
-
type: DataTypes.UUID,
|
|
53
|
-
allowNull: false,
|
|
54
|
-
references: {
|
|
55
|
-
model: 'app_user',
|
|
56
|
-
key: 'id'
|
|
57
|
-
},
|
|
58
|
-
unique: "uk_platform_relation_app_user_id",
|
|
59
|
-
field: 'app_user_id'
|
|
60
|
-
},
|
|
61
|
-
platformId: {
|
|
62
|
-
type: DataTypes.SMALLINT,
|
|
63
|
-
allowNull: false,
|
|
64
|
-
references: {
|
|
65
|
-
model: 'platform',
|
|
66
|
-
key: 'id'
|
|
67
|
-
},
|
|
68
|
-
field: 'platform_id'
|
|
69
|
-
},
|
|
70
|
-
externalUserId: {
|
|
71
|
-
type: DataTypes.TEXT,
|
|
72
|
-
allowNull: false,
|
|
73
|
-
field: 'external_user_id'
|
|
74
|
-
},
|
|
75
|
-
accessToken: {
|
|
76
|
-
type: DataTypes.STRING,
|
|
77
|
-
allowNull: false,
|
|
78
|
-
field: 'access_token'
|
|
79
|
-
},
|
|
80
|
-
refreshToken: {
|
|
81
|
-
type: DataTypes.STRING,
|
|
82
|
-
allowNull: true,
|
|
83
|
-
field: 'refresh_token'
|
|
84
|
-
},
|
|
85
|
-
expirationDate: {
|
|
86
|
-
type: DataTypes.DATE,
|
|
87
|
-
allowNull: false,
|
|
88
|
-
field: 'expiration_date'
|
|
89
|
-
},
|
|
90
|
-
countryCode: {
|
|
91
|
-
type: DataTypes.STRING(2),
|
|
92
|
-
allowNull: false,
|
|
93
|
-
field: 'country_code'
|
|
94
|
-
},
|
|
95
|
-
id: {
|
|
96
|
-
type: DataTypes.UUID,
|
|
97
|
-
allowNull: false,
|
|
98
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
99
|
-
primaryKey: true
|
|
100
|
-
},
|
|
101
|
-
createDate: {
|
|
102
|
-
type: DataTypes.DATE,
|
|
103
|
-
allowNull: false,
|
|
104
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
105
|
-
field: 'create_date'
|
|
106
|
-
},
|
|
107
|
-
updateDate: {
|
|
108
|
-
type: DataTypes.DATE,
|
|
109
|
-
allowNull: false,
|
|
110
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
111
|
-
field: 'update_date'
|
|
112
|
-
},
|
|
113
|
-
stateId: {
|
|
114
|
-
type: DataTypes.SMALLINT,
|
|
115
|
-
allowNull: false,
|
|
116
|
-
defaultValue: 0,
|
|
117
|
-
field: 'state_id'
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
sequelize,
|
|
121
|
-
tableName: 'app_user_platform_relation',
|
|
122
|
-
schema: 'eb',
|
|
123
|
-
timestamps: false,
|
|
124
|
-
indexes: [
|
|
125
|
-
{
|
|
126
|
-
name: "app_user_platform_relation_app_user_id_platform_id_idx",
|
|
127
|
-
unique: true,
|
|
128
|
-
fields: [
|
|
129
|
-
{ name: "app_user_id" },
|
|
130
|
-
{ name: "platform_id" },
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: "app_user_platform_relation_pkey",
|
|
135
|
-
unique: true,
|
|
136
|
-
fields: [
|
|
137
|
-
{ name: "id" },
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "uk_platform_relation_app_user_id",
|
|
142
|
-
unique: true,
|
|
143
|
-
fields: [
|
|
144
|
-
{ name: "app_user_id" },
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
]
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}
|
package/models/CanonAlbum.ts
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId } from './CanonAlbumExternalReferenceRelation';
|
|
4
|
-
import type { CanonAlbumTrackRelation, CanonAlbumTrackRelationId } from './CanonAlbumTrackRelation';
|
|
5
|
-
import type { CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId } from './CanonToPlatformAlbumRelation';
|
|
6
|
-
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
7
|
-
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
8
|
-
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
9
|
-
import type { Versus, VersusId } from './Versus';
|
|
10
|
-
import type { VersusOption, VersusOptionId } from './VersusOption';
|
|
11
|
-
|
|
12
|
-
export interface CanonAlbumAttributes {
|
|
13
|
-
name: string;
|
|
14
|
-
asciiName: string;
|
|
15
|
-
releaseDate?: string;
|
|
16
|
-
noOfDisc?: number;
|
|
17
|
-
description?: string;
|
|
18
|
-
id: string;
|
|
19
|
-
createDate: Date;
|
|
20
|
-
updateDate: Date;
|
|
21
|
-
hasPhoto?: boolean;
|
|
22
|
-
hasThumbnailPhoto?: boolean;
|
|
23
|
-
images?: object;
|
|
24
|
-
lastImageHarvestAttempt?: Date;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type CanonAlbumPk = "id";
|
|
28
|
-
export type CanonAlbumId = CanonAlbum[CanonAlbumPk];
|
|
29
|
-
export type CanonAlbumOptionalAttributes = "releaseDate" | "noOfDisc" | "description" | "id" | "createDate" | "updateDate" | "hasPhoto" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt";
|
|
30
|
-
export type CanonAlbumCreationAttributes = Optional<CanonAlbumAttributes, CanonAlbumOptionalAttributes>;
|
|
31
|
-
|
|
32
|
-
export class CanonAlbum extends Model<CanonAlbumAttributes, CanonAlbumCreationAttributes> implements CanonAlbumAttributes {
|
|
33
|
-
name!: string;
|
|
34
|
-
asciiName!: string;
|
|
35
|
-
releaseDate?: string;
|
|
36
|
-
noOfDisc?: number;
|
|
37
|
-
description?: string;
|
|
38
|
-
id!: string;
|
|
39
|
-
createDate!: Date;
|
|
40
|
-
updateDate!: Date;
|
|
41
|
-
hasPhoto?: boolean;
|
|
42
|
-
hasThumbnailPhoto?: boolean;
|
|
43
|
-
images?: object;
|
|
44
|
-
lastImageHarvestAttempt?: Date;
|
|
45
|
-
|
|
46
|
-
// CanonAlbum hasMany CanonAlbumExternalReferenceRelation via canonAlbumId
|
|
47
|
-
canonAlbumExternalReferenceRelations!: CanonAlbumExternalReferenceRelation[];
|
|
48
|
-
getCanonAlbumExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonAlbumExternalReferenceRelation>;
|
|
49
|
-
setCanonAlbumExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
50
|
-
addCanonAlbumExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
51
|
-
addCanonAlbumExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
52
|
-
createCanonAlbumExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonAlbumExternalReferenceRelation>;
|
|
53
|
-
removeCanonAlbumExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
54
|
-
removeCanonAlbumExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
55
|
-
hasCanonAlbumExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
56
|
-
hasCanonAlbumExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
57
|
-
countCanonAlbumExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
58
|
-
// CanonAlbum hasMany CanonAlbumTrackRelation via canonAlbumId
|
|
59
|
-
canonAlbumTrackRelations!: CanonAlbumTrackRelation[];
|
|
60
|
-
getCanonAlbumTrackRelations!: Sequelize.HasManyGetAssociationsMixin<CanonAlbumTrackRelation>;
|
|
61
|
-
setCanonAlbumTrackRelations!: Sequelize.HasManySetAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
62
|
-
addCanonAlbumTrackRelation!: Sequelize.HasManyAddAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
63
|
-
addCanonAlbumTrackRelations!: Sequelize.HasManyAddAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
64
|
-
createCanonAlbumTrackRelation!: Sequelize.HasManyCreateAssociationMixin<CanonAlbumTrackRelation>;
|
|
65
|
-
removeCanonAlbumTrackRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
66
|
-
removeCanonAlbumTrackRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
67
|
-
hasCanonAlbumTrackRelation!: Sequelize.HasManyHasAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
68
|
-
hasCanonAlbumTrackRelations!: Sequelize.HasManyHasAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
69
|
-
countCanonAlbumTrackRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
70
|
-
// CanonAlbum hasMany CanonToPlatformAlbumRelation via canonAlbumId
|
|
71
|
-
canonToPlatformAlbumRelations!: CanonToPlatformAlbumRelation[];
|
|
72
|
-
getCanonToPlatformAlbumRelations!: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformAlbumRelation>;
|
|
73
|
-
setCanonToPlatformAlbumRelations!: Sequelize.HasManySetAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
74
|
-
addCanonToPlatformAlbumRelation!: Sequelize.HasManyAddAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
75
|
-
addCanonToPlatformAlbumRelations!: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
76
|
-
createCanonToPlatformAlbumRelation!: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformAlbumRelation>;
|
|
77
|
-
removeCanonToPlatformAlbumRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
78
|
-
removeCanonToPlatformAlbumRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
79
|
-
hasCanonToPlatformAlbumRelation!: Sequelize.HasManyHasAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
80
|
-
hasCanonToPlatformAlbumRelations!: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
81
|
-
countCanonToPlatformAlbumRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
82
|
-
// CanonAlbum belongsToMany CanonTrack via canonAlbumId and canonTrackId
|
|
83
|
-
canonTrackIdCanonTracks!: CanonTrack[];
|
|
84
|
-
getCanonTrackIdCanonTracks!: Sequelize.BelongsToManyGetAssociationsMixin<CanonTrack>;
|
|
85
|
-
setCanonTrackIdCanonTracks!: Sequelize.BelongsToManySetAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
86
|
-
addCanonTrackIdCanonTrack!: Sequelize.BelongsToManyAddAssociationMixin<CanonTrack, CanonTrackId>;
|
|
87
|
-
addCanonTrackIdCanonTracks!: Sequelize.BelongsToManyAddAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
88
|
-
createCanonTrackIdCanonTrack!: Sequelize.BelongsToManyCreateAssociationMixin<CanonTrack>;
|
|
89
|
-
removeCanonTrackIdCanonTrack!: Sequelize.BelongsToManyRemoveAssociationMixin<CanonTrack, CanonTrackId>;
|
|
90
|
-
removeCanonTrackIdCanonTracks!: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
91
|
-
hasCanonTrackIdCanonTrack!: Sequelize.BelongsToManyHasAssociationMixin<CanonTrack, CanonTrackId>;
|
|
92
|
-
hasCanonTrackIdCanonTracks!: Sequelize.BelongsToManyHasAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
93
|
-
countCanonTrackIdCanonTracks!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
94
|
-
// CanonAlbum belongsToMany ExternalReference via canonAlbumId and externalReferenceId
|
|
95
|
-
externalReferenceIdExternalReferences!: ExternalReference[];
|
|
96
|
-
getExternalReferenceIdExternalReferences!: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
97
|
-
setExternalReferenceIdExternalReferences!: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
98
|
-
addExternalReferenceIdExternalReference!: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
99
|
-
addExternalReferenceIdExternalReferences!: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
100
|
-
createExternalReferenceIdExternalReference!: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
101
|
-
removeExternalReferenceIdExternalReference!: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
102
|
-
removeExternalReferenceIdExternalReferences!: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
103
|
-
hasExternalReferenceIdExternalReference!: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
104
|
-
hasExternalReferenceIdExternalReferences!: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
105
|
-
countExternalReferenceIdExternalReferences!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
106
|
-
// CanonAlbum belongsToMany PlatformAlbum via canonAlbumId and platformAlbumId
|
|
107
|
-
platformAlbumIdPlatformAlbums!: PlatformAlbum[];
|
|
108
|
-
getPlatformAlbumIdPlatformAlbums!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
|
|
109
|
-
setPlatformAlbumIdPlatformAlbums!: Sequelize.BelongsToManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
110
|
-
addPlatformAlbumIdPlatformAlbum!: Sequelize.BelongsToManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
111
|
-
addPlatformAlbumIdPlatformAlbums!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
112
|
-
createPlatformAlbumIdPlatformAlbum!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
|
|
113
|
-
removePlatformAlbumIdPlatformAlbum!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
114
|
-
removePlatformAlbumIdPlatformAlbums!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
115
|
-
hasPlatformAlbumIdPlatformAlbum!: Sequelize.BelongsToManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
116
|
-
hasPlatformAlbumIdPlatformAlbums!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
117
|
-
countPlatformAlbumIdPlatformAlbums!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
118
|
-
// CanonAlbum hasMany Versus via canonAlbumId
|
|
119
|
-
versus!: Versus[];
|
|
120
|
-
getVersus!: Sequelize.HasManyGetAssociationsMixin<Versus>;
|
|
121
|
-
setVersus!: Sequelize.HasManySetAssociationsMixin<Versus, VersusId>;
|
|
122
|
-
addVersu!: Sequelize.HasManyAddAssociationMixin<Versus, VersusId>;
|
|
123
|
-
addVersus!: Sequelize.HasManyAddAssociationsMixin<Versus, VersusId>;
|
|
124
|
-
createVersu!: Sequelize.HasManyCreateAssociationMixin<Versus>;
|
|
125
|
-
removeVersu!: Sequelize.HasManyRemoveAssociationMixin<Versus, VersusId>;
|
|
126
|
-
removeVersus!: Sequelize.HasManyRemoveAssociationsMixin<Versus, VersusId>;
|
|
127
|
-
hasVersu!: Sequelize.HasManyHasAssociationMixin<Versus, VersusId>;
|
|
128
|
-
hasVersus!: Sequelize.HasManyHasAssociationsMixin<Versus, VersusId>;
|
|
129
|
-
countVersus!: Sequelize.HasManyCountAssociationsMixin;
|
|
130
|
-
// CanonAlbum hasMany VersusOption via canonAlbumId
|
|
131
|
-
versusOptions!: VersusOption[];
|
|
132
|
-
getVersusOptions!: Sequelize.HasManyGetAssociationsMixin<VersusOption>;
|
|
133
|
-
setVersusOptions!: Sequelize.HasManySetAssociationsMixin<VersusOption, VersusOptionId>;
|
|
134
|
-
addVersusOption!: Sequelize.HasManyAddAssociationMixin<VersusOption, VersusOptionId>;
|
|
135
|
-
addVersusOptions!: Sequelize.HasManyAddAssociationsMixin<VersusOption, VersusOptionId>;
|
|
136
|
-
createVersusOption!: Sequelize.HasManyCreateAssociationMixin<VersusOption>;
|
|
137
|
-
removeVersusOption!: Sequelize.HasManyRemoveAssociationMixin<VersusOption, VersusOptionId>;
|
|
138
|
-
removeVersusOptions!: Sequelize.HasManyRemoveAssociationsMixin<VersusOption, VersusOptionId>;
|
|
139
|
-
hasVersusOption!: Sequelize.HasManyHasAssociationMixin<VersusOption, VersusOptionId>;
|
|
140
|
-
hasVersusOptions!: Sequelize.HasManyHasAssociationsMixin<VersusOption, VersusOptionId>;
|
|
141
|
-
countVersusOptions!: Sequelize.HasManyCountAssociationsMixin;
|
|
142
|
-
|
|
143
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbum {
|
|
144
|
-
return CanonAlbum.init({
|
|
145
|
-
name: {
|
|
146
|
-
type: DataTypes.TEXT,
|
|
147
|
-
allowNull: false
|
|
148
|
-
},
|
|
149
|
-
asciiName: {
|
|
150
|
-
type: DataTypes.TEXT,
|
|
151
|
-
allowNull: false,
|
|
152
|
-
field: 'ascii_name'
|
|
153
|
-
},
|
|
154
|
-
releaseDate: {
|
|
155
|
-
type: DataTypes.TEXT,
|
|
156
|
-
allowNull: true,
|
|
157
|
-
field: 'release_date'
|
|
158
|
-
},
|
|
159
|
-
noOfDisc: {
|
|
160
|
-
type: DataTypes.SMALLINT,
|
|
161
|
-
allowNull: true,
|
|
162
|
-
field: 'no_of_disc'
|
|
163
|
-
},
|
|
164
|
-
description: {
|
|
165
|
-
type: DataTypes.TEXT,
|
|
166
|
-
allowNull: true
|
|
167
|
-
},
|
|
168
|
-
id: {
|
|
169
|
-
type: DataTypes.UUID,
|
|
170
|
-
allowNull: false,
|
|
171
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
172
|
-
primaryKey: true
|
|
173
|
-
},
|
|
174
|
-
createDate: {
|
|
175
|
-
type: DataTypes.DATE,
|
|
176
|
-
allowNull: false,
|
|
177
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
178
|
-
field: 'create_date'
|
|
179
|
-
},
|
|
180
|
-
updateDate: {
|
|
181
|
-
type: DataTypes.DATE,
|
|
182
|
-
allowNull: false,
|
|
183
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
184
|
-
field: 'update_date'
|
|
185
|
-
},
|
|
186
|
-
hasPhoto: {
|
|
187
|
-
type: DataTypes.BOOLEAN,
|
|
188
|
-
allowNull: true,
|
|
189
|
-
defaultValue: false,
|
|
190
|
-
field: 'has_photo'
|
|
191
|
-
},
|
|
192
|
-
hasThumbnailPhoto: {
|
|
193
|
-
type: DataTypes.BOOLEAN,
|
|
194
|
-
allowNull: true,
|
|
195
|
-
defaultValue: false,
|
|
196
|
-
field: 'has_thumbnail_photo'
|
|
197
|
-
},
|
|
198
|
-
images: {
|
|
199
|
-
type: DataTypes.JSONB,
|
|
200
|
-
allowNull: true
|
|
201
|
-
},
|
|
202
|
-
lastImageHarvestAttempt: {
|
|
203
|
-
type: DataTypes.DATE,
|
|
204
|
-
allowNull: true,
|
|
205
|
-
field: 'last_image_harvest_attempt'
|
|
206
|
-
}
|
|
207
|
-
}, {
|
|
208
|
-
sequelize,
|
|
209
|
-
tableName: 'canon_album',
|
|
210
|
-
schema: 'eb',
|
|
211
|
-
timestamps: false,
|
|
212
|
-
indexes: [
|
|
213
|
-
{
|
|
214
|
-
name: "canon_album_pkey",
|
|
215
|
-
unique: true,
|
|
216
|
-
fields: [
|
|
217
|
-
{ name: "id" },
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
name: "eb_canon_album_last_image_harvest_attempt",
|
|
222
|
-
fields: [
|
|
223
|
-
{ name: "last_image_harvest_attempt" },
|
|
224
|
-
]
|
|
225
|
-
},
|
|
226
|
-
]
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
}
|