@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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CanonAlbumImageHarvested = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class CanonAlbumImageHarvested extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return CanonAlbumImageHarvested.init({
|
|
8
|
+
id: {
|
|
9
|
+
type: sequelize_1.DataTypes.UUID,
|
|
10
|
+
allowNull: false,
|
|
11
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
12
|
+
primaryKey: true
|
|
13
|
+
},
|
|
14
|
+
canonAlbumId: {
|
|
15
|
+
type: sequelize_1.DataTypes.UUID,
|
|
16
|
+
allowNull: false,
|
|
17
|
+
references: {
|
|
18
|
+
model: 'canon_album',
|
|
19
|
+
key: 'id'
|
|
20
|
+
},
|
|
21
|
+
field: 'canon_album_id'
|
|
22
|
+
},
|
|
23
|
+
priority: {
|
|
24
|
+
type: sequelize_1.DataTypes.DECIMAL,
|
|
25
|
+
allowNull: true,
|
|
26
|
+
defaultValue: 0
|
|
27
|
+
},
|
|
28
|
+
url: {
|
|
29
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
30
|
+
allowNull: true,
|
|
31
|
+
unique: "canon_album_image_harvested_url_unique"
|
|
32
|
+
},
|
|
33
|
+
dateHarvested: {
|
|
34
|
+
type: sequelize_1.DataTypes.DATE,
|
|
35
|
+
allowNull: false,
|
|
36
|
+
field: 'date_harvested'
|
|
37
|
+
},
|
|
38
|
+
storageKey: {
|
|
39
|
+
type: sequelize_1.DataTypes.STRING(255),
|
|
40
|
+
allowNull: false,
|
|
41
|
+
field: 'storage_key'
|
|
42
|
+
},
|
|
43
|
+
harvestMethod: {
|
|
44
|
+
type: sequelize_1.DataTypes.STRING(255),
|
|
45
|
+
allowNull: true,
|
|
46
|
+
field: 'harvest_method'
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
sequelize,
|
|
50
|
+
tableName: 'canon_album_image_harvested',
|
|
51
|
+
schema: 'eb',
|
|
52
|
+
timestamps: false,
|
|
53
|
+
indexes: [
|
|
54
|
+
{
|
|
55
|
+
name: "canon_album_image_harvested_canon_album_id_index",
|
|
56
|
+
fields: [
|
|
57
|
+
{ name: "canon_album_id" },
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "canon_album_image_harvested_pkey",
|
|
62
|
+
unique: true,
|
|
63
|
+
fields: [
|
|
64
|
+
{ name: "id" },
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "canon_album_image_harvested_url_unique",
|
|
69
|
+
unique: true,
|
|
70
|
+
fields: [
|
|
71
|
+
{ name: "url" },
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.CanonAlbumImageHarvested = CanonAlbumImageHarvested;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonLabel, CanonLabelId } from './CanonLabel';
|
|
4
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
5
|
+
export interface CanonAlbumLabelRelationAttributes {
|
|
6
|
+
canonAlbumId: string;
|
|
7
|
+
canonLabelId: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type CanonAlbumLabelRelationPk = "canonAlbumId" | "canonLabelId";
|
|
12
|
+
export type CanonAlbumLabelRelationId = CanonAlbumLabelRelation[CanonAlbumLabelRelationPk];
|
|
13
|
+
export type CanonAlbumLabelRelationOptionalAttributes = "createDate" | "updateDate";
|
|
14
|
+
export type CanonAlbumLabelRelationCreationAttributes = Optional<CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationOptionalAttributes>;
|
|
15
|
+
export declare class CanonAlbumLabelRelation extends Model<CanonAlbumLabelRelationAttributes, CanonAlbumLabelRelationCreationAttributes> implements CanonAlbumLabelRelationAttributes {
|
|
16
|
+
canonAlbumId: string;
|
|
17
|
+
canonLabelId: string;
|
|
18
|
+
createDate: Date;
|
|
19
|
+
updateDate: Date;
|
|
20
|
+
canonLabel: CanonLabel;
|
|
21
|
+
getCanonLabel: Sequelize.BelongsToGetAssociationMixin<CanonLabel>;
|
|
22
|
+
setCanonLabel: Sequelize.BelongsToSetAssociationMixin<CanonLabel, CanonLabelId>;
|
|
23
|
+
createCanonLabel: Sequelize.BelongsToCreateAssociationMixin<CanonLabel>;
|
|
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 CanonAlbumLabelRelation;
|
|
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.CanonAlbumLabelRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonAlbumLabelRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonAlbumLabelRelation.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
|
+
canonLabelId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'canon_label',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'canon_label_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_label_relation',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "canon_album_label_relation_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "canon_album_id" },
|
|
75
|
+
{ name: "canon_label_id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.CanonAlbumLabelRelation = CanonAlbumLabelRelation;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { CanonTrack, CanonTrackId } from './CanonTrack';
|
|
5
|
+
export interface CanonAlbumTrackRelationAttributes {
|
|
6
|
+
canonAlbumId: string;
|
|
7
|
+
canonTrackId: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type CanonAlbumTrackRelationPk = "canonAlbumId" | "canonTrackId";
|
|
12
|
+
export type CanonAlbumTrackRelationId = CanonAlbumTrackRelation[CanonAlbumTrackRelationPk];
|
|
13
|
+
export type CanonAlbumTrackRelationOptionalAttributes = "createDate" | "updateDate";
|
|
14
|
+
export type CanonAlbumTrackRelationCreationAttributes = Optional<CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationOptionalAttributes>;
|
|
15
|
+
export declare class CanonAlbumTrackRelation extends Model<CanonAlbumTrackRelationAttributes, CanonAlbumTrackRelationCreationAttributes> implements CanonAlbumTrackRelationAttributes {
|
|
16
|
+
canonAlbumId: string;
|
|
17
|
+
canonTrackId: string;
|
|
18
|
+
createDate: Date;
|
|
19
|
+
updateDate: Date;
|
|
20
|
+
canonAlbum: CanonAlbum;
|
|
21
|
+
getCanonAlbum: Sequelize.BelongsToGetAssociationMixin<CanonAlbum>;
|
|
22
|
+
setCanonAlbum: Sequelize.BelongsToSetAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
23
|
+
createCanonAlbum: Sequelize.BelongsToCreateAssociationMixin<CanonAlbum>;
|
|
24
|
+
canonTrack: CanonTrack;
|
|
25
|
+
getCanonTrack: Sequelize.BelongsToGetAssociationMixin<CanonTrack>;
|
|
26
|
+
setCanonTrack: Sequelize.BelongsToSetAssociationMixin<CanonTrack, CanonTrackId>;
|
|
27
|
+
createCanonTrack: Sequelize.BelongsToCreateAssociationMixin<CanonTrack>;
|
|
28
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbumTrackRelation;
|
|
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.CanonAlbumTrackRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonAlbumTrackRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonAlbumTrackRelation.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
|
+
canonTrackId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'canon_track',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'canon_track_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_track_relation',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "canon_album_track_relation_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "canon_album_id" },
|
|
75
|
+
{ name: "canon_track_id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.CanonAlbumTrackRelation = CanonAlbumTrackRelation;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonArtistAlbumRelation, CanonArtistAlbumRelationId } from './CanonArtistAlbumRelation';
|
|
4
|
+
import type { CanonArtistImageHarvested, CanonArtistImageHarvestedId } from './CanonArtistImageHarvested';
|
|
5
|
+
import type { CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId } from './CanonToPlatformArtistRelation';
|
|
6
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
7
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
8
|
+
export interface CanonArtistAttributes {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
asciiName: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
hasPhoto: boolean;
|
|
14
|
+
createDate: Date;
|
|
15
|
+
updateDate: Date;
|
|
16
|
+
hasThumbnailPhoto?: boolean;
|
|
17
|
+
images?: object;
|
|
18
|
+
lastImageHarvestAttempt?: Date;
|
|
19
|
+
}
|
|
20
|
+
export type CanonArtistPk = "id";
|
|
21
|
+
export type CanonArtistId = CanonArtist[CanonArtistPk];
|
|
22
|
+
export type CanonArtistOptionalAttributes = "id" | "description" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt";
|
|
23
|
+
export type CanonArtistCreationAttributes = Optional<CanonArtistAttributes, CanonArtistOptionalAttributes>;
|
|
24
|
+
export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreationAttributes> implements CanonArtistAttributes {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
asciiName: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
hasPhoto: boolean;
|
|
30
|
+
createDate: Date;
|
|
31
|
+
updateDate: Date;
|
|
32
|
+
hasThumbnailPhoto?: boolean;
|
|
33
|
+
images?: object;
|
|
34
|
+
lastImageHarvestAttempt?: Date;
|
|
35
|
+
canonArtistAlbumRelations: CanonArtistAlbumRelation[];
|
|
36
|
+
getCanonArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
|
|
37
|
+
setCanonArtistAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
38
|
+
addCanonArtistAlbumRelation: Sequelize.HasManyAddAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
39
|
+
addCanonArtistAlbumRelations: Sequelize.HasManyAddAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
40
|
+
createCanonArtistAlbumRelation: Sequelize.HasManyCreateAssociationMixin<CanonArtistAlbumRelation>;
|
|
41
|
+
removeCanonArtistAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
42
|
+
removeCanonArtistAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
43
|
+
hasCanonArtistAlbumRelation: Sequelize.HasManyHasAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
44
|
+
hasCanonArtistAlbumRelations: Sequelize.HasManyHasAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
|
|
45
|
+
countCanonArtistAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
46
|
+
canonArtistImageHarvesteds: CanonArtistImageHarvested[];
|
|
47
|
+
getCanonArtistImageHarvesteds: Sequelize.HasManyGetAssociationsMixin<CanonArtistImageHarvested>;
|
|
48
|
+
setCanonArtistImageHarvesteds: Sequelize.HasManySetAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
49
|
+
addCanonArtistImageHarvested: Sequelize.HasManyAddAssociationMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
50
|
+
addCanonArtistImageHarvesteds: Sequelize.HasManyAddAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
51
|
+
createCanonArtistImageHarvested: Sequelize.HasManyCreateAssociationMixin<CanonArtistImageHarvested>;
|
|
52
|
+
removeCanonArtistImageHarvested: Sequelize.HasManyRemoveAssociationMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
53
|
+
removeCanonArtistImageHarvesteds: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
54
|
+
hasCanonArtistImageHarvested: Sequelize.HasManyHasAssociationMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
55
|
+
hasCanonArtistImageHarvesteds: Sequelize.HasManyHasAssociationsMixin<CanonArtistImageHarvested, CanonArtistImageHarvestedId>;
|
|
56
|
+
countCanonArtistImageHarvesteds: Sequelize.HasManyCountAssociationsMixin;
|
|
57
|
+
canonToPlatformArtistRelations: CanonToPlatformArtistRelation[];
|
|
58
|
+
getCanonToPlatformArtistRelations: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformArtistRelation>;
|
|
59
|
+
setCanonToPlatformArtistRelations: Sequelize.HasManySetAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
60
|
+
addCanonToPlatformArtistRelation: Sequelize.HasManyAddAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
61
|
+
addCanonToPlatformArtistRelations: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
62
|
+
createCanonToPlatformArtistRelation: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformArtistRelation>;
|
|
63
|
+
removeCanonToPlatformArtistRelation: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
64
|
+
removeCanonToPlatformArtistRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
65
|
+
hasCanonToPlatformArtistRelation: Sequelize.HasManyHasAssociationMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
66
|
+
hasCanonToPlatformArtistRelations: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformArtistRelation, CanonToPlatformArtistRelationId>;
|
|
67
|
+
countCanonToPlatformArtistRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
68
|
+
canonAlbumIdPlatformAlbumCanonArtistAlbumRelations: PlatformAlbum[];
|
|
69
|
+
getCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
|
|
70
|
+
setCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
71
|
+
addCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
72
|
+
addCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
73
|
+
createCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
|
|
74
|
+
removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
75
|
+
removeCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
76
|
+
hasCanonAlbumIdPlatformAlbumCanonArtistAlbumRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
77
|
+
hasCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
78
|
+
countCanonAlbumIdPlatformAlbumCanonArtistAlbumRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
79
|
+
platformArtistIdPlatformArtists: PlatformArtist[];
|
|
80
|
+
getPlatformArtistIdPlatformArtists: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
81
|
+
setPlatformArtistIdPlatformArtists: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
82
|
+
addPlatformArtistIdPlatformArtist: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
83
|
+
addPlatformArtistIdPlatformArtists: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
84
|
+
createPlatformArtistIdPlatformArtist: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
85
|
+
removePlatformArtistIdPlatformArtist: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
86
|
+
removePlatformArtistIdPlatformArtists: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
87
|
+
hasPlatformArtistIdPlatformArtist: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
88
|
+
hasPlatformArtistIdPlatformArtists: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
89
|
+
countPlatformArtistIdPlatformArtists: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
90
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonArtist;
|
|
91
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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.CanonArtist = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonArtist extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonArtist.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
|
+
description: {
|
|
48
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
49
|
+
allowNull: true
|
|
50
|
+
},
|
|
51
|
+
hasPhoto: {
|
|
52
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
53
|
+
allowNull: false,
|
|
54
|
+
defaultValue: false,
|
|
55
|
+
field: 'has_photo'
|
|
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
|
+
hasThumbnailPhoto: {
|
|
70
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
71
|
+
allowNull: true,
|
|
72
|
+
defaultValue: false,
|
|
73
|
+
field: 'has_thumbnail_photo'
|
|
74
|
+
},
|
|
75
|
+
images: {
|
|
76
|
+
type: sequelize_1.DataTypes.JSONB,
|
|
77
|
+
allowNull: true
|
|
78
|
+
},
|
|
79
|
+
lastImageHarvestAttempt: {
|
|
80
|
+
type: sequelize_1.DataTypes.DATE,
|
|
81
|
+
allowNull: true,
|
|
82
|
+
field: 'last_image_harvest_attempt'
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
sequelize,
|
|
86
|
+
tableName: 'canon_artist',
|
|
87
|
+
schema: 'eb',
|
|
88
|
+
timestamps: false,
|
|
89
|
+
indexes: [
|
|
90
|
+
{
|
|
91
|
+
name: "artist_name_idx",
|
|
92
|
+
unique: true,
|
|
93
|
+
fields: [
|
|
94
|
+
{ name: "name" },
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "artist_pkey",
|
|
99
|
+
unique: true,
|
|
100
|
+
fields: [
|
|
101
|
+
{ name: "id" },
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "eb_canon_artist_last_image_harvest_attempt",
|
|
106
|
+
fields: [
|
|
107
|
+
{ name: "last_image_harvest_attempt" },
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
]
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.CanonArtist = CanonArtist;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
5
|
+
export interface CanonArtistAlbumRelationAttributes {
|
|
6
|
+
canonArtistId: string;
|
|
7
|
+
canonAlbumId: string;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type CanonArtistAlbumRelationPk = "canonArtistId" | "canonAlbumId";
|
|
12
|
+
export type CanonArtistAlbumRelationId = CanonArtistAlbumRelation[CanonArtistAlbumRelationPk];
|
|
13
|
+
export type CanonArtistAlbumRelationOptionalAttributes = "createDate" | "updateDate";
|
|
14
|
+
export type CanonArtistAlbumRelationCreationAttributes = Optional<CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationOptionalAttributes>;
|
|
15
|
+
export declare class CanonArtistAlbumRelation extends Model<CanonArtistAlbumRelationAttributes, CanonArtistAlbumRelationCreationAttributes> implements CanonArtistAlbumRelationAttributes {
|
|
16
|
+
canonArtistId: string;
|
|
17
|
+
canonAlbumId: string;
|
|
18
|
+
createDate: Date;
|
|
19
|
+
updateDate: Date;
|
|
20
|
+
canonArtist: CanonArtist;
|
|
21
|
+
getCanonArtist: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
|
|
22
|
+
setCanonArtist: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
|
|
23
|
+
createCanonArtist: Sequelize.BelongsToCreateAssociationMixin<CanonArtist>;
|
|
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 CanonArtistAlbumRelation;
|
|
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.CanonArtistAlbumRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonArtistAlbumRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonArtistAlbumRelation.init({
|
|
32
|
+
canonArtistId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'canon_artist',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'canon_artist_id'
|
|
41
|
+
},
|
|
42
|
+
canonAlbumId: {
|
|
43
|
+
type: sequelize_1.DataTypes.UUID,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
references: {
|
|
47
|
+
model: 'platform_album',
|
|
48
|
+
key: 'id'
|
|
49
|
+
},
|
|
50
|
+
field: 'canon_album_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_artist_album_relation',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "canon_artist_album_relation_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "canon_artist_id" },
|
|
75
|
+
{ name: "canon_album_id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.CanonArtistAlbumRelation = CanonArtistAlbumRelation;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
4
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
5
|
+
export interface CanonArtistExternalReferenceRelationAttributes {
|
|
6
|
+
canonArtistId: string;
|
|
7
|
+
externalReferenceId: string;
|
|
8
|
+
url: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
export type CanonArtistExternalReferenceRelationPk = "canonArtistId" | "externalReferenceId";
|
|
13
|
+
export type CanonArtistExternalReferenceRelationId = CanonArtistExternalReferenceRelation[CanonArtistExternalReferenceRelationPk];
|
|
14
|
+
export type CanonArtistExternalReferenceRelationOptionalAttributes = "createDate" | "updateDate";
|
|
15
|
+
export type CanonArtistExternalReferenceRelationCreationAttributes = Optional<CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationOptionalAttributes>;
|
|
16
|
+
export declare class CanonArtistExternalReferenceRelation extends Model<CanonArtistExternalReferenceRelationAttributes, CanonArtistExternalReferenceRelationCreationAttributes> implements CanonArtistExternalReferenceRelationAttributes {
|
|
17
|
+
canonArtistId: string;
|
|
18
|
+
externalReferenceId: string;
|
|
19
|
+
url: string;
|
|
20
|
+
createDate: Date;
|
|
21
|
+
updateDate: Date;
|
|
22
|
+
externalReference: ExternalReference;
|
|
23
|
+
getExternalReference: Sequelize.BelongsToGetAssociationMixin<ExternalReference>;
|
|
24
|
+
setExternalReference: Sequelize.BelongsToSetAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
25
|
+
createExternalReference: Sequelize.BelongsToCreateAssociationMixin<ExternalReference>;
|
|
26
|
+
canonArtist: PlatformArtist;
|
|
27
|
+
getCanonArtist: Sequelize.BelongsToGetAssociationMixin<PlatformArtist>;
|
|
28
|
+
setCanonArtist: Sequelize.BelongsToSetAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
29
|
+
createCanonArtist: Sequelize.BelongsToCreateAssociationMixin<PlatformArtist>;
|
|
30
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonArtistExternalReferenceRelation;
|
|
31
|
+
}
|