@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,75 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
|
|
4
|
+
export interface NewsSiteAttributes {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
domain?: string;
|
|
8
|
+
scrapingBaseUrl: string;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type NewsSitePk = "id";
|
|
13
|
+
export type NewsSiteId = NewsSite[NewsSitePk];
|
|
14
|
+
export type NewsSiteOptionalAttributes = "id" | "domain" | "active";
|
|
15
|
+
export type NewsSiteCreationAttributes = Optional<NewsSiteAttributes, NewsSiteOptionalAttributes>;
|
|
16
|
+
|
|
17
|
+
export class NewsSite extends Model<NewsSiteAttributes, NewsSiteCreationAttributes> implements NewsSiteAttributes {
|
|
18
|
+
id!: number;
|
|
19
|
+
name!: string;
|
|
20
|
+
domain?: string;
|
|
21
|
+
scrapingBaseUrl!: string;
|
|
22
|
+
active?: boolean;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof NewsSite {
|
|
26
|
+
return NewsSite.init({
|
|
27
|
+
id: {
|
|
28
|
+
autoIncrement: true,
|
|
29
|
+
type: DataTypes.INTEGER,
|
|
30
|
+
allowNull: false,
|
|
31
|
+
primaryKey: true
|
|
32
|
+
},
|
|
33
|
+
name: {
|
|
34
|
+
type: DataTypes.STRING(255),
|
|
35
|
+
allowNull: false,
|
|
36
|
+
unique: "news_site_name_unique"
|
|
37
|
+
},
|
|
38
|
+
domain: {
|
|
39
|
+
type: DataTypes.STRING(255),
|
|
40
|
+
allowNull: true
|
|
41
|
+
},
|
|
42
|
+
scrapingBaseUrl: {
|
|
43
|
+
type: DataTypes.STRING(255),
|
|
44
|
+
allowNull: false,
|
|
45
|
+
field: 'scraping_base_url'
|
|
46
|
+
},
|
|
47
|
+
active: {
|
|
48
|
+
type: DataTypes.BOOLEAN,
|
|
49
|
+
allowNull: true,
|
|
50
|
+
defaultValue: false
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
sequelize,
|
|
54
|
+
tableName: 'news_site',
|
|
55
|
+
schema: 'eb',
|
|
56
|
+
timestamps: false,
|
|
57
|
+
indexes: [
|
|
58
|
+
{
|
|
59
|
+
name: "news_site_name_unique",
|
|
60
|
+
unique: true,
|
|
61
|
+
fields: [
|
|
62
|
+
{ name: "name" },
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "news_site_pkey",
|
|
67
|
+
unique: true,
|
|
68
|
+
fields: [
|
|
69
|
+
{ name: "id" },
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { JukeboxUser, JukeboxUserId } from './JukeboxUser';
|
|
4
|
+
|
|
5
|
+
export interface PauseStatusTypeAttributes {
|
|
6
|
+
id: number;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type PauseStatusTypePk = "id";
|
|
11
|
+
export type PauseStatusTypeId = PauseStatusType[PauseStatusTypePk];
|
|
12
|
+
export type PauseStatusTypeCreationAttributes = PauseStatusTypeAttributes;
|
|
13
|
+
|
|
14
|
+
export class PauseStatusType extends Model<PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes> implements PauseStatusTypeAttributes {
|
|
15
|
+
id!: number;
|
|
16
|
+
description!: string;
|
|
17
|
+
|
|
18
|
+
// PauseStatusType hasMany JukeboxUser via pauseStatusTypeId
|
|
19
|
+
jukeboxUsers!: JukeboxUser[];
|
|
20
|
+
getJukeboxUsers!: Sequelize.HasManyGetAssociationsMixin<JukeboxUser>;
|
|
21
|
+
setJukeboxUsers!: Sequelize.HasManySetAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
22
|
+
addJukeboxUser!: Sequelize.HasManyAddAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
23
|
+
addJukeboxUsers!: Sequelize.HasManyAddAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
24
|
+
createJukeboxUser!: Sequelize.HasManyCreateAssociationMixin<JukeboxUser>;
|
|
25
|
+
removeJukeboxUser!: Sequelize.HasManyRemoveAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
26
|
+
removeJukeboxUsers!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
27
|
+
hasJukeboxUser!: Sequelize.HasManyHasAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
28
|
+
hasJukeboxUsers!: Sequelize.HasManyHasAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
29
|
+
countJukeboxUsers!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
+
|
|
31
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PauseStatusType {
|
|
32
|
+
return PauseStatusType.init({
|
|
33
|
+
id: {
|
|
34
|
+
type: DataTypes.SMALLINT,
|
|
35
|
+
allowNull: false,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
type: DataTypes.STRING(255),
|
|
40
|
+
allowNull: false
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
sequelize,
|
|
44
|
+
tableName: 'pause_status_type',
|
|
45
|
+
schema: 'eb',
|
|
46
|
+
timestamps: false,
|
|
47
|
+
indexes: [
|
|
48
|
+
{
|
|
49
|
+
name: "pause_status_type_pkey",
|
|
50
|
+
unique: true,
|
|
51
|
+
fields: [
|
|
52
|
+
{ name: "id" },
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUserPlatformRelation, AppUserPlatformRelationId } from './AppUserPlatformRelation';
|
|
4
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
5
|
+
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
6
|
+
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
7
|
+
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
8
|
+
import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
|
|
9
|
+
import type { PlatformUserAlbumTrack, PlatformUserAlbumTrackId } from './PlatformUserAlbumTrack';
|
|
10
|
+
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
11
|
+
import type { UnmatchedArtist, UnmatchedArtistId } from './UnmatchedArtist';
|
|
12
|
+
|
|
13
|
+
export interface PlatformAttributes {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
createDate: Date;
|
|
17
|
+
updateDate: Date;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type PlatformPk = "id";
|
|
21
|
+
export type PlatformId = Platform[PlatformPk];
|
|
22
|
+
export type PlatformOptionalAttributes = "createDate" | "updateDate";
|
|
23
|
+
export type PlatformCreationAttributes = Optional<PlatformAttributes, PlatformOptionalAttributes>;
|
|
24
|
+
|
|
25
|
+
export class Platform extends Model<PlatformAttributes, PlatformCreationAttributes> implements PlatformAttributes {
|
|
26
|
+
id!: number;
|
|
27
|
+
name!: string;
|
|
28
|
+
createDate!: Date;
|
|
29
|
+
updateDate!: Date;
|
|
30
|
+
|
|
31
|
+
// Platform hasMany AppUserPlatformRelation via platformId
|
|
32
|
+
appUserPlatformRelations!: AppUserPlatformRelation[];
|
|
33
|
+
getAppUserPlatformRelations!: Sequelize.HasManyGetAssociationsMixin<AppUserPlatformRelation>;
|
|
34
|
+
setAppUserPlatformRelations!: Sequelize.HasManySetAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
35
|
+
addAppUserPlatformRelation!: Sequelize.HasManyAddAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
36
|
+
addAppUserPlatformRelations!: Sequelize.HasManyAddAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
37
|
+
createAppUserPlatformRelation!: Sequelize.HasManyCreateAssociationMixin<AppUserPlatformRelation>;
|
|
38
|
+
removeAppUserPlatformRelation!: Sequelize.HasManyRemoveAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
39
|
+
removeAppUserPlatformRelations!: Sequelize.HasManyRemoveAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
40
|
+
hasAppUserPlatformRelation!: Sequelize.HasManyHasAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
41
|
+
hasAppUserPlatformRelations!: Sequelize.HasManyHasAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
42
|
+
countAppUserPlatformRelations!: Sequelize.HasManyCountAssociationsMixin;
|
|
43
|
+
// Platform hasMany PlatformAlbum via platformId
|
|
44
|
+
platformAlbums!: PlatformAlbum[];
|
|
45
|
+
getPlatformAlbums!: Sequelize.HasManyGetAssociationsMixin<PlatformAlbum>;
|
|
46
|
+
setPlatformAlbums!: Sequelize.HasManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
47
|
+
addPlatformAlbum!: Sequelize.HasManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
48
|
+
addPlatformAlbums!: Sequelize.HasManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
49
|
+
createPlatformAlbum!: Sequelize.HasManyCreateAssociationMixin<PlatformAlbum>;
|
|
50
|
+
removePlatformAlbum!: Sequelize.HasManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
51
|
+
removePlatformAlbums!: Sequelize.HasManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
52
|
+
hasPlatformAlbum!: Sequelize.HasManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
53
|
+
hasPlatformAlbums!: Sequelize.HasManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
|
|
54
|
+
countPlatformAlbums!: Sequelize.HasManyCountAssociationsMixin;
|
|
55
|
+
// Platform hasMany PlatformArtist via platformId
|
|
56
|
+
platformArtists!: PlatformArtist[];
|
|
57
|
+
getPlatformArtists!: Sequelize.HasManyGetAssociationsMixin<PlatformArtist>;
|
|
58
|
+
setPlatformArtists!: Sequelize.HasManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
59
|
+
addPlatformArtist!: Sequelize.HasManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
60
|
+
addPlatformArtists!: Sequelize.HasManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
61
|
+
createPlatformArtist!: Sequelize.HasManyCreateAssociationMixin<PlatformArtist>;
|
|
62
|
+
removePlatformArtist!: Sequelize.HasManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
63
|
+
removePlatformArtists!: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
64
|
+
hasPlatformArtist!: Sequelize.HasManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
|
|
65
|
+
hasPlatformArtists!: Sequelize.HasManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
|
|
66
|
+
countPlatformArtists!: Sequelize.HasManyCountAssociationsMixin;
|
|
67
|
+
// Platform hasMany PlatformGenre via platformId
|
|
68
|
+
platformGenres!: PlatformGenre[];
|
|
69
|
+
getPlatformGenres!: Sequelize.HasManyGetAssociationsMixin<PlatformGenre>;
|
|
70
|
+
setPlatformGenres!: Sequelize.HasManySetAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
71
|
+
addPlatformGenre!: Sequelize.HasManyAddAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
72
|
+
addPlatformGenres!: Sequelize.HasManyAddAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
73
|
+
createPlatformGenre!: Sequelize.HasManyCreateAssociationMixin<PlatformGenre>;
|
|
74
|
+
removePlatformGenre!: Sequelize.HasManyRemoveAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
75
|
+
removePlatformGenres!: Sequelize.HasManyRemoveAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
76
|
+
hasPlatformGenre!: Sequelize.HasManyHasAssociationMixin<PlatformGenre, PlatformGenreId>;
|
|
77
|
+
hasPlatformGenres!: Sequelize.HasManyHasAssociationsMixin<PlatformGenre, PlatformGenreId>;
|
|
78
|
+
countPlatformGenres!: Sequelize.HasManyCountAssociationsMixin;
|
|
79
|
+
// Platform hasMany PlatformTrack via platformId
|
|
80
|
+
platformTracks!: PlatformTrack[];
|
|
81
|
+
getPlatformTracks!: Sequelize.HasManyGetAssociationsMixin<PlatformTrack>;
|
|
82
|
+
setPlatformTracks!: Sequelize.HasManySetAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
83
|
+
addPlatformTrack!: Sequelize.HasManyAddAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
84
|
+
addPlatformTracks!: Sequelize.HasManyAddAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
85
|
+
createPlatformTrack!: Sequelize.HasManyCreateAssociationMixin<PlatformTrack>;
|
|
86
|
+
removePlatformTrack!: Sequelize.HasManyRemoveAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
87
|
+
removePlatformTracks!: Sequelize.HasManyRemoveAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
88
|
+
hasPlatformTrack!: Sequelize.HasManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
|
|
89
|
+
hasPlatformTracks!: Sequelize.HasManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
|
|
90
|
+
countPlatformTracks!: Sequelize.HasManyCountAssociationsMixin;
|
|
91
|
+
// Platform hasMany PlatformUserAlbum via platformId
|
|
92
|
+
platformUserAlbums!: PlatformUserAlbum[];
|
|
93
|
+
getPlatformUserAlbums!: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbum>;
|
|
94
|
+
setPlatformUserAlbums!: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
95
|
+
addPlatformUserAlbum!: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
96
|
+
addPlatformUserAlbums!: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
97
|
+
createPlatformUserAlbum!: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbum>;
|
|
98
|
+
removePlatformUserAlbum!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
99
|
+
removePlatformUserAlbums!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
100
|
+
hasPlatformUserAlbum!: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
101
|
+
hasPlatformUserAlbums!: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
102
|
+
countPlatformUserAlbums!: Sequelize.HasManyCountAssociationsMixin;
|
|
103
|
+
// Platform hasMany PlatformUserAlbumTrack via platformId
|
|
104
|
+
platformUserAlbumTracks!: PlatformUserAlbumTrack[];
|
|
105
|
+
getPlatformUserAlbumTracks!: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbumTrack>;
|
|
106
|
+
setPlatformUserAlbumTracks!: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
107
|
+
addPlatformUserAlbumTrack!: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
108
|
+
addPlatformUserAlbumTracks!: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
109
|
+
createPlatformUserAlbumTrack!: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbumTrack>;
|
|
110
|
+
removePlatformUserAlbumTrack!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
111
|
+
removePlatformUserAlbumTracks!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
112
|
+
hasPlatformUserAlbumTrack!: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
113
|
+
hasPlatformUserAlbumTracks!: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
|
|
114
|
+
countPlatformUserAlbumTracks!: Sequelize.HasManyCountAssociationsMixin;
|
|
115
|
+
// Platform hasMany PlatformUserPlaylist via platformId
|
|
116
|
+
platformUserPlaylists!: PlatformUserPlaylist[];
|
|
117
|
+
getPlatformUserPlaylists!: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylist>;
|
|
118
|
+
setPlatformUserPlaylists!: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
119
|
+
addPlatformUserPlaylist!: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
120
|
+
addPlatformUserPlaylists!: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
121
|
+
createPlatformUserPlaylist!: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylist>;
|
|
122
|
+
removePlatformUserPlaylist!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
123
|
+
removePlatformUserPlaylists!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
124
|
+
hasPlatformUserPlaylist!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
125
|
+
hasPlatformUserPlaylists!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
126
|
+
countPlatformUserPlaylists!: Sequelize.HasManyCountAssociationsMixin;
|
|
127
|
+
// Platform hasMany UnmatchedArtist via platformId
|
|
128
|
+
unmatchedArtists!: UnmatchedArtist[];
|
|
129
|
+
getUnmatchedArtists!: Sequelize.HasManyGetAssociationsMixin<UnmatchedArtist>;
|
|
130
|
+
setUnmatchedArtists!: Sequelize.HasManySetAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
131
|
+
addUnmatchedArtist!: Sequelize.HasManyAddAssociationMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
132
|
+
addUnmatchedArtists!: Sequelize.HasManyAddAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
133
|
+
createUnmatchedArtist!: Sequelize.HasManyCreateAssociationMixin<UnmatchedArtist>;
|
|
134
|
+
removeUnmatchedArtist!: Sequelize.HasManyRemoveAssociationMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
135
|
+
removeUnmatchedArtists!: Sequelize.HasManyRemoveAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
136
|
+
hasUnmatchedArtist!: Sequelize.HasManyHasAssociationMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
137
|
+
hasUnmatchedArtists!: Sequelize.HasManyHasAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
|
|
138
|
+
countUnmatchedArtists!: Sequelize.HasManyCountAssociationsMixin;
|
|
139
|
+
|
|
140
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof Platform {
|
|
141
|
+
return Platform.init({
|
|
142
|
+
id: {
|
|
143
|
+
autoIncrement: true,
|
|
144
|
+
autoIncrementIdentity: true,
|
|
145
|
+
type: DataTypes.SMALLINT,
|
|
146
|
+
allowNull: false,
|
|
147
|
+
primaryKey: true
|
|
148
|
+
},
|
|
149
|
+
name: {
|
|
150
|
+
type: DataTypes.TEXT,
|
|
151
|
+
allowNull: false,
|
|
152
|
+
unique: "uk_name"
|
|
153
|
+
},
|
|
154
|
+
createDate: {
|
|
155
|
+
type: DataTypes.DATE,
|
|
156
|
+
allowNull: false,
|
|
157
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
158
|
+
field: 'create_date'
|
|
159
|
+
},
|
|
160
|
+
updateDate: {
|
|
161
|
+
type: DataTypes.DATE,
|
|
162
|
+
allowNull: false,
|
|
163
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
164
|
+
field: 'update_date'
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
sequelize,
|
|
168
|
+
tableName: 'platform',
|
|
169
|
+
schema: 'eb',
|
|
170
|
+
timestamps: false,
|
|
171
|
+
indexes: [
|
|
172
|
+
{
|
|
173
|
+
name: "external_source_pkey",
|
|
174
|
+
unique: true,
|
|
175
|
+
fields: [
|
|
176
|
+
{ name: "id" },
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "uk_name",
|
|
181
|
+
unique: true,
|
|
182
|
+
fields: [
|
|
183
|
+
{ name: "name" },
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
]
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}
|