@earbug/db-models 0.0.1
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/.nvmrc +1 -0
- package/dist/AppUser.d.ts +161 -0
- package/dist/AppUser.js +121 -0
- package/dist/AppUserDevice.d.ts +26 -0
- package/dist/AppUserDevice.js +88 -0
- package/dist/AppUserFollowRelation.d.ts +34 -0
- package/dist/AppUserFollowRelation.js +113 -0
- package/dist/AppUserPlatformRelation.d.ts +43 -0
- package/dist/AppUserPlatformRelation.js +132 -0
- package/dist/CanonAlbum.d.ts +119 -0
- package/dist/CanonAlbum.js +117 -0
- package/dist/CanonAlbumExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonAlbumExternalReferenceRelation.js +86 -0
- package/dist/CanonAlbumGenreRelation.d.ts +29 -0
- package/dist/CanonAlbumGenreRelation.js +82 -0
- package/dist/CanonAlbumImageHarvested.d.ts +30 -0
- package/dist/CanonAlbumImageHarvested.js +78 -0
- package/dist/CanonAlbumLabelRelation.d.ts +29 -0
- package/dist/CanonAlbumLabelRelation.js +82 -0
- package/dist/CanonAlbumTrackRelation.d.ts +29 -0
- package/dist/CanonAlbumTrackRelation.js +82 -0
- package/dist/CanonArtist.d.ts +91 -0
- package/dist/CanonArtist.js +114 -0
- package/dist/CanonArtistAlbumRelation.d.ts +29 -0
- package/dist/CanonArtistAlbumRelation.js +82 -0
- package/dist/CanonArtistExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonArtistExternalReferenceRelation.js +86 -0
- package/dist/CanonArtistGenreRelation.d.ts +29 -0
- package/dist/CanonArtistGenreRelation.js +82 -0
- package/dist/CanonArtistImageHarvested.d.ts +30 -0
- package/dist/CanonArtistImageHarvested.js +70 -0
- package/dist/CanonArtistMemberRelation.d.ts +29 -0
- package/dist/CanonArtistMemberRelation.js +82 -0
- package/dist/CanonArtistTrackRelation.d.ts +29 -0
- package/dist/CanonArtistTrackRelation.js +82 -0
- package/dist/CanonGenre.d.ts +133 -0
- package/dist/CanonGenre.js +93 -0
- package/dist/CanonGenreExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonGenreExternalReferenceRelation.js +86 -0
- package/dist/CanonLabel.d.ts +69 -0
- package/dist/CanonLabel.js +83 -0
- package/dist/CanonLabelExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonLabelExternalReferenceRelation.js +86 -0
- package/dist/CanonMember.d.ts +71 -0
- package/dist/CanonMember.js +82 -0
- package/dist/CanonMemberExternalReferenceRelation.d.ts +33 -0
- package/dist/CanonMemberExternalReferenceRelation.js +91 -0
- package/dist/CanonToPlatformAlbumRelation.d.ts +29 -0
- package/dist/CanonToPlatformAlbumRelation.js +82 -0
- package/dist/CanonToPlatformArtistRelation.d.ts +29 -0
- package/dist/CanonToPlatformArtistRelation.js +82 -0
- package/dist/CanonToPlatformGenreRelation.d.ts +29 -0
- package/dist/CanonToPlatformGenreRelation.js +82 -0
- package/dist/CanonToPlatformTrackRelation.d.ts +29 -0
- package/dist/CanonToPlatformTrackRelation.js +82 -0
- package/dist/CanonTrack.d.ts +89 -0
- package/dist/CanonTrack.js +99 -0
- package/dist/ConfigParam.d.ts +19 -0
- package/dist/ConfigParam.js +70 -0
- package/dist/ExternalReference.d.ts +139 -0
- package/dist/ExternalReference.js +79 -0
- package/dist/JukeboxAccessType.d.ts +26 -0
- package/dist/JukeboxAccessType.js +36 -0
- package/dist/JukeboxCanonGenreRelation.d.ts +33 -0
- package/dist/JukeboxCanonGenreRelation.js +101 -0
- package/dist/JukeboxInvite.d.ts +39 -0
- package/dist/JukeboxInvite.js +98 -0
- package/dist/JukeboxQueueEntry.d.ts +74 -0
- package/dist/JukeboxQueueEntry.js +142 -0
- package/dist/JukeboxQueueMode.d.ts +26 -0
- package/dist/JukeboxQueueMode.js +36 -0
- package/dist/JukeboxSession.d.ts +108 -0
- package/dist/JukeboxSession.js +133 -0
- package/dist/JukeboxStatus.d.ts +26 -0
- package/dist/JukeboxStatus.js +34 -0
- package/dist/JukeboxTerminationCondition.d.ts +26 -0
- package/dist/JukeboxTerminationCondition.js +36 -0
- package/dist/JukeboxType.d.ts +26 -0
- package/dist/JukeboxType.js +36 -0
- package/dist/JukeboxUser.d.ts +56 -0
- package/dist/JukeboxUser.js +135 -0
- package/dist/JukeboxUserType.d.ts +26 -0
- package/dist/JukeboxUserType.js +34 -0
- package/dist/KnexMigrations.d.ts +19 -0
- package/dist/KnexMigrations.js +44 -0
- package/dist/KnexMigrationsLock.d.ts +15 -0
- package/dist/KnexMigrationsLock.js +36 -0
- package/dist/MetricsDaily.d.ts +19 -0
- package/dist/MetricsDaily.js +87 -0
- package/dist/MetricsEvent.d.ts +23 -0
- package/dist/MetricsEvent.js +117 -0
- package/dist/NewsSite.d.ts +21 -0
- package/dist/NewsSite.js +57 -0
- package/dist/PauseStatusType.d.ts +26 -0
- package/dist/PauseStatusType.js +34 -0
- package/dist/Platform.d.ts +127 -0
- package/dist/Platform.js +80 -0
- package/dist/PlatformAlbum.d.ts +232 -0
- package/dist/PlatformAlbum.js +123 -0
- package/dist/PlatformAlbumGenreRelation.d.ts +29 -0
- package/dist/PlatformAlbumGenreRelation.js +82 -0
- package/dist/PlatformAlbumTrackRelation.d.ts +29 -0
- package/dist/PlatformAlbumTrackRelation.js +82 -0
- package/dist/PlatformArtist.d.ts +225 -0
- package/dist/PlatformArtist.js +109 -0
- package/dist/PlatformArtistAlbumRelation.d.ts +29 -0
- package/dist/PlatformArtistAlbumRelation.js +82 -0
- package/dist/PlatformArtistGenreRelation.d.ts +29 -0
- package/dist/PlatformArtistGenreRelation.js +82 -0
- package/dist/PlatformArtistTrackRelation.d.ts +29 -0
- package/dist/PlatformArtistTrackRelation.js +82 -0
- package/dist/PlatformGenre.d.ts +122 -0
- package/dist/PlatformGenre.js +90 -0
- package/dist/PlatformTrack.d.ts +183 -0
- package/dist/PlatformTrack.js +129 -0
- package/dist/PlatformTrackGenreRelation.d.ts +29 -0
- package/dist/PlatformTrackGenreRelation.js +82 -0
- package/dist/PlatformUserAlbum.d.ts +54 -0
- package/dist/PlatformUserAlbum.js +121 -0
- package/dist/PlatformUserAlbumTrack.d.ts +42 -0
- package/dist/PlatformUserAlbumTrack.js +121 -0
- package/dist/PlatformUserPlaylist.d.ts +62 -0
- package/dist/PlatformUserPlaylist.js +135 -0
- package/dist/PlatformUserPlaylistTrack.d.ts +48 -0
- package/dist/PlatformUserPlaylistTrack.js +132 -0
- package/dist/PlaybackStatus.d.ts +26 -0
- package/dist/PlaybackStatus.js +36 -0
- package/dist/State.d.ts +50 -0
- package/dist/State.js +36 -0
- package/dist/TrackDeletionReason.d.ts +26 -0
- package/dist/TrackDeletionReason.js +34 -0
- package/dist/UnmatchedAlbum.d.ts +22 -0
- package/dist/UnmatchedAlbum.js +70 -0
- package/dist/UnmatchedArtist.d.ts +26 -0
- package/dist/UnmatchedArtist.js +81 -0
- package/dist/UserContacts.d.ts +46 -0
- package/dist/UserContacts.js +105 -0
- package/dist/init-models.d.ts +209 -0
- package/dist/init-models.js +507 -0
- package/model_options.json +3 -0
- package/models/AppUser.ts +267 -0
- package/models/AppUserDevice.ts +88 -0
- package/models/AppUserFollowRelation.ts +122 -0
- package/models/AppUserPlatformRelation.ts +150 -0
- package/models/CanonAlbum.ts +216 -0
- package/models/CanonAlbumExternalReferenceRelation.ts +92 -0
- package/models/CanonAlbumGenreRelation.ts +86 -0
- package/models/CanonAlbumImageHarvested.ts +106 -0
- package/models/CanonAlbumLabelRelation.ts +86 -0
- package/models/CanonAlbumTrackRelation.ts +86 -0
- package/models/CanonArtist.ts +183 -0
- package/models/CanonArtistAlbumRelation.ts +86 -0
- package/models/CanonArtistExternalReferenceRelation.ts +92 -0
- package/models/CanonArtistGenreRelation.ts +86 -0
- package/models/CanonArtistImageHarvested.ts +98 -0
- package/models/CanonArtistMemberRelation.ts +86 -0
- package/models/CanonArtistTrackRelation.ts +86 -0
- package/models/CanonGenre.ts +208 -0
- package/models/CanonGenreExternalReferenceRelation.ts +92 -0
- package/models/CanonLabel.ts +129 -0
- package/models/CanonLabelExternalReferenceRelation.ts +92 -0
- package/models/CanonMember.ts +130 -0
- package/models/CanonMemberExternalReferenceRelation.ts +99 -0
- package/models/CanonToPlatformAlbumRelation.ts +86 -0
- package/models/CanonToPlatformArtistRelation.ts +86 -0
- package/models/CanonToPlatformGenreRelation.ts +86 -0
- package/models/CanonToPlatformTrackRelation.ts +86 -0
- package/models/CanonTrack.ts +167 -0
- package/models/ConfigParam.ts +62 -0
- package/models/ExternalReference.ts +201 -0
- package/models/JukeboxAccessType.ts +60 -0
- package/models/JukeboxCanonGenreRelation.ts +109 -0
- package/models/JukeboxInvite.ts +113 -0
- package/models/JukeboxQueueEntry.ts +195 -0
- package/models/JukeboxQueueMode.ts +60 -0
- package/models/JukeboxSession.ts +223 -0
- package/models/JukeboxStatus.ts +58 -0
- package/models/JukeboxTerminationCondition.ts +60 -0
- package/models/JukeboxType.ts +60 -0
- package/models/JukeboxUser.ts +169 -0
- package/models/JukeboxUserType.ts +58 -0
- package/models/KnexMigrations.ts +60 -0
- package/models/KnexMigrationsLock.ts +48 -0
- package/models/MetricsDaily.ts +79 -0
- package/models/MetricsEvent.ts +114 -0
- package/models/NewsSite.ts +75 -0
- package/models/PauseStatusType.ts +58 -0
- package/models/Platform.ts +189 -0
- package/models/PlatformAlbum.ts +345 -0
- package/models/PlatformAlbumGenreRelation.ts +86 -0
- package/models/PlatformAlbumTrackRelation.ts +86 -0
- package/models/PlatformArtist.ts +324 -0
- package/models/PlatformArtistAlbumRelation.ts +86 -0
- package/models/PlatformArtistGenreRelation.ts +86 -0
- package/models/PlatformArtistTrackRelation.ts +86 -0
- package/models/PlatformGenre.ts +194 -0
- package/models/PlatformTrack.ts +298 -0
- package/models/PlatformTrackGenreRelation.ts +86 -0
- package/models/PlatformUserAlbum.ts +152 -0
- package/models/PlatformUserAlbumTrack.ts +139 -0
- package/models/PlatformUserPlaylist.ts +174 -0
- package/models/PlatformUserPlaylistTrack.ts +156 -0
- package/models/PlaybackStatus.ts +60 -0
- package/models/State.ts +86 -0
- package/models/TrackDeletionReason.ts +58 -0
- package/models/UnmatchedAlbum.ts +66 -0
- package/models/UnmatchedArtist.ts +81 -0
- package/models/UserContacts.ts +149 -0
- package/models/init-models.ts +716 -0
- package/package.json +19 -0
- package/tsconfig.json +52 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonArtistMemberRelation, CanonArtistMemberRelationId } from './CanonArtistMemberRelation';
|
|
4
|
+
import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId } from './CanonMemberExternalReferenceRelation';
|
|
5
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
7
|
+
|
|
8
|
+
export interface CanonMemberAttributes {
|
|
9
|
+
id: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
asciiName?: string;
|
|
12
|
+
createDate?: Date;
|
|
13
|
+
updateDate?: Date;
|
|
14
|
+
isPast?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type CanonMemberPk = "id";
|
|
18
|
+
export type CanonMemberId = CanonMember[CanonMemberPk];
|
|
19
|
+
export type CanonMemberOptionalAttributes = "id" | "name" | "asciiName" | "createDate" | "updateDate" | "isPast";
|
|
20
|
+
export type CanonMemberCreationAttributes = Optional<CanonMemberAttributes, CanonMemberOptionalAttributes>;
|
|
21
|
+
|
|
22
|
+
export class CanonMember extends Model<CanonMemberAttributes, CanonMemberCreationAttributes> implements CanonMemberAttributes {
|
|
23
|
+
id!: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
asciiName?: string;
|
|
26
|
+
createDate?: Date;
|
|
27
|
+
updateDate?: Date;
|
|
28
|
+
isPast?: boolean;
|
|
29
|
+
|
|
30
|
+
// CanonMember hasMany CanonArtistMemberRelation via canonMemberId
|
|
31
|
+
canonArtistMemberRelations!: CanonArtistMemberRelation[];
|
|
32
|
+
getCanonArtistMemberRelations!: Sequelize.HasManyGetAssociationsMixin<CanonArtistMemberRelation>;
|
|
33
|
+
setCanonArtistMemberRelations!: Sequelize.HasManySetAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
34
|
+
addCanonArtistMemberRelation!: Sequelize.HasManyAddAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
35
|
+
addCanonArtistMemberRelations!: Sequelize.HasManyAddAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
36
|
+
createCanonArtistMemberRelation!: Sequelize.HasManyCreateAssociationMixin<CanonArtistMemberRelation>;
|
|
37
|
+
removeCanonArtistMemberRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
38
|
+
removeCanonArtistMemberRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
39
|
+
hasCanonArtistMemberRelation!: Sequelize.HasManyHasAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
40
|
+
hasCanonArtistMemberRelations!: Sequelize.HasManyHasAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
41
|
+
countCanonArtistMemberRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
42
|
+
// CanonMember hasMany CanonMemberExternalReferenceRelation via canonMemberId
|
|
43
|
+
canonMemberExternalReferenceRelations!: CanonMemberExternalReferenceRelation[];
|
|
44
|
+
getCanonMemberExternalReferenceRelations!: Sequelize.HasManyGetAssociationsMixin<CanonMemberExternalReferenceRelation>;
|
|
45
|
+
setCanonMemberExternalReferenceRelations!: Sequelize.HasManySetAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
46
|
+
addCanonMemberExternalReferenceRelation!: Sequelize.HasManyAddAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
47
|
+
addCanonMemberExternalReferenceRelations!: Sequelize.HasManyAddAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
48
|
+
createCanonMemberExternalReferenceRelation!: Sequelize.HasManyCreateAssociationMixin<CanonMemberExternalReferenceRelation>;
|
|
49
|
+
removeCanonMemberExternalReferenceRelation!: Sequelize.HasManyRemoveAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
50
|
+
removeCanonMemberExternalReferenceRelations!: Sequelize.HasManyRemoveAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
51
|
+
hasCanonMemberExternalReferenceRelation!: Sequelize.HasManyHasAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
52
|
+
hasCanonMemberExternalReferenceRelations!: Sequelize.HasManyHasAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
53
|
+
countCanonMemberExternalReferenceRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
54
|
+
// CanonMember belongsToMany ExternalReference via canonMemberId and externalReferenceId
|
|
55
|
+
externalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: ExternalReference[];
|
|
56
|
+
getExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
57
|
+
setExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
58
|
+
addExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
59
|
+
addExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
60
|
+
createExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
61
|
+
removeExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
62
|
+
removeExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
63
|
+
hasExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation!: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
64
|
+
hasExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
65
|
+
countExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
66
|
+
// CanonMember belongsToMany PlatformArtist via canonMemberId and canonArtistId
|
|
67
|
+
canonArtistIdPlatformArtistCanonArtistMemberRelations!: PlatformArtist[];
|
|
68
|
+
getCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
69
|
+
setCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
70
|
+
addCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
71
|
+
addCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
72
|
+
createCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
73
|
+
removeCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
74
|
+
removeCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
75
|
+
hasCanonArtistIdPlatformArtistCanonArtistMemberRelation!: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
76
|
+
hasCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
77
|
+
countCanonArtistIdPlatformArtistCanonArtistMemberRelations!: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
78
|
+
|
|
79
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonMember {
|
|
80
|
+
return CanonMember.init({
|
|
81
|
+
id: {
|
|
82
|
+
type: DataTypes.UUID,
|
|
83
|
+
allowNull: false,
|
|
84
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
85
|
+
primaryKey: true
|
|
86
|
+
},
|
|
87
|
+
name: {
|
|
88
|
+
type: DataTypes.TEXT,
|
|
89
|
+
allowNull: true
|
|
90
|
+
},
|
|
91
|
+
asciiName: {
|
|
92
|
+
type: DataTypes.TEXT,
|
|
93
|
+
allowNull: true,
|
|
94
|
+
field: 'ascii_name'
|
|
95
|
+
},
|
|
96
|
+
createDate: {
|
|
97
|
+
type: DataTypes.DATE,
|
|
98
|
+
allowNull: true,
|
|
99
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
100
|
+
field: 'create_date'
|
|
101
|
+
},
|
|
102
|
+
updateDate: {
|
|
103
|
+
type: DataTypes.DATE,
|
|
104
|
+
allowNull: true,
|
|
105
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
106
|
+
field: 'update_date'
|
|
107
|
+
},
|
|
108
|
+
isPast: {
|
|
109
|
+
type: DataTypes.BOOLEAN,
|
|
110
|
+
allowNull: true,
|
|
111
|
+
defaultValue: false,
|
|
112
|
+
field: 'is_past'
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
sequelize,
|
|
116
|
+
tableName: 'canon_member',
|
|
117
|
+
schema: 'eb',
|
|
118
|
+
timestamps: false,
|
|
119
|
+
indexes: [
|
|
120
|
+
{
|
|
121
|
+
name: "member_pkey",
|
|
122
|
+
unique: true,
|
|
123
|
+
fields: [
|
|
124
|
+
{ name: "id" },
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
4
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
|
+
|
|
6
|
+
export interface CanonMemberExternalReferenceRelationAttributes {
|
|
7
|
+
id: string;
|
|
8
|
+
canonMemberId: string;
|
|
9
|
+
externalReferenceId: string;
|
|
10
|
+
url: string;
|
|
11
|
+
createDate: Date;
|
|
12
|
+
updateDate: Date;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type CanonMemberExternalReferenceRelationPk = "canonMemberId" | "externalReferenceId";
|
|
16
|
+
export type CanonMemberExternalReferenceRelationId = CanonMemberExternalReferenceRelation[CanonMemberExternalReferenceRelationPk];
|
|
17
|
+
export type CanonMemberExternalReferenceRelationOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
18
|
+
export type CanonMemberExternalReferenceRelationCreationAttributes = Optional<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationOptionalAttributes>;
|
|
19
|
+
|
|
20
|
+
export class CanonMemberExternalReferenceRelation extends Model<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes> implements CanonMemberExternalReferenceRelationAttributes {
|
|
21
|
+
id!: string;
|
|
22
|
+
canonMemberId!: string;
|
|
23
|
+
externalReferenceId!: string;
|
|
24
|
+
url!: string;
|
|
25
|
+
createDate!: Date;
|
|
26
|
+
updateDate!: Date;
|
|
27
|
+
|
|
28
|
+
// CanonMemberExternalReferenceRelation belongsTo CanonMember via canonMemberId
|
|
29
|
+
canonMember!: CanonMember;
|
|
30
|
+
getCanonMember!: Sequelize.BelongsToGetAssociationMixin<CanonMember>;
|
|
31
|
+
setCanonMember!: Sequelize.BelongsToSetAssociationMixin<CanonMember, CanonMemberId>;
|
|
32
|
+
createCanonMember!: Sequelize.BelongsToCreateAssociationMixin<CanonMember>;
|
|
33
|
+
// CanonMemberExternalReferenceRelation belongsTo ExternalReference via externalReferenceId
|
|
34
|
+
externalReference!: ExternalReference;
|
|
35
|
+
getExternalReference!: Sequelize.BelongsToGetAssociationMixin<ExternalReference>;
|
|
36
|
+
setExternalReference!: Sequelize.BelongsToSetAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
37
|
+
createExternalReference!: Sequelize.BelongsToCreateAssociationMixin<ExternalReference>;
|
|
38
|
+
|
|
39
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonMemberExternalReferenceRelation {
|
|
40
|
+
return CanonMemberExternalReferenceRelation.init({
|
|
41
|
+
id: {
|
|
42
|
+
type: DataTypes.UUID,
|
|
43
|
+
allowNull: false,
|
|
44
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1')
|
|
45
|
+
},
|
|
46
|
+
canonMemberId: {
|
|
47
|
+
type: DataTypes.UUID,
|
|
48
|
+
allowNull: false,
|
|
49
|
+
primaryKey: true,
|
|
50
|
+
references: {
|
|
51
|
+
model: 'canon_member',
|
|
52
|
+
key: 'id'
|
|
53
|
+
},
|
|
54
|
+
field: 'canon_member_id'
|
|
55
|
+
},
|
|
56
|
+
externalReferenceId: {
|
|
57
|
+
type: DataTypes.UUID,
|
|
58
|
+
allowNull: false,
|
|
59
|
+
primaryKey: true,
|
|
60
|
+
references: {
|
|
61
|
+
model: 'external_reference',
|
|
62
|
+
key: 'id'
|
|
63
|
+
},
|
|
64
|
+
field: 'external_reference_id'
|
|
65
|
+
},
|
|
66
|
+
url: {
|
|
67
|
+
type: DataTypes.TEXT,
|
|
68
|
+
allowNull: false
|
|
69
|
+
},
|
|
70
|
+
createDate: {
|
|
71
|
+
type: DataTypes.DATE,
|
|
72
|
+
allowNull: false,
|
|
73
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
74
|
+
field: 'create_date'
|
|
75
|
+
},
|
|
76
|
+
updateDate: {
|
|
77
|
+
type: DataTypes.DATE,
|
|
78
|
+
allowNull: false,
|
|
79
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
80
|
+
field: 'update_date'
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
sequelize,
|
|
84
|
+
tableName: 'canon_member_external_reference_relation',
|
|
85
|
+
schema: 'eb',
|
|
86
|
+
timestamps: false,
|
|
87
|
+
indexes: [
|
|
88
|
+
{
|
|
89
|
+
name: "canon_member_external_reference_relation_pk",
|
|
90
|
+
unique: true,
|
|
91
|
+
fields: [
|
|
92
|
+
{ name: "canon_member_id" },
|
|
93
|
+
{ name: "external_reference_id" },
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
]
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
5
|
+
|
|
6
|
+
export interface CanonToPlatformAlbumRelationAttributes {
|
|
7
|
+
canonAlbumId: string;
|
|
8
|
+
platformAlbumId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CanonToPlatformAlbumRelationPk = "canonAlbumId" | "platformAlbumId";
|
|
14
|
+
export type CanonToPlatformAlbumRelationId = CanonToPlatformAlbumRelation[CanonToPlatformAlbumRelationPk];
|
|
15
|
+
export type CanonToPlatformAlbumRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type CanonToPlatformAlbumRelationCreationAttributes = Optional<CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class CanonToPlatformAlbumRelation extends Model<CanonToPlatformAlbumRelationAttributes, CanonToPlatformAlbumRelationCreationAttributes> implements CanonToPlatformAlbumRelationAttributes {
|
|
19
|
+
canonAlbumId!: string;
|
|
20
|
+
platformAlbumId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// CanonToPlatformAlbumRelation belongsTo CanonAlbum via canonAlbumId
|
|
25
|
+
canonAlbum!: CanonAlbum;
|
|
26
|
+
getCanonAlbum!: Sequelize.BelongsToGetAssociationMixin<CanonAlbum>;
|
|
27
|
+
setCanonAlbum!: Sequelize.BelongsToSetAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
28
|
+
createCanonAlbum!: Sequelize.BelongsToCreateAssociationMixin<CanonAlbum>;
|
|
29
|
+
// CanonToPlatformAlbumRelation belongsTo PlatformAlbum via platformAlbumId
|
|
30
|
+
platformAlbum!: PlatformAlbum;
|
|
31
|
+
getPlatformAlbum!: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
32
|
+
setPlatformAlbum!: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
33
|
+
createPlatformAlbum!: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonToPlatformAlbumRelation {
|
|
36
|
+
return CanonToPlatformAlbumRelation.init({
|
|
37
|
+
canonAlbumId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'canon_album',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'canon_album_id'
|
|
46
|
+
},
|
|
47
|
+
platformAlbumId: {
|
|
48
|
+
type: DataTypes.UUID,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
primaryKey: true,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_album',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_album_id'
|
|
56
|
+
},
|
|
57
|
+
createDate: {
|
|
58
|
+
type: DataTypes.DATE,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
+
field: 'create_date'
|
|
62
|
+
},
|
|
63
|
+
updateDate: {
|
|
64
|
+
type: DataTypes.DATE,
|
|
65
|
+
allowNull: false,
|
|
66
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
+
field: 'update_date'
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
sequelize,
|
|
71
|
+
tableName: 'canon_to_platform_album_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "canon_to_platform_album_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "canon_album_id" },
|
|
80
|
+
{ name: "platform_album_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
5
|
+
|
|
6
|
+
export interface CanonToPlatformArtistRelationAttributes {
|
|
7
|
+
canonArtistId: string;
|
|
8
|
+
platformArtistId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CanonToPlatformArtistRelationPk = "canonArtistId" | "platformArtistId";
|
|
14
|
+
export type CanonToPlatformArtistRelationId = CanonToPlatformArtistRelation[CanonToPlatformArtistRelationPk];
|
|
15
|
+
export type CanonToPlatformArtistRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type CanonToPlatformArtistRelationCreationAttributes = Optional<CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class CanonToPlatformArtistRelation extends Model<CanonToPlatformArtistRelationAttributes, CanonToPlatformArtistRelationCreationAttributes> implements CanonToPlatformArtistRelationAttributes {
|
|
19
|
+
canonArtistId!: string;
|
|
20
|
+
platformArtistId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// CanonToPlatformArtistRelation belongsTo CanonArtist via canonArtistId
|
|
25
|
+
canonArtist!: CanonArtist;
|
|
26
|
+
getCanonArtist!: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
|
|
27
|
+
setCanonArtist!: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
|
|
28
|
+
createCanonArtist!: Sequelize.BelongsToCreateAssociationMixin<CanonArtist>;
|
|
29
|
+
// CanonToPlatformArtistRelation belongsTo PlatformArtist via platformArtistId
|
|
30
|
+
platformArtist!: PlatformArtist;
|
|
31
|
+
getPlatformArtist!: Sequelize.BelongsToGetAssociationMixin<PlatformArtist>;
|
|
32
|
+
setPlatformArtist!: Sequelize.BelongsToSetAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
33
|
+
createPlatformArtist!: Sequelize.BelongsToCreateAssociationMixin<PlatformArtist>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonToPlatformArtistRelation {
|
|
36
|
+
return CanonToPlatformArtistRelation.init({
|
|
37
|
+
canonArtistId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'canon_artist',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'canon_artist_id'
|
|
46
|
+
},
|
|
47
|
+
platformArtistId: {
|
|
48
|
+
type: DataTypes.UUID,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
primaryKey: true,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_artist',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_artist_id'
|
|
56
|
+
},
|
|
57
|
+
createDate: {
|
|
58
|
+
type: DataTypes.DATE,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
+
field: 'create_date'
|
|
62
|
+
},
|
|
63
|
+
updateDate: {
|
|
64
|
+
type: DataTypes.DATE,
|
|
65
|
+
allowNull: false,
|
|
66
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
+
field: 'update_date'
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
sequelize,
|
|
71
|
+
tableName: 'canon_to_platform_artist_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "canon_to_platform_artist_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "canon_artist_id" },
|
|
80
|
+
{ name: "platform_artist_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
|
+
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
5
|
+
|
|
6
|
+
export interface CanonToPlatformGenreRelationAttributes {
|
|
7
|
+
canonGenreId: string;
|
|
8
|
+
platformGenreId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CanonToPlatformGenreRelationPk = "canonGenreId" | "platformGenreId";
|
|
14
|
+
export type CanonToPlatformGenreRelationId = CanonToPlatformGenreRelation[CanonToPlatformGenreRelationPk];
|
|
15
|
+
export type CanonToPlatformGenreRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type CanonToPlatformGenreRelationCreationAttributes = Optional<CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class CanonToPlatformGenreRelation extends Model<CanonToPlatformGenreRelationAttributes, CanonToPlatformGenreRelationCreationAttributes> implements CanonToPlatformGenreRelationAttributes {
|
|
19
|
+
canonGenreId!: string;
|
|
20
|
+
platformGenreId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// CanonToPlatformGenreRelation belongsTo CanonGenre via canonGenreId
|
|
25
|
+
canonGenre!: CanonGenre;
|
|
26
|
+
getCanonGenre!: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
27
|
+
setCanonGenre!: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
28
|
+
createCanonGenre!: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
29
|
+
// CanonToPlatformGenreRelation belongsTo PlatformGenre via platformGenreId
|
|
30
|
+
platformGenre!: PlatformGenre;
|
|
31
|
+
getPlatformGenre!: Sequelize.BelongsToGetAssociationMixin<PlatformGenre>;
|
|
32
|
+
setPlatformGenre!: Sequelize.BelongsToSetAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
33
|
+
createPlatformGenre!: Sequelize.BelongsToCreateAssociationMixin<PlatformGenre>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonToPlatformGenreRelation {
|
|
36
|
+
return CanonToPlatformGenreRelation.init({
|
|
37
|
+
canonGenreId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'canon_genre',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'canon_genre_id'
|
|
46
|
+
},
|
|
47
|
+
platformGenreId: {
|
|
48
|
+
type: DataTypes.UUID,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
primaryKey: true,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_genre',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_genre_id'
|
|
56
|
+
},
|
|
57
|
+
createDate: {
|
|
58
|
+
type: DataTypes.DATE,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
+
field: 'create_date'
|
|
62
|
+
},
|
|
63
|
+
updateDate: {
|
|
64
|
+
type: DataTypes.DATE,
|
|
65
|
+
allowNull: false,
|
|
66
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
+
field: 'update_date'
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
sequelize,
|
|
71
|
+
tableName: 'canon_to_platform_genre_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "canon_to_platform_genre_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "canon_genre_id" },
|
|
80
|
+
{ name: "platform_genre_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
4
|
+
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
5
|
+
|
|
6
|
+
export interface CanonToPlatformTrackRelationAttributes {
|
|
7
|
+
canonTrackId: string;
|
|
8
|
+
platformTrackId: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CanonToPlatformTrackRelationPk = "canonTrackId" | "platformTrackId";
|
|
14
|
+
export type CanonToPlatformTrackRelationId = CanonToPlatformTrackRelation[CanonToPlatformTrackRelationPk];
|
|
15
|
+
export type CanonToPlatformTrackRelationOptionalAttributes = "createDate" | "updateDate";
|
|
16
|
+
export type CanonToPlatformTrackRelationCreationAttributes = Optional<CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationOptionalAttributes>;
|
|
17
|
+
|
|
18
|
+
export class CanonToPlatformTrackRelation extends Model<CanonToPlatformTrackRelationAttributes, CanonToPlatformTrackRelationCreationAttributes> implements CanonToPlatformTrackRelationAttributes {
|
|
19
|
+
canonTrackId!: string;
|
|
20
|
+
platformTrackId!: string;
|
|
21
|
+
createDate!: Date;
|
|
22
|
+
updateDate!: Date;
|
|
23
|
+
|
|
24
|
+
// CanonToPlatformTrackRelation belongsTo CanonTrack via canonTrackId
|
|
25
|
+
canonTrack!: CanonTrack;
|
|
26
|
+
getCanonTrack!: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
|
|
27
|
+
setCanonTrack!: Sequelize.BelongsToSetAssociationMixin<CanonTrack, CanonTrackId>;
|
|
28
|
+
createCanonTrack!: Sequelize.BelongsToCreateAssociationMixin<CanonTrack>;
|
|
29
|
+
// CanonToPlatformTrackRelation belongsTo PlatformTrack via platformTrackId
|
|
30
|
+
platformTrack!: PlatformTrack;
|
|
31
|
+
getPlatformTrack!: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
|
|
32
|
+
setPlatformTrack!: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
33
|
+
createPlatformTrack!: Sequelize.BelongsToCreateAssociationMixin<PlatformTrack>;
|
|
34
|
+
|
|
35
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonToPlatformTrackRelation {
|
|
36
|
+
return CanonToPlatformTrackRelation.init({
|
|
37
|
+
canonTrackId: {
|
|
38
|
+
type: DataTypes.UUID,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
primaryKey: true,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'canon_track',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'canon_track_id'
|
|
46
|
+
},
|
|
47
|
+
platformTrackId: {
|
|
48
|
+
type: DataTypes.UUID,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
primaryKey: true,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_track',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_track_id'
|
|
56
|
+
},
|
|
57
|
+
createDate: {
|
|
58
|
+
type: DataTypes.DATE,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
+
field: 'create_date'
|
|
62
|
+
},
|
|
63
|
+
updateDate: {
|
|
64
|
+
type: DataTypes.DATE,
|
|
65
|
+
allowNull: false,
|
|
66
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
+
field: 'update_date'
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
sequelize,
|
|
71
|
+
tableName: 'canon_to_platform_track_relation',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "canon_to_platform_track_relation_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "canon_track_id" },
|
|
80
|
+
{ name: "platform_track_id" },
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|