@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,99 @@
|
|
|
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.CanonTrack = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class CanonTrack extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return CanonTrack.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
|
+
explicit: {
|
|
48
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
49
|
+
allowNull: false
|
|
50
|
+
},
|
|
51
|
+
discNumber: {
|
|
52
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
field: 'disc_number'
|
|
55
|
+
},
|
|
56
|
+
discTrackNumber: {
|
|
57
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
58
|
+
allowNull: true,
|
|
59
|
+
field: 'disc_track_number'
|
|
60
|
+
},
|
|
61
|
+
createDate: {
|
|
62
|
+
type: sequelize_1.DataTypes.DATE,
|
|
63
|
+
allowNull: false,
|
|
64
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
65
|
+
field: 'create_date'
|
|
66
|
+
},
|
|
67
|
+
updateDate: {
|
|
68
|
+
type: sequelize_1.DataTypes.DATE,
|
|
69
|
+
allowNull: false,
|
|
70
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
71
|
+
field: 'update_date'
|
|
72
|
+
},
|
|
73
|
+
durationMs: {
|
|
74
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
75
|
+
allowNull: false,
|
|
76
|
+
field: 'duration_ms'
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
sequelize,
|
|
80
|
+
tableName: 'canon_track',
|
|
81
|
+
schema: 'eb',
|
|
82
|
+
timestamps: false,
|
|
83
|
+
indexes: [
|
|
84
|
+
{
|
|
85
|
+
name: "canon_track_lower_name_idx",
|
|
86
|
+
fields: []
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "platform_track_pkey",
|
|
90
|
+
unique: true,
|
|
91
|
+
fields: [
|
|
92
|
+
{ name: "id" },
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.CanonTrack = CanonTrack;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
export interface ConfigParamAttributes {
|
|
4
|
+
name: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
}
|
|
9
|
+
export type ConfigParamPk = "name";
|
|
10
|
+
export type ConfigParamId = ConfigParam[ConfigParamPk];
|
|
11
|
+
export type ConfigParamOptionalAttributes = "value" | "createdAt" | "updatedAt";
|
|
12
|
+
export type ConfigParamCreationAttributes = Optional<ConfigParamAttributes, ConfigParamOptionalAttributes>;
|
|
13
|
+
export declare class ConfigParam extends Model<ConfigParamAttributes, ConfigParamCreationAttributes> implements ConfigParamAttributes {
|
|
14
|
+
name: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof ConfigParam;
|
|
19
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.ConfigParam = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class ConfigParam extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return ConfigParam.init({
|
|
32
|
+
name: {
|
|
33
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true
|
|
36
|
+
},
|
|
37
|
+
value: {
|
|
38
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
39
|
+
allowNull: true
|
|
40
|
+
},
|
|
41
|
+
createdAt: {
|
|
42
|
+
type: sequelize_1.DataTypes.DATE,
|
|
43
|
+
allowNull: false,
|
|
44
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
45
|
+
field: 'created_at'
|
|
46
|
+
},
|
|
47
|
+
updatedAt: {
|
|
48
|
+
type: sequelize_1.DataTypes.DATE,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
51
|
+
field: 'updated_at'
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
sequelize,
|
|
55
|
+
tableName: 'config_param',
|
|
56
|
+
schema: 'eb',
|
|
57
|
+
timestamps: false,
|
|
58
|
+
indexes: [
|
|
59
|
+
{
|
|
60
|
+
name: "config_param_pkey",
|
|
61
|
+
unique: true,
|
|
62
|
+
fields: [
|
|
63
|
+
{ name: "name" },
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ConfigParam = ConfigParam;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId } from './CanonAlbumExternalReferenceRelation';
|
|
5
|
+
import type { CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId } from './CanonArtistExternalReferenceRelation';
|
|
6
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
7
|
+
import type { CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId } from './CanonGenreExternalReferenceRelation';
|
|
8
|
+
import type { CanonLabel, CanonLabelId } from './CanonLabel';
|
|
9
|
+
import type { CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId } from './CanonLabelExternalReferenceRelation';
|
|
10
|
+
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
11
|
+
import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId } from './CanonMemberExternalReferenceRelation';
|
|
12
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
13
|
+
export interface ExternalReferenceAttributes {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
createDate: Date;
|
|
17
|
+
updateDate: Date;
|
|
18
|
+
}
|
|
19
|
+
export type ExternalReferencePk = "id";
|
|
20
|
+
export type ExternalReferenceId = ExternalReference[ExternalReferencePk];
|
|
21
|
+
export type ExternalReferenceOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
22
|
+
export type ExternalReferenceCreationAttributes = Optional<ExternalReferenceAttributes, ExternalReferenceOptionalAttributes>;
|
|
23
|
+
export declare class ExternalReference extends Model<ExternalReferenceAttributes, ExternalReferenceCreationAttributes> implements ExternalReferenceAttributes {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
createDate: Date;
|
|
27
|
+
updateDate: Date;
|
|
28
|
+
canonAlbumIdCanonAlbums: CanonAlbum[];
|
|
29
|
+
getCanonAlbumIdCanonAlbums: Sequelize.BelongsToManyGetAssociationsMixin<CanonAlbum>;
|
|
30
|
+
setCanonAlbumIdCanonAlbums: Sequelize.BelongsToManySetAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
31
|
+
addCanonAlbumIdCanonAlbum: Sequelize.BelongsToManyAddAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
32
|
+
addCanonAlbumIdCanonAlbums: Sequelize.BelongsToManyAddAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
33
|
+
createCanonAlbumIdCanonAlbum: Sequelize.BelongsToManyCreateAssociationMixin<CanonAlbum>;
|
|
34
|
+
removeCanonAlbumIdCanonAlbum: Sequelize.BelongsToManyRemoveAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
35
|
+
removeCanonAlbumIdCanonAlbums: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
36
|
+
hasCanonAlbumIdCanonAlbum: Sequelize.BelongsToManyHasAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
37
|
+
hasCanonAlbumIdCanonAlbums: Sequelize.BelongsToManyHasAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
38
|
+
countCanonAlbumIdCanonAlbums: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
39
|
+
canonAlbumExternalReferenceRelations: CanonAlbumExternalReferenceRelation[];
|
|
40
|
+
getCanonAlbumExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumExternalReferenceRelation>;
|
|
41
|
+
setCanonAlbumExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
42
|
+
addCanonAlbumExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
43
|
+
addCanonAlbumExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
44
|
+
createCanonAlbumExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumExternalReferenceRelation>;
|
|
45
|
+
removeCanonAlbumExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
46
|
+
removeCanonAlbumExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
47
|
+
hasCanonAlbumExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
48
|
+
hasCanonAlbumExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumExternalReferenceRelation, CanonAlbumExternalReferenceRelationId>;
|
|
49
|
+
countCanonAlbumExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
50
|
+
canonArtistExternalReferenceRelations: CanonArtistExternalReferenceRelation[];
|
|
51
|
+
getCanonArtistExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistExternalReferenceRelation>;
|
|
52
|
+
setCanonArtistExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
53
|
+
addCanonArtistExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
54
|
+
addCanonArtistExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
55
|
+
createCanonArtistExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonArtistExternalReferenceRelation>;
|
|
56
|
+
removeCanonArtistExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
57
|
+
removeCanonArtistExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
58
|
+
hasCanonArtistExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
59
|
+
hasCanonArtistExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonArtistExternalReferenceRelation, CanonArtistExternalReferenceRelationId>;
|
|
60
|
+
countCanonArtistExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
61
|
+
canonGenreIdCanonGenreCanonGenreExternalReferenceRelations: CanonGenre[];
|
|
62
|
+
getCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonGenre>;
|
|
63
|
+
setCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
64
|
+
addCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation: Sequelize.BelongsToManyAddAssociationMixin<CanonGenre, CanonGenreId>;
|
|
65
|
+
addCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations: Sequelize.BelongsToManyAddAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
66
|
+
createCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation: Sequelize.BelongsToManyCreateAssociationMixin<CanonGenre>;
|
|
67
|
+
removeCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation: Sequelize.BelongsToManyRemoveAssociationMixin<CanonGenre, CanonGenreId>;
|
|
68
|
+
removeCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
69
|
+
hasCanonGenreIdCanonGenreCanonGenreExternalReferenceRelation: Sequelize.BelongsToManyHasAssociationMixin<CanonGenre, CanonGenreId>;
|
|
70
|
+
hasCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations: Sequelize.BelongsToManyHasAssociationsMixin<CanonGenre, CanonGenreId>;
|
|
71
|
+
countCanonGenreIdCanonGenreCanonGenreExternalReferenceRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
72
|
+
canonGenreExternalReferenceRelations: CanonGenreExternalReferenceRelation[];
|
|
73
|
+
getCanonGenreExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonGenreExternalReferenceRelation>;
|
|
74
|
+
setCanonGenreExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
75
|
+
addCanonGenreExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
76
|
+
addCanonGenreExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
77
|
+
createCanonGenreExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonGenreExternalReferenceRelation>;
|
|
78
|
+
removeCanonGenreExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
79
|
+
removeCanonGenreExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
80
|
+
hasCanonGenreExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
81
|
+
hasCanonGenreExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonGenreExternalReferenceRelation, CanonGenreExternalReferenceRelationId>;
|
|
82
|
+
countCanonGenreExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
83
|
+
canonLabelIdCanonLabelCanonLabelExternalReferenceRelations: CanonLabel[];
|
|
84
|
+
getCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonLabel>;
|
|
85
|
+
setCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
86
|
+
addCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyAddAssociationMixin<CanonLabel, CanonLabelId>;
|
|
87
|
+
addCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyAddAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
88
|
+
createCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyCreateAssociationMixin<CanonLabel>;
|
|
89
|
+
removeCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyRemoveAssociationMixin<CanonLabel, CanonLabelId>;
|
|
90
|
+
removeCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
91
|
+
hasCanonLabelIdCanonLabelCanonLabelExternalReferenceRelation: Sequelize.BelongsToManyHasAssociationMixin<CanonLabel, CanonLabelId>;
|
|
92
|
+
hasCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyHasAssociationsMixin<CanonLabel, CanonLabelId>;
|
|
93
|
+
countCanonLabelIdCanonLabelCanonLabelExternalReferenceRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
94
|
+
canonLabelExternalReferenceRelations: CanonLabelExternalReferenceRelation[];
|
|
95
|
+
getCanonLabelExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonLabelExternalReferenceRelation>;
|
|
96
|
+
setCanonLabelExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
97
|
+
addCanonLabelExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
98
|
+
addCanonLabelExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
99
|
+
createCanonLabelExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonLabelExternalReferenceRelation>;
|
|
100
|
+
removeCanonLabelExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
101
|
+
removeCanonLabelExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
102
|
+
hasCanonLabelExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
103
|
+
hasCanonLabelExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRelationId>;
|
|
104
|
+
countCanonLabelExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
105
|
+
canonMemberIdCanonMemberCanonMemberExternalReferenceRelations: CanonMember[];
|
|
106
|
+
getCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonMember>;
|
|
107
|
+
setCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonMember, CanonMemberId>;
|
|
108
|
+
addCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyAddAssociationMixin<CanonMember, CanonMemberId>;
|
|
109
|
+
addCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyAddAssociationsMixin<CanonMember, CanonMemberId>;
|
|
110
|
+
createCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyCreateAssociationMixin<CanonMember>;
|
|
111
|
+
removeCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyRemoveAssociationMixin<CanonMember, CanonMemberId>;
|
|
112
|
+
removeCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonMember, CanonMemberId>;
|
|
113
|
+
hasCanonMemberIdCanonMemberCanonMemberExternalReferenceRelation: Sequelize.BelongsToManyHasAssociationMixin<CanonMember, CanonMemberId>;
|
|
114
|
+
hasCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyHasAssociationsMixin<CanonMember, CanonMemberId>;
|
|
115
|
+
countCanonMemberIdCanonMemberCanonMemberExternalReferenceRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
116
|
+
canonMemberExternalReferenceRelations: CanonMemberExternalReferenceRelation[];
|
|
117
|
+
getCanonMemberExternalReferenceRelations: Sequelize.HasManyGetAssociationsMixin<CanonMemberExternalReferenceRelation>;
|
|
118
|
+
setCanonMemberExternalReferenceRelations: Sequelize.HasManySetAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
119
|
+
addCanonMemberExternalReferenceRelation: Sequelize.HasManyAddAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
120
|
+
addCanonMemberExternalReferenceRelations: Sequelize.HasManyAddAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
121
|
+
createCanonMemberExternalReferenceRelation: Sequelize.HasManyCreateAssociationMixin<CanonMemberExternalReferenceRelation>;
|
|
122
|
+
removeCanonMemberExternalReferenceRelation: Sequelize.HasManyRemoveAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
123
|
+
removeCanonMemberExternalReferenceRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
124
|
+
hasCanonMemberExternalReferenceRelation: Sequelize.HasManyHasAssociationMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
125
|
+
hasCanonMemberExternalReferenceRelations: Sequelize.HasManyHasAssociationsMixin<CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId>;
|
|
126
|
+
countCanonMemberExternalReferenceRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
127
|
+
canonArtistIdPlatformArtists: PlatformArtist[];
|
|
128
|
+
getCanonArtistIdPlatformArtists: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
|
|
129
|
+
setCanonArtistIdPlatformArtists: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
130
|
+
addCanonArtistIdPlatformArtist: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
131
|
+
addCanonArtistIdPlatformArtists: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
132
|
+
createCanonArtistIdPlatformArtist: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
|
|
133
|
+
removeCanonArtistIdPlatformArtist: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
134
|
+
removeCanonArtistIdPlatformArtists: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
135
|
+
hasCanonArtistIdPlatformArtist: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
136
|
+
hasCanonArtistIdPlatformArtists: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
137
|
+
countCanonArtistIdPlatformArtists: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
138
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof ExternalReference;
|
|
139
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.ExternalReference = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class ExternalReference extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return ExternalReference.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: "external_reference_un"
|
|
42
|
+
},
|
|
43
|
+
createDate: {
|
|
44
|
+
type: sequelize_1.DataTypes.DATE,
|
|
45
|
+
allowNull: false,
|
|
46
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
47
|
+
field: 'create_date'
|
|
48
|
+
},
|
|
49
|
+
updateDate: {
|
|
50
|
+
type: sequelize_1.DataTypes.DATE,
|
|
51
|
+
allowNull: false,
|
|
52
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
53
|
+
field: 'update_date'
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
sequelize,
|
|
57
|
+
tableName: 'external_reference',
|
|
58
|
+
schema: 'eb',
|
|
59
|
+
timestamps: false,
|
|
60
|
+
indexes: [
|
|
61
|
+
{
|
|
62
|
+
name: "external_reference_un",
|
|
63
|
+
unique: true,
|
|
64
|
+
fields: [
|
|
65
|
+
{ name: "name" },
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "reference_source_pkey",
|
|
70
|
+
unique: true,
|
|
71
|
+
fields: [
|
|
72
|
+
{ name: "id" },
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ExternalReference = ExternalReference;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
|
+
export interface JukeboxAccessTypeAttributes {
|
|
5
|
+
id: number;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export type JukeboxAccessTypePk = "id";
|
|
9
|
+
export type JukeboxAccessTypeId = JukeboxAccessType[JukeboxAccessTypePk];
|
|
10
|
+
export type JukeboxAccessTypeCreationAttributes = JukeboxAccessTypeAttributes;
|
|
11
|
+
export declare class JukeboxAccessType extends Model<JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes> implements JukeboxAccessTypeAttributes {
|
|
12
|
+
id: number;
|
|
13
|
+
description: string;
|
|
14
|
+
jukeboxSessions: JukeboxSession[];
|
|
15
|
+
getJukeboxSessions: Sequelize.HasManyGetAssociationsMixin<JukeboxSession>;
|
|
16
|
+
setJukeboxSessions: Sequelize.HasManySetAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
17
|
+
addJukeboxSession: Sequelize.HasManyAddAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
18
|
+
addJukeboxSessions: Sequelize.HasManyAddAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
19
|
+
createJukeboxSession: Sequelize.HasManyCreateAssociationMixin<JukeboxSession>;
|
|
20
|
+
removeJukeboxSession: Sequelize.HasManyRemoveAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
21
|
+
removeJukeboxSessions: Sequelize.HasManyRemoveAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
22
|
+
hasJukeboxSession: Sequelize.HasManyHasAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
23
|
+
hasJukeboxSessions: Sequelize.HasManyHasAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
24
|
+
countJukeboxSessions: Sequelize.HasManyCountAssociationsMixin;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxAccessType;
|
|
26
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JukeboxAccessType = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class JukeboxAccessType extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return JukeboxAccessType.init({
|
|
8
|
+
id: {
|
|
9
|
+
autoIncrement: true,
|
|
10
|
+
autoIncrementIdentity: true,
|
|
11
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
12
|
+
allowNull: false,
|
|
13
|
+
primaryKey: true
|
|
14
|
+
},
|
|
15
|
+
description: {
|
|
16
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
+
allowNull: false
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
sequelize,
|
|
21
|
+
tableName: 'jukebox_access_type',
|
|
22
|
+
schema: 'eb',
|
|
23
|
+
timestamps: false,
|
|
24
|
+
indexes: [
|
|
25
|
+
{
|
|
26
|
+
name: "jukebox_access_type_pkey",
|
|
27
|
+
unique: true,
|
|
28
|
+
fields: [
|
|
29
|
+
{ name: "id" },
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.JukeboxAccessType = JukeboxAccessType;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
|
+
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
+
export interface JukeboxCanonGenreRelationAttributes {
|
|
6
|
+
id: string;
|
|
7
|
+
jukeboxSessionId: string;
|
|
8
|
+
canonGenreId: string;
|
|
9
|
+
stateId: number;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export type JukeboxCanonGenreRelationPk = "id";
|
|
14
|
+
export type JukeboxCanonGenreRelationId = JukeboxCanonGenreRelation[JukeboxCanonGenreRelationPk];
|
|
15
|
+
export type JukeboxCanonGenreRelationOptionalAttributes = "id" | "stateId" | "createdAt" | "updatedAt";
|
|
16
|
+
export type JukeboxCanonGenreRelationCreationAttributes = Optional<JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationOptionalAttributes>;
|
|
17
|
+
export declare class JukeboxCanonGenreRelation extends Model<JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes> implements JukeboxCanonGenreRelationAttributes {
|
|
18
|
+
id: string;
|
|
19
|
+
jukeboxSessionId: string;
|
|
20
|
+
canonGenreId: string;
|
|
21
|
+
stateId: number;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
canonGenre: CanonGenre;
|
|
25
|
+
getCanonGenre: Sequelize.BelongsToGetAssociationMixin<CanonGenre>;
|
|
26
|
+
setCanonGenre: Sequelize.BelongsToSetAssociationMixin<CanonGenre, CanonGenreId>;
|
|
27
|
+
createCanonGenre: Sequelize.BelongsToCreateAssociationMixin<CanonGenre>;
|
|
28
|
+
jukeboxSession: JukeboxSession;
|
|
29
|
+
getJukeboxSession: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
30
|
+
setJukeboxSession: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
31
|
+
createJukeboxSession: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
32
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxCanonGenreRelation;
|
|
33
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.JukeboxCanonGenreRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class JukeboxCanonGenreRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return JukeboxCanonGenreRelation.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
jukeboxSessionId: {
|
|
39
|
+
type: sequelize_1.DataTypes.UUID,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'jukebox_session',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
unique: "unique_jukebox_canon_genre",
|
|
46
|
+
field: 'jukebox_session_id'
|
|
47
|
+
},
|
|
48
|
+
canonGenreId: {
|
|
49
|
+
type: sequelize_1.DataTypes.UUID,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'canon_genre',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
unique: "unique_jukebox_canon_genre",
|
|
56
|
+
field: 'canon_genre_id'
|
|
57
|
+
},
|
|
58
|
+
stateId: {
|
|
59
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: 0,
|
|
62
|
+
field: 'state_id'
|
|
63
|
+
},
|
|
64
|
+
createdAt: {
|
|
65
|
+
type: sequelize_1.DataTypes.DATE,
|
|
66
|
+
allowNull: false,
|
|
67
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
68
|
+
field: 'created_at'
|
|
69
|
+
},
|
|
70
|
+
updatedAt: {
|
|
71
|
+
type: sequelize_1.DataTypes.DATE,
|
|
72
|
+
allowNull: false,
|
|
73
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
74
|
+
field: 'updated_at'
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
sequelize,
|
|
78
|
+
tableName: 'jukebox_canon_genre_relation',
|
|
79
|
+
schema: 'eb',
|
|
80
|
+
timestamps: false,
|
|
81
|
+
indexes: [
|
|
82
|
+
{
|
|
83
|
+
name: "jukebox_canon_genre_relation_pkey",
|
|
84
|
+
unique: true,
|
|
85
|
+
fields: [
|
|
86
|
+
{ name: "id" },
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "unique_jukebox_canon_genre",
|
|
91
|
+
unique: true,
|
|
92
|
+
fields: [
|
|
93
|
+
{ name: "jukebox_session_id" },
|
|
94
|
+
{ name: "canon_genre_id" },
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
]
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.JukeboxCanonGenreRelation = JukeboxCanonGenreRelation;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
+
export interface JukeboxInviteAttributes {
|
|
6
|
+
id: string;
|
|
7
|
+
jukeboxSessionId: string;
|
|
8
|
+
inviterUserId: string;
|
|
9
|
+
invitedUserId?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
export type JukeboxInvitePk = "id";
|
|
15
|
+
export type JukeboxInviteId = JukeboxInvite[JukeboxInvitePk];
|
|
16
|
+
export type JukeboxInviteOptionalAttributes = "id" | "invitedUserId" | "email" | "createdAt" | "updatedAt";
|
|
17
|
+
export type JukeboxInviteCreationAttributes = Optional<JukeboxInviteAttributes, JukeboxInviteOptionalAttributes>;
|
|
18
|
+
export declare class JukeboxInvite extends Model<JukeboxInviteAttributes, JukeboxInviteCreationAttributes> implements JukeboxInviteAttributes {
|
|
19
|
+
id: string;
|
|
20
|
+
jukeboxSessionId: string;
|
|
21
|
+
inviterUserId: string;
|
|
22
|
+
invitedUserId?: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
invitedUser: AppUser;
|
|
27
|
+
getInvitedUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
28
|
+
setInvitedUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
29
|
+
createInvitedUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
30
|
+
inviterUser: AppUser;
|
|
31
|
+
getInviterUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
32
|
+
setInviterUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
33
|
+
createInviterUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
34
|
+
jukeboxSession: JukeboxSession;
|
|
35
|
+
getJukeboxSession: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
36
|
+
setJukeboxSession: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
37
|
+
createJukeboxSession: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
38
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof JukeboxInvite;
|
|
39
|
+
}
|