@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,93 @@
|
|
|
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.CanonGenre = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonGenre extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonGenre.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
|
+
unique: "genre_name_pkey"
|
|
42
|
+
},
|
|
43
|
+
asciiName: {
|
|
44
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
45
|
+
allowNull: false,
|
|
46
|
+
field: 'ascii_name'
|
|
47
|
+
},
|
|
48
|
+
description: {
|
|
49
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
50
|
+
allowNull: false
|
|
51
|
+
},
|
|
52
|
+
parentGenreId: {
|
|
53
|
+
type: sequelize_1.DataTypes.UUID,
|
|
54
|
+
allowNull: true,
|
|
55
|
+
field: 'parent_genre_id'
|
|
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
|
+
}, {
|
|
70
|
+
sequelize,
|
|
71
|
+
tableName: 'canon_genre',
|
|
72
|
+
schema: 'eb',
|
|
73
|
+
timestamps: false,
|
|
74
|
+
indexes: [
|
|
75
|
+
{
|
|
76
|
+
name: "genre_name_pkey",
|
|
77
|
+
unique: true,
|
|
78
|
+
fields: [
|
|
79
|
+
{ name: "name" },
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "genre_pkey",
|
|
84
|
+
unique: true,
|
|
85
|
+
fields: [
|
|
86
|
+
{ name: "id" },
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.CanonGenre = CanonGenre;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
|
+
export interface CanonGenreExternalReferenceRelationAttributes {
|
|
6
|
+
canonGenreId: string;
|
|
7
|
+
externalReferenceId: string;
|
|
8
|
+
url: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
export type CanonGenreExternalReferenceRelationPk = "canonGenreId" | "externalReferenceId";
|
|
13
|
+
export type CanonGenreExternalReferenceRelationId = CanonGenreExternalReferenceRelation[CanonGenreExternalReferenceRelationPk];
|
|
14
|
+
export type CanonGenreExternalReferenceRelationOptionalAttributes = "createDate" | "updateDate";
|
|
15
|
+
export type CanonGenreExternalReferenceRelationCreationAttributes = Optional<CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationOptionalAttributes>;
|
|
16
|
+
export declare class CanonGenreExternalReferenceRelation extends Model<CanonGenreExternalReferenceRelationAttributes, CanonGenreExternalReferenceRelationCreationAttributes> implements CanonGenreExternalReferenceRelationAttributes {
|
|
17
|
+
canonGenreId: string;
|
|
18
|
+
externalReferenceId: string;
|
|
19
|
+
url: string;
|
|
20
|
+
createDate: Date;
|
|
21
|
+
updateDate: Date;
|
|
22
|
+
canonGenre: CanonGenre;
|
|
23
|
+
getCanonGenre: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
24
|
+
setCanonGenre: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
25
|
+
createCanonGenre: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
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 CanonGenreExternalReferenceRelation;
|
|
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.CanonGenreExternalReferenceRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonGenreExternalReferenceRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonGenreExternalReferenceRelation.init({
|
|
32
|
+
canonGenreId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'canon_genre',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'canon_genre_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_genre_external_reference_relation',
|
|
71
|
+
schema: 'eb',
|
|
72
|
+
timestamps: false,
|
|
73
|
+
indexes: [
|
|
74
|
+
{
|
|
75
|
+
name: "canon_genre_external_reference_relation_pk",
|
|
76
|
+
unique: true,
|
|
77
|
+
fields: [
|
|
78
|
+
{ name: "external_reference_id" },
|
|
79
|
+
{ name: "canon_genre_id" },
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.CanonGenreExternalReferenceRelation = CanonGenreExternalReferenceRelation;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbumLabelRelation, CanonAlbumLabelRelationId } from './CanonAlbumLabelRelation';
|
|
4
|
+
import type { CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId } from './CanonLabelExternalReferenceRelation';
|
|
5
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
7
|
+
export interface CanonLabelAttributes {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
asciiName: string;
|
|
11
|
+
createDate: Date;
|
|
12
|
+
updateDate: Date;
|
|
13
|
+
}
|
|
14
|
+
export type CanonLabelPk = "id";
|
|
15
|
+
export type CanonLabelId = CanonLabel[CanonLabelPk];
|
|
16
|
+
export type CanonLabelOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
17
|
+
export type CanonLabelCreationAttributes = Optional<CanonLabelAttributes, CanonLabelOptionalAttributes>;
|
|
18
|
+
export declare class CanonLabel extends Model<CanonLabelAttributes, CanonLabelCreationAttributes> implements CanonLabelAttributes {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
asciiName: string;
|
|
22
|
+
createDate: Date;
|
|
23
|
+
updateDate: Date;
|
|
24
|
+
canonAlbumLabelRelations: CanonAlbumLabelRelation[];
|
|
25
|
+
getCanonAlbumLabelRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumLabelRelation>;
|
|
26
|
+
setCanonAlbumLabelRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
27
|
+
addCanonAlbumLabelRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
28
|
+
addCanonAlbumLabelRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
29
|
+
createCanonAlbumLabelRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumLabelRelation>;
|
|
30
|
+
removeCanonAlbumLabelRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
31
|
+
removeCanonAlbumLabelRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
32
|
+
hasCanonAlbumLabelRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
33
|
+
hasCanonAlbumLabelRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
|
|
34
|
+
countCanonAlbumLabelRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
35
|
+
canonLabelExternalReferenceRelations: CanonLabelExternalReferenceRelation[];
|
|
36
|
+
getCanonLabelExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonLabelExternalReferenceRelation>;
|
|
37
|
+
setCanonLabelExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
38
|
+
addCanonLabelExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
39
|
+
addCanonLabelExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
40
|
+
createCanonLabelExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonLabelExternalReferenceRelation>;
|
|
41
|
+
removeCanonLabelExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
42
|
+
removeCanonLabelExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
43
|
+
hasCanonLabelExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
44
|
+
hasCanonLabelExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
45
|
+
countCanonLabelExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
46
|
+
externalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: ExternalReference[];
|
|
47
|
+
getExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
48
|
+
setExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
49
|
+
addExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
50
|
+
addExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
51
|
+
createExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
52
|
+
removeExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
53
|
+
removeExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
54
|
+
hasExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
55
|
+
hasExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
56
|
+
countExternalReferenceIdExternalReferenceCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
57
|
+
canonAlbumIdPlatformAlbumCanonAlbumLabelRelations: PlatformAlbum[];
|
|
58
|
+
getCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformAlbum>;
|
|
59
|
+
setCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
60
|
+
addCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
61
|
+
addCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
62
|
+
createCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformAlbum>;
|
|
63
|
+
removeCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
64
|
+
removeCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
65
|
+
hasCanonAlbumIdPlatformAlbumCanonAlbumLabelRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
66
|
+
hasCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
67
|
+
countCanonAlbumIdPlatformAlbumCanonAlbumLabelRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
68
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonLabel;
|
|
69
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.CanonLabel = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonLabel extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonLabel.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
|
+
createDate: {
|
|
48
|
+
type: sequelize_1.DataTypes.DATE,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
51
|
+
field: 'create_date'
|
|
52
|
+
},
|
|
53
|
+
updateDate: {
|
|
54
|
+
type: sequelize_1.DataTypes.DATE,
|
|
55
|
+
allowNull: false,
|
|
56
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
57
|
+
field: 'update_date'
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
sequelize,
|
|
61
|
+
tableName: 'canon_label',
|
|
62
|
+
schema: 'eb',
|
|
63
|
+
timestamps: false,
|
|
64
|
+
indexes: [
|
|
65
|
+
{
|
|
66
|
+
name: "label_name_idx",
|
|
67
|
+
unique: true,
|
|
68
|
+
fields: [
|
|
69
|
+
{ name: "name" },
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "label_pkey",
|
|
74
|
+
unique: true,
|
|
75
|
+
fields: [
|
|
76
|
+
{ name: "id" },
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.CanonLabel = CanonLabel;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonLabel, CanonLabelId } from './CanonLabel';
|
|
4
|
+
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
|
+
export interface CanonLabelExternalReferenceRelationAttributes {
|
|
6
|
+
canonLabelId: string;
|
|
7
|
+
externalReferenceId: string;
|
|
8
|
+
url: string;
|
|
9
|
+
createDate: Date;
|
|
10
|
+
updateDate: Date;
|
|
11
|
+
}
|
|
12
|
+
export type CanonLabelExternalReferenceRelationPk = "canonLabelId" | "externalReferenceId";
|
|
13
|
+
export type CanonLabelExternalReferenceRelationId = CanonLabelExternalReferenceRelation[CanonLabelExternalReferenceRelationPk];
|
|
14
|
+
export type CanonLabelExternalReferenceRelationOptionalAttributes = "createDate" | "updateDate";
|
|
15
|
+
export type CanonLabelExternalReferenceRelationCreationAttributes = Optional<CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationOptionalAttributes>;
|
|
16
|
+
export declare class CanonLabelExternalReferenceRelation extends Model<CanonLabelExternalReferenceRelationAttributes, CanonLabelExternalReferenceRelationCreationAttributes> implements CanonLabelExternalReferenceRelationAttributes {
|
|
17
|
+
canonLabelId: string;
|
|
18
|
+
externalReferenceId: string;
|
|
19
|
+
url: string;
|
|
20
|
+
createDate: Date;
|
|
21
|
+
updateDate: Date;
|
|
22
|
+
canonLabel: CanonLabel;
|
|
23
|
+
getCanonLabel: Sequelize.BelongsToGetAssociationMixin<CanonLabel>;
|
|
24
|
+
setCanonLabel: Sequelize.BelongsToSetAssociationMixin<CanonLabel, CanonLabelId>;
|
|
25
|
+
createCanonLabel: Sequelize.BelongsToCreateAssociationMixin<CanonLabel>;
|
|
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 CanonLabelExternalReferenceRelation;
|
|
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.CanonLabelExternalReferenceRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonLabelExternalReferenceRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonLabelExternalReferenceRelation.init({
|
|
32
|
+
canonLabelId: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true,
|
|
36
|
+
references: {
|
|
37
|
+
model: 'canon_label',
|
|
38
|
+
key: 'id'
|
|
39
|
+
},
|
|
40
|
+
field: 'canon_label_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_label_external_reference_relation',
|
|
71
|
+
schema: 'eb',
|
|
72
|
+
timestamps: false,
|
|
73
|
+
indexes: [
|
|
74
|
+
{
|
|
75
|
+
name: "canon_label_external_reference_relation_pk",
|
|
76
|
+
unique: true,
|
|
77
|
+
fields: [
|
|
78
|
+
{ name: "canon_label_id" },
|
|
79
|
+
{ name: "external_reference_id" },
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.CanonLabelExternalReferenceRelation = CanonLabelExternalReferenceRelation;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { 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
|
+
export interface CanonMemberAttributes {
|
|
8
|
+
id: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
asciiName?: string;
|
|
11
|
+
createDate?: Date;
|
|
12
|
+
updateDate?: Date;
|
|
13
|
+
isPast?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type CanonMemberPk = "id";
|
|
16
|
+
export type CanonMemberId = CanonMember[CanonMemberPk];
|
|
17
|
+
export type CanonMemberOptionalAttributes = "id" | "name" | "asciiName" | "createDate" | "updateDate" | "isPast";
|
|
18
|
+
export type CanonMemberCreationAttributes = Optional<CanonMemberAttributes, CanonMemberOptionalAttributes>;
|
|
19
|
+
export declare class CanonMember extends Model<CanonMemberAttributes, CanonMemberCreationAttributes> implements CanonMemberAttributes {
|
|
20
|
+
id: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
asciiName?: string;
|
|
23
|
+
createDate?: Date;
|
|
24
|
+
updateDate?: Date;
|
|
25
|
+
isPast?: boolean;
|
|
26
|
+
canonArtistMemberRelations: CanonArtistMemberRelation[];
|
|
27
|
+
getCanonArtistMemberRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistMemberRelation>;
|
|
28
|
+
setCanonArtistMemberRelations: Sequelize.HasManySetAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
29
|
+
addCanonArtistMemberRelation: Sequelize.HasManyAddAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
30
|
+
addCanonArtistMemberRelations: Sequelize.HasManyAddAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
31
|
+
createCanonArtistMemberRelation: Sequelize.HasManyCreateAssociationMixin<CanonArtistMemberRelation>;
|
|
32
|
+
removeCanonArtistMemberRelation: Sequelize.HasManyRemoveAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
33
|
+
removeCanonArtistMemberRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
34
|
+
hasCanonArtistMemberRelation: Sequelize.HasManyHasAssociationMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
35
|
+
hasCanonArtistMemberRelations: Sequelize.HasManyHasAssociationsMixin<CanonArtistMemberRelation, CanonArtistMemberRelationId>;
|
|
36
|
+
countCanonArtistMemberRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
37
|
+
canonMemberExternalReferenceRelations: CanonMemberExternalReferenceRelation[];
|
|
38
|
+
getCanonMemberExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonMemberExternalReferenceRelation>;
|
|
39
|
+
setCanonMemberExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
40
|
+
addCanonMemberExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
41
|
+
addCanonMemberExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
42
|
+
createCanonMemberExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonMemberExternalReferenceRelation>;
|
|
43
|
+
removeCanonMemberExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
44
|
+
removeCanonMemberExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
45
|
+
hasCanonMemberExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
46
|
+
hasCanonMemberExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
47
|
+
countCanonMemberExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
48
|
+
externalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: ExternalReference[];
|
|
49
|
+
getExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyGetAssociationsMixin<ExternalReference>;
|
|
50
|
+
setExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: Sequelize.BelongsToManySetAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
51
|
+
addExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyAddAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
52
|
+
addExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyAddAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
53
|
+
createExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyCreateAssociationMixin<ExternalReference>;
|
|
54
|
+
removeExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyRemoveAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
55
|
+
removeExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
56
|
+
hasExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyHasAssociationMixin<ExternalReference, ExternalReferenceId>;
|
|
57
|
+
hasExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyHasAssociationsMixin<ExternalReference, ExternalReferenceId>;
|
|
58
|
+
countExternalReferenceIdExternalReferenceCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
59
|
+
canonArtistIdPlatformArtistCanonArtistMemberRelations: PlatformArtist[];
|
|
60
|
+
getCanonArtistIdPlatformArtistCanonArtistMemberRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
61
|
+
setCanonArtistIdPlatformArtistCanonArtistMemberRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
62
|
+
addCanonArtistIdPlatformArtistCanonArtistMemberRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
63
|
+
addCanonArtistIdPlatformArtistCanonArtistMemberRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
64
|
+
createCanonArtistIdPlatformArtistCanonArtistMemberRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
65
|
+
removeCanonArtistIdPlatformArtistCanonArtistMemberRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
66
|
+
removeCanonArtistIdPlatformArtistCanonArtistMemberRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
67
|
+
hasCanonArtistIdPlatformArtistCanonArtistMemberRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
68
|
+
hasCanonArtistIdPlatformArtistCanonArtistMemberRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
69
|
+
countCanonArtistIdPlatformArtistCanonArtistMemberRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
70
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CanonMember;
|
|
71
|
+
}
|
|
@@ -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.CanonMember = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonMember extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonMember.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: true
|
|
41
|
+
},
|
|
42
|
+
asciiName: {
|
|
43
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
44
|
+
allowNull: true,
|
|
45
|
+
field: 'ascii_name'
|
|
46
|
+
},
|
|
47
|
+
createDate: {
|
|
48
|
+
type: sequelize_1.DataTypes.DATE,
|
|
49
|
+
allowNull: true,
|
|
50
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
51
|
+
field: 'create_date'
|
|
52
|
+
},
|
|
53
|
+
updateDate: {
|
|
54
|
+
type: sequelize_1.DataTypes.DATE,
|
|
55
|
+
allowNull: true,
|
|
56
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
57
|
+
field: 'update_date'
|
|
58
|
+
},
|
|
59
|
+
isPast: {
|
|
60
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
61
|
+
allowNull: true,
|
|
62
|
+
defaultValue: false,
|
|
63
|
+
field: 'is_past'
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
sequelize,
|
|
67
|
+
tableName: 'canon_member',
|
|
68
|
+
schema: 'eb',
|
|
69
|
+
timestamps: false,
|
|
70
|
+
indexes: [
|
|
71
|
+
{
|
|
72
|
+
name: "member_pkey",
|
|
73
|
+
unique: true,
|
|
74
|
+
fields: [
|
|
75
|
+
{ name: "id" },
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.CanonMember = CanonMember;
|