@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,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.AppUserPlatformRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class AppUserPlatformRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return AppUserPlatformRelation.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
appUserId: {
|
|
39
|
+
type: sequelize_1.DataTypes.UUID,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'app_user',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
unique: "uk_platform_relation_app_user_id",
|
|
46
|
+
field: 'app_user_id'
|
|
47
|
+
},
|
|
48
|
+
platformId: {
|
|
49
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
field: 'platform_id'
|
|
56
|
+
},
|
|
57
|
+
externalUserId: {
|
|
58
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
field: 'external_user_id'
|
|
61
|
+
},
|
|
62
|
+
createDate: {
|
|
63
|
+
type: sequelize_1.DataTypes.DATE,
|
|
64
|
+
allowNull: false,
|
|
65
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
66
|
+
field: 'create_date'
|
|
67
|
+
},
|
|
68
|
+
updateDate: {
|
|
69
|
+
type: sequelize_1.DataTypes.DATE,
|
|
70
|
+
allowNull: false,
|
|
71
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
72
|
+
field: 'update_date'
|
|
73
|
+
},
|
|
74
|
+
accessToken: {
|
|
75
|
+
type: sequelize_1.DataTypes.STRING,
|
|
76
|
+
allowNull: false,
|
|
77
|
+
field: 'access_token'
|
|
78
|
+
},
|
|
79
|
+
refreshToken: {
|
|
80
|
+
type: sequelize_1.DataTypes.STRING,
|
|
81
|
+
allowNull: true,
|
|
82
|
+
field: 'refresh_token'
|
|
83
|
+
},
|
|
84
|
+
expirationDate: {
|
|
85
|
+
type: sequelize_1.DataTypes.DATE,
|
|
86
|
+
allowNull: false,
|
|
87
|
+
field: 'expiration_date'
|
|
88
|
+
},
|
|
89
|
+
countryCode: {
|
|
90
|
+
type: sequelize_1.DataTypes.STRING(2),
|
|
91
|
+
allowNull: false,
|
|
92
|
+
field: 'country_code'
|
|
93
|
+
},
|
|
94
|
+
stateId: {
|
|
95
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
96
|
+
allowNull: false,
|
|
97
|
+
defaultValue: 0,
|
|
98
|
+
field: 'state_id'
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
sequelize,
|
|
102
|
+
tableName: 'app_user_platform_relation',
|
|
103
|
+
schema: 'eb',
|
|
104
|
+
timestamps: false,
|
|
105
|
+
indexes: [
|
|
106
|
+
{
|
|
107
|
+
name: "app_user_platform_relation_app_user_id_platform_id_idx",
|
|
108
|
+
unique: true,
|
|
109
|
+
fields: [
|
|
110
|
+
{ name: "app_user_id" },
|
|
111
|
+
{ name: "platform_id" },
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "app_user_platform_relation_pkey",
|
|
116
|
+
unique: true,
|
|
117
|
+
fields: [
|
|
118
|
+
{ name: "id" },
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "uk_platform_relation_app_user_id",
|
|
123
|
+
unique: true,
|
|
124
|
+
fields: [
|
|
125
|
+
{ name: "app_user_id" },
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.AppUserPlatformRelation = AppUserPlatformRelation;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId } from './CanonAlbumExternalReferenceRelation';
|
|
4
|
+
import type { CanonAlbumImageHarvested, CanonAlbumImageHarvestedId } from './CanonAlbumImageHarvested';
|
|
5
|
+
import type { CanonAlbumTrackRelation, CanonAlbumTrackRelationId } from './CanonAlbumTrackRelation';
|
|
6
|
+
import type { CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId } from './CanonToPlatformAlbumRelation';
|
|
7
|
+
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
8
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
9
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
10
|
+
export interface CanonAlbumAttributes {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
asciiName: string;
|
|
14
|
+
releaseDate?: string;
|
|
15
|
+
noOfDisc?: number;
|
|
16
|
+
createDate: Date;
|
|
17
|
+
updateDate: Date;
|
|
18
|
+
hasPhoto?: boolean;
|
|
19
|
+
hasThumbnailPhoto?: boolean;
|
|
20
|
+
description?: string;
|
|
21
|
+
images?: object;
|
|
22
|
+
lastImageHarvestAttempt?: Date;
|
|
23
|
+
}
|
|
24
|
+
export type CanonAlbumPk = "id";
|
|
25
|
+
export type CanonAlbumId = CanonAlbum[CanonAlbumPk];
|
|
26
|
+
export type CanonAlbumOptionalAttributes = "id" | "releaseDate" | "noOfDisc" | "createDate" | "updateDate" | "hasPhoto" | "hasThumbnailPhoto" | "description" | "images" | "lastImageHarvestAttempt";
|
|
27
|
+
export type CanonAlbumCreationAttributes = Optional<CanonAlbumAttributes, CanonAlbumOptionalAttributes>;
|
|
28
|
+
export declare class CanonAlbum extends Model<CanonAlbumAttributes, CanonAlbumCreationAttributes> implements CanonAlbumAttributes {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
asciiName: string;
|
|
32
|
+
releaseDate?: string;
|
|
33
|
+
noOfDisc?: number;
|
|
34
|
+
createDate: Date;
|
|
35
|
+
updateDate: Date;
|
|
36
|
+
hasPhoto?: boolean;
|
|
37
|
+
hasThumbnailPhoto?: boolean;
|
|
38
|
+
description?: string;
|
|
39
|
+
images?: object;
|
|
40
|
+
lastImageHarvestAttempt?: Date;
|
|
41
|
+
canonAlbumExternalReferenceRelations: CanonAlbumExternalReferenceRelation[];
|
|
42
|
+
getCanonAlbumExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumExternalReferenceRelation>;
|
|
43
|
+
setCanonAlbumExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
44
|
+
addCanonAlbumExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
45
|
+
addCanonAlbumExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
46
|
+
createCanonAlbumExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumExternalReferenceRelation>;
|
|
47
|
+
removeCanonAlbumExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
48
|
+
removeCanonAlbumExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
49
|
+
hasCanonAlbumExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
50
|
+
hasCanonAlbumExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
51
|
+
countCanonAlbumExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
52
|
+
canonAlbumImageHarvesteds: CanonAlbumImageHarvested[];
|
|
53
|
+
getCanonAlbumImageHarvesteds: Sequelize.HasManyGetAssociationsMixin<CanonAlbumImageHarvested>;
|
|
54
|
+
setCanonAlbumImageHarvesteds: Sequelize.HasManySetAssociationsMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
55
|
+
addCanonAlbumImageHarvested: Sequelize.HasManyAddAssociationMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
56
|
+
addCanonAlbumImageHarvesteds: Sequelize.HasManyAddAssociationsMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
57
|
+
createCanonAlbumImageHarvested: Sequelize.HasManyCreateAssociationMixin<CanonAlbumImageHarvested>;
|
|
58
|
+
removeCanonAlbumImageHarvested: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
59
|
+
removeCanonAlbumImageHarvesteds: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
60
|
+
hasCanonAlbumImageHarvested: Sequelize.HasManyHasAssociationMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
61
|
+
hasCanonAlbumImageHarvesteds: Sequelize.HasManyHasAssociationsMixin<CanonAlbumImageHarvested, CanonAlbumImageHarvestedId>;
|
|
62
|
+
countCanonAlbumImageHarvesteds: Sequelize.HasManyCountAssociationsMixin;
|
|
63
|
+
canonAlbumTrackRelations: CanonAlbumTrackRelation[];
|
|
64
|
+
getCanonAlbumTrackRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumTrackRelation>;
|
|
65
|
+
setCanonAlbumTrackRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
66
|
+
addCanonAlbumTrackRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
67
|
+
addCanonAlbumTrackRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
68
|
+
createCanonAlbumTrackRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumTrackRelation>;
|
|
69
|
+
removeCanonAlbumTrackRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
70
|
+
removeCanonAlbumTrackRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
71
|
+
hasCanonAlbumTrackRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
72
|
+
hasCanonAlbumTrackRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
73
|
+
countCanonAlbumTrackRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
74
|
+
canonToPlatformAlbumRelations: CanonToPlatformAlbumRelation[];
|
|
75
|
+
getCanonToPlatformAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformAlbumRelation>;
|
|
76
|
+
setCanonToPlatformAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
77
|
+
addCanonToPlatformAlbumRelation: Sequelize.HasManyAddAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
78
|
+
addCanonToPlatformAlbumRelations: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
79
|
+
createCanonToPlatformAlbumRelation: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformAlbumRelation>;
|
|
80
|
+
removeCanonToPlatformAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
81
|
+
removeCanonToPlatformAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
82
|
+
hasCanonToPlatformAlbumRelation: Sequelize.HasManyHasAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
83
|
+
hasCanonToPlatformAlbumRelations: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
|
|
84
|
+
countCanonToPlatformAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
85
|
+
canonTrackIdCanonTracks: CanonTrack[];
|
|
86
|
+
getCanonTrackIdCanonTracks: Sequelize.BelongsToManyGetAssociationsMixin<CanonTrack>;
|
|
87
|
+
setCanonTrackIdCanonTracks: Sequelize.BelongsToManySetAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
88
|
+
addCanonTrackIdCanonTrack: Sequelize.BelongsToManyAddAssociationMixin<CanonTrack, CanonTrackId>;
|
|
89
|
+
addCanonTrackIdCanonTracks: Sequelize.BelongsToManyAddAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
90
|
+
createCanonTrackIdCanonTrack: Sequelize.BelongsToManyCreateAssociationMixin<CanonTrack>;
|
|
91
|
+
removeCanonTrackIdCanonTrack: Sequelize.BelongsToManyRemoveAssociationMixin<CanonTrack, CanonTrackId>;
|
|
92
|
+
removeCanonTrackIdCanonTracks: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
93
|
+
hasCanonTrackIdCanonTrack: Sequelize.BelongsToManyHasAssociationMixin<CanonTrack, CanonTrackId>;
|
|
94
|
+
hasCanonTrackIdCanonTracks: Sequelize.BelongsToManyHasAssociationsMixin<CanonTrack, CanonTrackId>;
|
|
95
|
+
countCanonTrackIdCanonTracks: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
96
|
+
externalReferenceIdExternalReferences: ExternalReference[];
|
|
97
|
+
getExternalReferenceIdExternalReferences: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
98
|
+
setExternalReferenceIdExternalReferences: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
99
|
+
addExternalReferenceIdExternalReference: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
100
|
+
addExternalReferenceIdExternalReferences: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
101
|
+
createExternalReferenceIdExternalReference: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
102
|
+
removeExternalReferenceIdExternalReference: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
103
|
+
removeExternalReferenceIdExternalReferences: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
104
|
+
hasExternalReferenceIdExternalReference: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
105
|
+
hasExternalReferenceIdExternalReferences: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
106
|
+
countExternalReferenceIdExternalReferences: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
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
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbum;
|
|
119
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CanonAlbum = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonAlbum extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonAlbum.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
name: {
|
|
39
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
40
|
+
allowNull: false
|
|
41
|
+
},
|
|
42
|
+
asciiName: {
|
|
43
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
field: 'ascii_name'
|
|
46
|
+
},
|
|
47
|
+
releaseDate: {
|
|
48
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
49
|
+
allowNull: true,
|
|
50
|
+
field: 'release_date'
|
|
51
|
+
},
|
|
52
|
+
noOfDisc: {
|
|
53
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
54
|
+
allowNull: true,
|
|
55
|
+
field: 'no_of_disc'
|
|
56
|
+
},
|
|
57
|
+
createDate: {
|
|
58
|
+
type: sequelize_1.DataTypes.DATE,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
61
|
+
field: 'create_date'
|
|
62
|
+
},
|
|
63
|
+
updateDate: {
|
|
64
|
+
type: sequelize_1.DataTypes.DATE,
|
|
65
|
+
allowNull: false,
|
|
66
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
67
|
+
field: 'update_date'
|
|
68
|
+
},
|
|
69
|
+
hasPhoto: {
|
|
70
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
71
|
+
allowNull: true,
|
|
72
|
+
defaultValue: false,
|
|
73
|
+
field: 'has_photo'
|
|
74
|
+
},
|
|
75
|
+
hasThumbnailPhoto: {
|
|
76
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
77
|
+
allowNull: true,
|
|
78
|
+
defaultValue: false,
|
|
79
|
+
field: 'has_thumbnail_photo'
|
|
80
|
+
},
|
|
81
|
+
description: {
|
|
82
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
83
|
+
allowNull: true
|
|
84
|
+
},
|
|
85
|
+
images: {
|
|
86
|
+
type: sequelize_1.DataTypes.JSONB,
|
|
87
|
+
allowNull: true
|
|
88
|
+
},
|
|
89
|
+
lastImageHarvestAttempt: {
|
|
90
|
+
type: sequelize_1.DataTypes.DATE,
|
|
91
|
+
allowNull: true,
|
|
92
|
+
field: 'last_image_harvest_attempt'
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
sequelize,
|
|
96
|
+
tableName: 'canon_album',
|
|
97
|
+
schema: 'eb',
|
|
98
|
+
timestamps: false,
|
|
99
|
+
indexes: [
|
|
100
|
+
{
|
|
101
|
+
name: "canon_album_pkey",
|
|
102
|
+
unique: true,
|
|
103
|
+
fields: [
|
|
104
|
+
{ name: "id" },
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "eb_canon_album_last_image_harvest_attempt",
|
|
109
|
+
fields: [
|
|
110
|
+
{ name: "last_image_harvest_attempt" },
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.CanonAlbum = CanonAlbum;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
|
+
export interface CanonAlbumExternalReferenceRelationAttributes {
|
|
6
|
+
canonAlbumId: string;
|
|
7
|
+
externalReferenceId: string;
|
|
8
|
+
url: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
export type CanonAlbumExternalReferenceRelationPk = "canonAlbumId" | "externalReferenceId";
|
|
13
|
+
export type CanonAlbumExternalReferenceRelationId = CanonAlbumExternalReferenceRelation[CanonAlbumExternalReferenceRelationPk];
|
|
14
|
+
export type CanonAlbumExternalReferenceRelationOptionalAttributes = "createDate" | "updateDate";
|
|
15
|
+
export type CanonAlbumExternalReferenceRelationCreationAttributes = Optional<CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationOptionalAttributes>;
|
|
16
|
+
export declare class CanonAlbumExternalReferenceRelation extends Model<CanonAlbumExternalReferenceRelationAttributes, CanonAlbumExternalReferenceRelationCreationAttributes> implements CanonAlbumExternalReferenceRelationAttributes {
|
|
17
|
+
canonAlbumId: string;
|
|
18
|
+
externalReferenceId: string;
|
|
19
|
+
url: string;
|
|
20
|
+
createDate: Date;
|
|
21
|
+
updateDate: Date;
|
|
22
|
+
canonAlbum: CanonAlbum;
|
|
23
|
+
getCanonAlbum: Sequelize.BelongsToGetAssociationMixin<CanonAlbum>;
|
|
24
|
+
setCanonAlbum: Sequelize.BelongsToSetAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
25
|
+
createCanonAlbum: Sequelize.BelongsToCreateAssociationMixin<CanonAlbum>;
|
|
26
|
+
externalReference: ExternalReference;
|
|
27
|
+
getExternalReference: Sequelize.BelongsToGetAssociationMixin<ExternalReference>;
|
|
28
|
+
setExternalReference: Sequelize.BelongsToSetAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
29
|
+
createExternalReference: Sequelize.BelongsToCreateAssociationMixin<ExternalReference>;
|
|
30
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbumExternalReferenceRelation;
|
|
31
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CanonAlbumExternalReferenceRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonAlbumExternalReferenceRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonAlbumExternalReferenceRelation.init({
|
|
32
|
+
canonAlbumId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'canon_album',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'canon_album_id'
|
|
41
|
+
},
|
|
42
|
+
externalReferenceId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'external_reference',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'external_reference_id'
|
|
51
|
+
},
|
|
52
|
+
url: {
|
|
53
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
54
|
+
allowNull: false
|
|
55
|
+
},
|
|
56
|
+
createDate: {
|
|
57
|
+
type: sequelize_1.DataTypes.DATE,
|
|
58
|
+
allowNull: false,
|
|
59
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
60
|
+
field: 'create_date'
|
|
61
|
+
},
|
|
62
|
+
updateDate: {
|
|
63
|
+
type: sequelize_1.DataTypes.DATE,
|
|
64
|
+
allowNull: false,
|
|
65
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
66
|
+
field: 'update_date'
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
sequelize,
|
|
70
|
+
tableName: 'canon_album_external_reference_relation',
|
|
71
|
+
schema: 'eb',
|
|
72
|
+
timestamps: false,
|
|
73
|
+
indexes: [
|
|
74
|
+
{
|
|
75
|
+
name: "canon_album_external_reference_relation_pk",
|
|
76
|
+
unique: true,
|
|
77
|
+
fields: [
|
|
78
|
+
{ name: "canon_album_id" },
|
|
79
|
+
{ name: "external_reference_id" },
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.CanonAlbumExternalReferenceRelation = CanonAlbumExternalReferenceRelation;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
5
|
+
export interface CanonAlbumGenreRelationAttributes {
|
|
6
|
+
canonAlbumId: string;
|
|
7
|
+
canonGenreId: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type CanonAlbumGenreRelationPk = "canonAlbumId" | "canonGenreId";
|
|
12
|
+
export type CanonAlbumGenreRelationId = CanonAlbumGenreRelation[CanonAlbumGenreRelationPk];
|
|
13
|
+
export type CanonAlbumGenreRelationOptionalAttributes = "createDate" | "updateDate";
|
|
14
|
+
export type CanonAlbumGenreRelationCreationAttributes = Optional<CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationOptionalAttributes>;
|
|
15
|
+
export declare class CanonAlbumGenreRelation extends Model<CanonAlbumGenreRelationAttributes, CanonAlbumGenreRelationCreationAttributes> implements CanonAlbumGenreRelationAttributes {
|
|
16
|
+
canonAlbumId: string;
|
|
17
|
+
canonGenreId: string;
|
|
18
|
+
createDate: Date;
|
|
19
|
+
updateDate: Date;
|
|
20
|
+
canonGenre: CanonGenre;
|
|
21
|
+
getCanonGenre: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
22
|
+
setCanonGenre: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
23
|
+
createCanonGenre: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
24
|
+
canonAlbum: PlatformAlbum;
|
|
25
|
+
getCanonAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
26
|
+
setCanonAlbum: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
27
|
+
createCanonAlbum: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
28
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbumGenreRelation;
|
|
29
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CanonAlbumGenreRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonAlbumGenreRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonAlbumGenreRelation.init({
|
|
32
|
+
canonAlbumId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'platform_album',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'canon_album_id'
|
|
41
|
+
},
|
|
42
|
+
canonGenreId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'canon_genre',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'canon_genre_id'
|
|
51
|
+
},
|
|
52
|
+
createDate: {
|
|
53
|
+
type: sequelize_1.DataTypes.DATE,
|
|
54
|
+
allowNull: false,
|
|
55
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
56
|
+
field: 'create_date'
|
|
57
|
+
},
|
|
58
|
+
updateDate: {
|
|
59
|
+
type: sequelize_1.DataTypes.DATE,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
62
|
+
field: 'update_date'
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
sequelize,
|
|
66
|
+
tableName: 'canon_album_genre_relation',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "canon_album_genre_relation_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "canon_album_id" },
|
|
75
|
+
{ name: "canon_genre_id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.CanonAlbumGenreRelation = CanonAlbumGenreRelation;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
export interface CanonAlbumImageHarvestedAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
canonAlbumId: string;
|
|
7
|
+
priority?: number;
|
|
8
|
+
url?: string;
|
|
9
|
+
dateHarvested: Date;
|
|
10
|
+
storageKey: string;
|
|
11
|
+
harvestMethod?: string;
|
|
12
|
+
}
|
|
13
|
+
export type CanonAlbumImageHarvestedPk = "id";
|
|
14
|
+
export type CanonAlbumImageHarvestedId = CanonAlbumImageHarvested[CanonAlbumImageHarvestedPk];
|
|
15
|
+
export type CanonAlbumImageHarvestedOptionalAttributes = "id" | "priority" | "url" | "harvestMethod";
|
|
16
|
+
export type CanonAlbumImageHarvestedCreationAttributes = Optional<CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedOptionalAttributes>;
|
|
17
|
+
export declare class CanonAlbumImageHarvested extends Model<CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes> implements CanonAlbumImageHarvestedAttributes {
|
|
18
|
+
id: string;
|
|
19
|
+
canonAlbumId: string;
|
|
20
|
+
priority?: number;
|
|
21
|
+
url?: string;
|
|
22
|
+
dateHarvested: Date;
|
|
23
|
+
storageKey: string;
|
|
24
|
+
harvestMethod?: string;
|
|
25
|
+
canonAlbum: CanonAlbum;
|
|
26
|
+
getCanonAlbum: Sequelize.BelongsToGetAssociationMixin<CanonAlbum>;
|
|
27
|
+
setCanonAlbum: Sequelize.BelongsToSetAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
28
|
+
createCanonAlbum: Sequelize.BelongsToCreateAssociationMixin<CanonAlbum>;
|
|
29
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbumImageHarvested;
|
|
30
|
+
}
|