@earbug/db-models 0.0.60 → 0.0.63
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/.dockerignore +10 -0
- package/.github/workflows/publish.yaml +266 -19
- package/Dockerfile.generate +19 -0
- package/dist/AffinityRelationshipType.d.ts +2 -2
- package/dist/AffinityRelationshipType.js +6 -6
- package/dist/AppUser.d.ts +5 -5
- package/dist/AppUser.js +7 -7
- package/dist/AppUserDevice.d.ts +2 -2
- package/dist/AppUserDevice.js +6 -6
- package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
- package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
- package/dist/AppUserFollowRelation.d.ts +3 -3
- package/dist/AppUserFollowRelation.js +6 -6
- package/dist/AppUserPlatformRelation.d.ts +13 -13
- package/dist/AppUserPlatformRelation.js +25 -25
- package/dist/CanonAlbum.d.ts +5 -5
- package/dist/CanonAlbum.js +10 -10
- package/dist/CanonArtist.d.ts +5 -5
- package/dist/CanonArtist.js +11 -11
- package/dist/CanonGenre.d.ts +3 -3
- package/dist/CanonGenre.js +6 -6
- package/dist/CanonLabel.d.ts +2 -2
- package/dist/CanonLabel.js +6 -6
- package/dist/CanonMember.d.ts +3 -3
- package/dist/CanonMember.js +6 -6
- package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
- package/dist/CanonMemberExternalReferenceRelation.js +5 -5
- package/dist/CanonTrack.d.ts +5 -5
- package/dist/CanonTrack.js +11 -11
- package/dist/ConfigParam.d.ts +2 -2
- package/dist/ConfigParam.js +5 -5
- package/dist/ExternalReference.d.ts +2 -2
- package/dist/ExternalReference.js +5 -5
- package/dist/FeedContentType.d.ts +2 -2
- package/dist/FeedContentType.js +4 -4
- package/dist/GuestUser.d.ts +5 -5
- package/dist/GuestUser.js +13 -13
- package/dist/JukeboxAccessType.d.ts +2 -2
- package/dist/JukeboxAccessType.js +4 -4
- package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
- package/dist/JukeboxCanonGenreRelation.js +6 -6
- package/dist/JukeboxInvite.d.ts +3 -3
- package/dist/JukeboxInvite.js +6 -6
- package/dist/JukeboxQueueEntry.d.ts +9 -9
- package/dist/JukeboxQueueEntry.js +25 -25
- package/dist/JukeboxQueueMode.d.ts +2 -2
- package/dist/JukeboxQueueMode.js +4 -4
- package/dist/JukeboxSession.d.ts +9 -9
- package/dist/JukeboxSession.js +20 -20
- package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
- package/dist/JukeboxSessionArtistAffinity.js +6 -6
- package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
- package/dist/JukeboxSessionGenreAffinity.js +6 -6
- package/dist/JukeboxTerminationCondition.d.ts +2 -2
- package/dist/JukeboxTerminationCondition.js +4 -4
- package/dist/JukeboxType.d.ts +2 -2
- package/dist/JukeboxType.js +4 -4
- package/dist/JukeboxUser.d.ts +7 -7
- package/dist/JukeboxUser.js +20 -20
- package/dist/KnexMigrations.d.ts +3 -3
- package/dist/KnexMigrations.js +6 -6
- package/dist/KnexMigrationsLock.d.ts +3 -3
- package/dist/KnexMigrationsLock.js +5 -5
- package/dist/MerchItem.d.ts +3 -3
- package/dist/MerchItem.js +6 -6
- package/dist/MerchOrchestration.d.ts +3 -3
- package/dist/MerchOrchestration.js +6 -6
- package/dist/MerchPlatform.d.ts +2 -2
- package/dist/MerchPlatform.js +6 -6
- package/dist/MerchType.d.ts +2 -2
- package/dist/MerchType.js +4 -4
- package/dist/MetricsDaily.d.ts +3 -3
- package/dist/MetricsDaily.js +4 -4
- package/dist/NewsSite.d.ts +3 -3
- package/dist/NewsSite.js +6 -6
- package/dist/Notification.d.ts +13 -13
- package/dist/Notification.js +33 -33
- package/dist/Platform.d.ts +2 -2
- package/dist/Platform.js +7 -7
- package/dist/PlatformAlbum.d.ts +5 -5
- package/dist/PlatformAlbum.js +10 -10
- package/dist/PlatformArtist.d.ts +5 -5
- package/dist/PlatformArtist.js +10 -10
- package/dist/PlatformGenre.d.ts +2 -2
- package/dist/PlatformGenre.js +6 -6
- package/dist/PlatformTrack.d.ts +3 -3
- package/dist/PlatformTrack.js +6 -6
- package/dist/PlatformUserAlbum.d.ts +2 -2
- package/dist/PlatformUserAlbum.js +6 -6
- package/dist/PlatformUserAlbumTrack.d.ts +4 -4
- package/dist/PlatformUserAlbumTrack.js +11 -11
- package/dist/PlatformUserPlaylist.d.ts +5 -5
- package/dist/PlatformUserPlaylist.js +11 -11
- package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
- package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
- package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
- package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
- package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
- package/dist/PlatformUserPlaylistTrack.js +17 -17
- package/dist/PlaybackStatus.d.ts +2 -2
- package/dist/PlaybackStatus.js +4 -4
- package/dist/RadioShow.d.ts +3 -3
- package/dist/RadioShow.js +6 -6
- package/dist/RadioShowMedia.d.ts +3 -3
- package/dist/RadioShowMedia.js +6 -6
- package/dist/RadioShowPlacement.d.ts +3 -3
- package/dist/RadioShowPlacement.js +6 -6
- package/dist/RadioShowPublishRequests.d.ts +3 -3
- package/dist/RadioShowPublishRequests.js +6 -6
- package/dist/State.d.ts +2 -2
- package/dist/State.js +4 -4
- package/dist/UnmatchedAlbum.d.ts +2 -2
- package/dist/UnmatchedAlbum.js +6 -6
- package/dist/UnmatchedArtist.d.ts +2 -2
- package/dist/UnmatchedArtist.js +6 -6
- package/dist/UserAbuseReports.d.ts +7 -7
- package/dist/UserAbuseReports.js +18 -18
- package/dist/UserAffinity.d.ts +2 -2
- package/dist/UserAffinity.js +6 -6
- package/dist/UserArtistAffinity.d.ts +2 -2
- package/dist/UserArtistAffinity.js +6 -6
- package/dist/UserBookmarks.d.ts +3 -3
- package/dist/UserBookmarks.js +6 -6
- package/dist/UserComments.d.ts +5 -5
- package/dist/UserComments.js +12 -12
- package/dist/UserContacts.d.ts +3 -3
- package/dist/UserContacts.js +7 -7
- package/dist/UserEngagementFactor.d.ts +2 -2
- package/dist/UserEngagementFactor.js +6 -6
- package/dist/UserGenreAffinity.d.ts +2 -2
- package/dist/UserGenreAffinity.js +6 -6
- package/dist/UserLikes.d.ts +3 -3
- package/dist/UserLikes.js +6 -6
- package/dist/UserMessages.d.ts +5 -5
- package/dist/UserMessages.js +15 -15
- package/dist/Versus.d.ts +5 -5
- package/dist/Versus.js +11 -11
- package/dist/VersusCoCreator.d.ts +4 -4
- package/dist/VersusCoCreator.js +12 -12
- package/dist/VersusOption.d.ts +3 -3
- package/dist/VersusOption.js +6 -6
- package/dist/VersusPublishIssue.d.ts +3 -3
- package/dist/VersusPublishIssue.js +6 -6
- package/dist/VersusQuestion.d.ts +2 -2
- package/dist/VersusQuestion.js +6 -6
- package/dist/VersusVote.d.ts +2 -2
- package/dist/VersusVote.js +6 -6
- package/dist/init-models.d.ts +349 -3
- package/dist/init-models.js +905 -1
- package/models/AffinityRelationshipType.ts +8 -8
- package/models/AppUser.ts +12 -12
- package/models/AppUserDevice.ts +8 -8
- package/models/AppUserDeviceClassicBackup20260906.ts +66 -0
- package/models/AppUserFollowRelation.ts +9 -9
- package/models/AppUserPlatformRelation.ts +38 -38
- package/models/CanonAlbum.ts +15 -15
- package/models/CanonArtist.ts +16 -16
- package/models/CanonGenre.ts +9 -9
- package/models/CanonLabel.ts +8 -8
- package/models/CanonMember.ts +9 -9
- package/models/CanonMemberExternalReferenceRelation.ts +7 -7
- package/models/CanonTrack.ts +16 -16
- package/models/ConfigParam.ts +7 -7
- package/models/ExternalReference.ts +7 -7
- package/models/FeedContentType.ts +6 -6
- package/models/GuestUser.ts +18 -18
- package/models/JukeboxAccessType.ts +6 -6
- package/models/JukeboxCanonGenreRelation.ts +8 -8
- package/models/JukeboxInvite.ts +9 -9
- package/models/JukeboxQueueEntry.ts +34 -34
- package/models/JukeboxQueueMode.ts +6 -6
- package/models/JukeboxSession.ts +29 -29
- package/models/JukeboxSessionArtistAffinity.ts +8 -8
- package/models/JukeboxSessionGenreAffinity.ts +8 -8
- package/models/JukeboxTerminationCondition.ts +6 -6
- package/models/JukeboxType.ts +6 -6
- package/models/JukeboxUser.ts +27 -27
- package/models/KnexMigrations.ts +9 -9
- package/models/KnexMigrationsLock.ts +8 -8
- package/models/MerchItem.ts +9 -9
- package/models/MerchOrchestration.ts +9 -9
- package/models/MerchPlatform.ts +8 -8
- package/models/MerchType.ts +6 -6
- package/models/MetricsDaily.ts +7 -7
- package/models/NewsSite.ts +9 -9
- package/models/Notification.ts +46 -46
- package/models/Platform.ts +9 -9
- package/models/PlatformAlbum.ts +15 -15
- package/models/PlatformArtist.ts +15 -15
- package/models/PlatformGenre.ts +8 -8
- package/models/PlatformTrack.ts +9 -9
- package/models/PlatformUserAlbum.ts +8 -8
- package/models/PlatformUserAlbumTrack.ts +15 -15
- package/models/PlatformUserPlaylist.ts +16 -16
- package/models/PlatformUserPlaylistArtistAffinity.ts +16 -16
- package/models/PlatformUserPlaylistGenreAffinity.ts +8 -8
- package/models/PlatformUserPlaylistTrack.ts +24 -24
- package/models/PlaybackStatus.ts +6 -6
- package/models/RadioShow.ts +9 -9
- package/models/RadioShowMedia.ts +9 -9
- package/models/RadioShowPlacement.ts +9 -9
- package/models/RadioShowPublishRequests.ts +9 -9
- package/models/State.ts +6 -6
- package/models/UnmatchedAlbum.ts +8 -8
- package/models/UnmatchedArtist.ts +8 -8
- package/models/UserAbuseReports.ts +25 -25
- package/models/UserAffinity.ts +8 -8
- package/models/UserArtistAffinity.ts +8 -8
- package/models/UserBookmarks.ts +9 -9
- package/models/UserComments.ts +17 -17
- package/models/UserContacts.ts +10 -10
- package/models/UserEngagementFactor.ts +8 -8
- package/models/UserGenreAffinity.ts +8 -8
- package/models/UserLikes.ts +9 -9
- package/models/UserMessages.ts +20 -20
- package/models/Versus.ts +16 -16
- package/models/VersusCoCreator.ts +16 -16
- package/models/VersusOption.ts +9 -9
- package/models/VersusPublishIssue.ts +9 -9
- package/models/VersusQuestion.ts +8 -8
- package/models/VersusVote.ts +8 -8
- package/models/init-models.ts +1245 -0
- package/package.json +1 -1
- package/scripts/generate-and-upload.mjs +123 -0
- package/dist/CanonAlbumImageHarvested.d.ts +0 -30
- package/dist/CanonAlbumImageHarvested.js +0 -70
- package/dist/CanonArtistImageHarvested.d.ts +0 -30
- package/dist/CanonArtistImageHarvested.js +0 -70
- package/models/CanonAlbumImageHarvested.ts +0 -98
- package/models/CanonArtistImageHarvested.ts +0 -98
|
@@ -3,34 +3,34 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { AppUser, AppUserId } from './AppUser';
|
|
4
4
|
import type { Platform, PlatformId } from './Platform';
|
|
5
5
|
export interface AppUserPlatformRelationAttributes {
|
|
6
|
+
id: string;
|
|
6
7
|
appUserId: string;
|
|
7
8
|
platformId: number;
|
|
8
|
-
externalUserId
|
|
9
|
-
accessToken: string;
|
|
10
|
-
refreshToken?: string;
|
|
11
|
-
expirationDate: Date;
|
|
12
|
-
countryCode: string;
|
|
13
|
-
id: string;
|
|
9
|
+
externalUserId?: string;
|
|
14
10
|
createDate: Date;
|
|
15
11
|
updateDate: Date;
|
|
12
|
+
accessToken?: string;
|
|
13
|
+
refreshToken?: string;
|
|
14
|
+
expirationDate: Date;
|
|
16
15
|
stateId: number;
|
|
16
|
+
countryCode: string;
|
|
17
17
|
}
|
|
18
18
|
export type AppUserPlatformRelationPk = "id";
|
|
19
19
|
export type AppUserPlatformRelationId = AppUserPlatformRelation[AppUserPlatformRelationPk];
|
|
20
|
-
export type AppUserPlatformRelationOptionalAttributes = "
|
|
20
|
+
export type AppUserPlatformRelationOptionalAttributes = "id" | "externalUserId" | "createDate" | "updateDate" | "accessToken" | "refreshToken" | "stateId";
|
|
21
21
|
export type AppUserPlatformRelationCreationAttributes = Optional<AppUserPlatformRelationAttributes, AppUserPlatformRelationOptionalAttributes>;
|
|
22
22
|
export declare class AppUserPlatformRelation extends Model<AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes> implements AppUserPlatformRelationAttributes {
|
|
23
|
+
id: string;
|
|
23
24
|
appUserId: string;
|
|
24
25
|
platformId: number;
|
|
25
|
-
externalUserId
|
|
26
|
-
accessToken: string;
|
|
27
|
-
refreshToken?: string;
|
|
28
|
-
expirationDate: Date;
|
|
29
|
-
countryCode: string;
|
|
30
|
-
id: string;
|
|
26
|
+
externalUserId?: string;
|
|
31
27
|
createDate: Date;
|
|
32
28
|
updateDate: Date;
|
|
29
|
+
accessToken?: string;
|
|
30
|
+
refreshToken?: string;
|
|
31
|
+
expirationDate: Date;
|
|
33
32
|
stateId: number;
|
|
33
|
+
countryCode: string;
|
|
34
34
|
appUser: AppUser;
|
|
35
35
|
getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
36
36
|
setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class AppUserPlatformRelation extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return AppUserPlatformRelation.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
appUserId: {
|
|
33
39
|
type: sequelize_1.DataTypes.UUID,
|
|
34
40
|
allowNull: false,
|
|
@@ -50,12 +56,24 @@ class AppUserPlatformRelation extends sequelize_1.Model {
|
|
|
50
56
|
},
|
|
51
57
|
externalUserId: {
|
|
52
58
|
type: sequelize_1.DataTypes.TEXT,
|
|
53
|
-
allowNull:
|
|
59
|
+
allowNull: true,
|
|
54
60
|
field: 'external_user_id'
|
|
55
61
|
},
|
|
62
|
+
createDate: {
|
|
63
|
+
type: sequelize_1.DataTypes.DATE,
|
|
64
|
+
allowNull: false,
|
|
65
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
66
|
+
field: 'create_date'
|
|
67
|
+
},
|
|
68
|
+
updateDate: {
|
|
69
|
+
type: sequelize_1.DataTypes.DATE,
|
|
70
|
+
allowNull: false,
|
|
71
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
72
|
+
field: 'update_date'
|
|
73
|
+
},
|
|
56
74
|
accessToken: {
|
|
57
75
|
type: sequelize_1.DataTypes.STRING,
|
|
58
|
-
allowNull:
|
|
76
|
+
allowNull: true,
|
|
59
77
|
field: 'access_token'
|
|
60
78
|
},
|
|
61
79
|
refreshToken: {
|
|
@@ -68,34 +86,16 @@ class AppUserPlatformRelation extends sequelize_1.Model {
|
|
|
68
86
|
allowNull: false,
|
|
69
87
|
field: 'expiration_date'
|
|
70
88
|
},
|
|
71
|
-
countryCode: {
|
|
72
|
-
type: sequelize_1.DataTypes.STRING(2),
|
|
73
|
-
allowNull: false,
|
|
74
|
-
field: 'country_code'
|
|
75
|
-
},
|
|
76
|
-
id: {
|
|
77
|
-
type: sequelize_1.DataTypes.UUID,
|
|
78
|
-
allowNull: false,
|
|
79
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
80
|
-
primaryKey: true
|
|
81
|
-
},
|
|
82
|
-
createDate: {
|
|
83
|
-
type: sequelize_1.DataTypes.DATE,
|
|
84
|
-
allowNull: false,
|
|
85
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
86
|
-
field: 'create_date'
|
|
87
|
-
},
|
|
88
|
-
updateDate: {
|
|
89
|
-
type: sequelize_1.DataTypes.DATE,
|
|
90
|
-
allowNull: false,
|
|
91
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
92
|
-
field: 'update_date'
|
|
93
|
-
},
|
|
94
89
|
stateId: {
|
|
95
90
|
type: sequelize_1.DataTypes.SMALLINT,
|
|
96
91
|
allowNull: false,
|
|
97
92
|
defaultValue: 0,
|
|
98
93
|
field: 'state_id'
|
|
94
|
+
},
|
|
95
|
+
countryCode: {
|
|
96
|
+
type: sequelize_1.DataTypes.STRING(2),
|
|
97
|
+
allowNull: false,
|
|
98
|
+
field: 'country_code'
|
|
99
99
|
}
|
|
100
100
|
}, {
|
|
101
101
|
sequelize,
|
package/dist/CanonAlbum.d.ts
CHANGED
|
@@ -9,34 +9,34 @@ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
|
9
9
|
import type { Versus, VersusId } from './Versus';
|
|
10
10
|
import type { VersusOption, VersusOptionId } from './VersusOption';
|
|
11
11
|
export interface CanonAlbumAttributes {
|
|
12
|
+
id: string;
|
|
12
13
|
name: string;
|
|
13
14
|
asciiName: string;
|
|
14
15
|
releaseDate?: string;
|
|
15
16
|
noOfDisc?: number;
|
|
16
|
-
description?: string;
|
|
17
|
-
id: string;
|
|
18
17
|
createDate: Date;
|
|
19
18
|
updateDate: Date;
|
|
20
19
|
hasPhoto?: boolean;
|
|
21
20
|
hasThumbnailPhoto?: boolean;
|
|
21
|
+
description?: string;
|
|
22
22
|
images?: object;
|
|
23
23
|
lastImageHarvestAttempt?: Date;
|
|
24
24
|
}
|
|
25
25
|
export type CanonAlbumPk = "id";
|
|
26
26
|
export type CanonAlbumId = CanonAlbum[CanonAlbumPk];
|
|
27
|
-
export type CanonAlbumOptionalAttributes = "
|
|
27
|
+
export type CanonAlbumOptionalAttributes = "id" | "releaseDate" | "noOfDisc" | "createDate" | "updateDate" | "hasPhoto" | "hasThumbnailPhoto" | "description" | "images" | "lastImageHarvestAttempt";
|
|
28
28
|
export type CanonAlbumCreationAttributes = Optional<CanonAlbumAttributes, CanonAlbumOptionalAttributes>;
|
|
29
29
|
export declare class CanonAlbum extends Model<CanonAlbumAttributes, CanonAlbumCreationAttributes> implements CanonAlbumAttributes {
|
|
30
|
+
id: string;
|
|
30
31
|
name: string;
|
|
31
32
|
asciiName: string;
|
|
32
33
|
releaseDate?: string;
|
|
33
34
|
noOfDisc?: number;
|
|
34
|
-
description?: string;
|
|
35
|
-
id: string;
|
|
36
35
|
createDate: Date;
|
|
37
36
|
updateDate: Date;
|
|
38
37
|
hasPhoto?: boolean;
|
|
39
38
|
hasThumbnailPhoto?: boolean;
|
|
39
|
+
description?: string;
|
|
40
40
|
images?: object;
|
|
41
41
|
lastImageHarvestAttempt?: Date;
|
|
42
42
|
canonAlbumExternalReferenceRelations: CanonAlbumExternalReferenceRelation[];
|
package/dist/CanonAlbum.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonAlbum extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonAlbum.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
name: {
|
|
33
39
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
40
|
allowNull: false
|
|
@@ -48,16 +54,6 @@ class CanonAlbum extends sequelize_1.Model {
|
|
|
48
54
|
allowNull: true,
|
|
49
55
|
field: 'no_of_disc'
|
|
50
56
|
},
|
|
51
|
-
description: {
|
|
52
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
53
|
-
allowNull: true
|
|
54
|
-
},
|
|
55
|
-
id: {
|
|
56
|
-
type: sequelize_1.DataTypes.UUID,
|
|
57
|
-
allowNull: false,
|
|
58
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
59
|
-
primaryKey: true
|
|
60
|
-
},
|
|
61
57
|
createDate: {
|
|
62
58
|
type: sequelize_1.DataTypes.DATE,
|
|
63
59
|
allowNull: false,
|
|
@@ -82,6 +78,10 @@ class CanonAlbum extends sequelize_1.Model {
|
|
|
82
78
|
defaultValue: false,
|
|
83
79
|
field: 'has_thumbnail_photo'
|
|
84
80
|
},
|
|
81
|
+
description: {
|
|
82
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
83
|
+
allowNull: true
|
|
84
|
+
},
|
|
85
85
|
images: {
|
|
86
86
|
type: sequelize_1.DataTypes.JSONB,
|
|
87
87
|
allowNull: true
|
package/dist/CanonArtist.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ import type { UserArtistAffinity, UserArtistAffinityId } from './UserArtistAffin
|
|
|
15
15
|
import type { Versus, VersusId } from './Versus';
|
|
16
16
|
import type { VersusOption, VersusOptionId } from './VersusOption';
|
|
17
17
|
export interface CanonArtistAttributes {
|
|
18
|
+
id: string;
|
|
18
19
|
name: string;
|
|
19
20
|
asciiName: string;
|
|
20
21
|
description?: string;
|
|
21
|
-
id: string;
|
|
22
22
|
hasPhoto: boolean;
|
|
23
23
|
createDate: Date;
|
|
24
24
|
updateDate: Date;
|
|
@@ -27,20 +27,20 @@ export interface CanonArtistAttributes {
|
|
|
27
27
|
lastImageHarvestAttempt?: Date;
|
|
28
28
|
merchHarvestDay?: number;
|
|
29
29
|
newsHarvestDay?: number;
|
|
30
|
+
popularityRank?: number;
|
|
30
31
|
lastGenreHarvestAttempt?: Date;
|
|
31
32
|
genreHarvestCount: number;
|
|
32
|
-
popularityRank?: number;
|
|
33
33
|
popularityScore: number;
|
|
34
34
|
}
|
|
35
35
|
export type CanonArtistPk = "id";
|
|
36
36
|
export type CanonArtistId = CanonArtist[CanonArtistPk];
|
|
37
|
-
export type CanonArtistOptionalAttributes = "
|
|
37
|
+
export type CanonArtistOptionalAttributes = "id" | "description" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "popularityRank" | "lastGenreHarvestAttempt" | "genreHarvestCount" | "popularityScore";
|
|
38
38
|
export type CanonArtistCreationAttributes = Optional<CanonArtistAttributes, CanonArtistOptionalAttributes>;
|
|
39
39
|
export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreationAttributes> implements CanonArtistAttributes {
|
|
40
|
+
id: string;
|
|
40
41
|
name: string;
|
|
41
42
|
asciiName: string;
|
|
42
43
|
description?: string;
|
|
43
|
-
id: string;
|
|
44
44
|
hasPhoto: boolean;
|
|
45
45
|
createDate: Date;
|
|
46
46
|
updateDate: Date;
|
|
@@ -49,9 +49,9 @@ export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtis
|
|
|
49
49
|
lastImageHarvestAttempt?: Date;
|
|
50
50
|
merchHarvestDay?: number;
|
|
51
51
|
newsHarvestDay?: number;
|
|
52
|
+
popularityRank?: number;
|
|
52
53
|
lastGenreHarvestAttempt?: Date;
|
|
53
54
|
genreHarvestCount: number;
|
|
54
|
-
popularityRank?: number;
|
|
55
55
|
popularityScore: number;
|
|
56
56
|
canonArtistAlbumRelations: CanonArtistAlbumRelation[];
|
|
57
57
|
getCanonArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
|
package/dist/CanonArtist.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonArtist extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonArtist.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
32
38
|
name: {
|
|
33
39
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
40
|
allowNull: false
|
|
@@ -42,12 +48,6 @@ class CanonArtist extends sequelize_1.Model {
|
|
|
42
48
|
type: sequelize_1.DataTypes.TEXT,
|
|
43
49
|
allowNull: true
|
|
44
50
|
},
|
|
45
|
-
id: {
|
|
46
|
-
type: sequelize_1.DataTypes.UUID,
|
|
47
|
-
allowNull: false,
|
|
48
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
49
|
-
primaryKey: true
|
|
50
|
-
},
|
|
51
51
|
hasPhoto: {
|
|
52
52
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
53
53
|
allowNull: false,
|
|
@@ -91,6 +91,11 @@ class CanonArtist extends sequelize_1.Model {
|
|
|
91
91
|
allowNull: true,
|
|
92
92
|
field: 'news_harvest_day'
|
|
93
93
|
},
|
|
94
|
+
popularityRank: {
|
|
95
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
96
|
+
allowNull: true,
|
|
97
|
+
field: 'popularity_rank'
|
|
98
|
+
},
|
|
94
99
|
lastGenreHarvestAttempt: {
|
|
95
100
|
type: sequelize_1.DataTypes.DATE,
|
|
96
101
|
allowNull: true,
|
|
@@ -102,11 +107,6 @@ class CanonArtist extends sequelize_1.Model {
|
|
|
102
107
|
defaultValue: 0,
|
|
103
108
|
field: 'genre_harvest_count'
|
|
104
109
|
},
|
|
105
|
-
popularityRank: {
|
|
106
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
107
|
-
allowNull: true,
|
|
108
|
-
field: 'popularity_rank'
|
|
109
|
-
},
|
|
110
110
|
popularityScore: {
|
|
111
111
|
type: sequelize_1.DataTypes.INTEGER,
|
|
112
112
|
allowNull: false,
|
package/dist/CanonGenre.d.ts
CHANGED
|
@@ -15,24 +15,24 @@ import type { RadioShowGenres, RadioShowGenresId } from './RadioShowGenres';
|
|
|
15
15
|
import type { UserGenreAffinity, UserGenreAffinityId } from './UserGenreAffinity';
|
|
16
16
|
import type { Versus, VersusId } from './Versus';
|
|
17
17
|
export interface CanonGenreAttributes {
|
|
18
|
+
id: string;
|
|
18
19
|
name: string;
|
|
19
20
|
asciiName: string;
|
|
20
21
|
description: string;
|
|
21
22
|
parentGenreId?: string;
|
|
22
|
-
id: string;
|
|
23
23
|
createDate: Date;
|
|
24
24
|
updateDate: Date;
|
|
25
25
|
}
|
|
26
26
|
export type CanonGenrePk = "id";
|
|
27
27
|
export type CanonGenreId = CanonGenre[CanonGenrePk];
|
|
28
|
-
export type CanonGenreOptionalAttributes = "
|
|
28
|
+
export type CanonGenreOptionalAttributes = "id" | "parentGenreId" | "createDate" | "updateDate";
|
|
29
29
|
export type CanonGenreCreationAttributes = Optional<CanonGenreAttributes, CanonGenreOptionalAttributes>;
|
|
30
30
|
export declare class CanonGenre extends Model<CanonGenreAttributes, CanonGenreCreationAttributes> implements CanonGenreAttributes {
|
|
31
|
+
id: string;
|
|
31
32
|
name: string;
|
|
32
33
|
asciiName: string;
|
|
33
34
|
description: string;
|
|
34
35
|
parentGenreId?: string;
|
|
35
|
-
id: string;
|
|
36
36
|
createDate: Date;
|
|
37
37
|
updateDate: Date;
|
|
38
38
|
canonAlbumGenreRelations: CanonAlbumGenreRelation[];
|
package/dist/CanonGenre.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonGenre extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
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
|
+
},
|
|
32
38
|
name: {
|
|
33
39
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
40
|
allowNull: false,
|
|
@@ -48,12 +54,6 @@ class CanonGenre extends sequelize_1.Model {
|
|
|
48
54
|
allowNull: true,
|
|
49
55
|
field: 'parent_genre_id'
|
|
50
56
|
},
|
|
51
|
-
id: {
|
|
52
|
-
type: sequelize_1.DataTypes.UUID,
|
|
53
|
-
allowNull: false,
|
|
54
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
55
|
-
primaryKey: true
|
|
56
|
-
},
|
|
57
57
|
createDate: {
|
|
58
58
|
type: sequelize_1.DataTypes.DATE,
|
|
59
59
|
allowNull: false,
|
package/dist/CanonLabel.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import type { CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRe
|
|
|
5
5
|
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
6
|
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
7
7
|
export interface CanonLabelAttributes {
|
|
8
|
+
id: string;
|
|
8
9
|
name: string;
|
|
9
10
|
asciiName: string;
|
|
10
|
-
id: string;
|
|
11
11
|
createDate: Date;
|
|
12
12
|
updateDate: Date;
|
|
13
13
|
}
|
|
@@ -16,9 +16,9 @@ export type CanonLabelId = CanonLabel[CanonLabelPk];
|
|
|
16
16
|
export type CanonLabelOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
17
17
|
export type CanonLabelCreationAttributes = Optional<CanonLabelAttributes, CanonLabelOptionalAttributes>;
|
|
18
18
|
export declare class CanonLabel extends Model<CanonLabelAttributes, CanonLabelCreationAttributes> implements CanonLabelAttributes {
|
|
19
|
+
id: string;
|
|
19
20
|
name: string;
|
|
20
21
|
asciiName: string;
|
|
21
|
-
id: string;
|
|
22
22
|
createDate: Date;
|
|
23
23
|
updateDate: Date;
|
|
24
24
|
canonAlbumLabelRelations: CanonAlbumLabelRelation[];
|
package/dist/CanonLabel.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonLabel extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
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
|
+
},
|
|
32
38
|
name: {
|
|
33
39
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
40
|
allowNull: false
|
|
@@ -38,12 +44,6 @@ class CanonLabel extends sequelize_1.Model {
|
|
|
38
44
|
allowNull: false,
|
|
39
45
|
field: 'ascii_name'
|
|
40
46
|
},
|
|
41
|
-
id: {
|
|
42
|
-
type: sequelize_1.DataTypes.UUID,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
45
|
-
primaryKey: true
|
|
46
|
-
},
|
|
47
47
|
createDate: {
|
|
48
48
|
type: sequelize_1.DataTypes.DATE,
|
|
49
49
|
allowNull: false,
|
package/dist/CanonMember.d.ts
CHANGED
|
@@ -5,21 +5,21 @@ import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReference
|
|
|
5
5
|
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
6
|
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
7
7
|
export interface CanonMemberAttributes {
|
|
8
|
+
id: string;
|
|
8
9
|
name?: string;
|
|
9
10
|
asciiName?: string;
|
|
10
|
-
id: string;
|
|
11
11
|
createDate?: Date;
|
|
12
12
|
updateDate?: Date;
|
|
13
13
|
isPast?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export type CanonMemberPk = "id";
|
|
16
16
|
export type CanonMemberId = CanonMember[CanonMemberPk];
|
|
17
|
-
export type CanonMemberOptionalAttributes = "
|
|
17
|
+
export type CanonMemberOptionalAttributes = "id" | "name" | "asciiName" | "createDate" | "updateDate" | "isPast";
|
|
18
18
|
export type CanonMemberCreationAttributes = Optional<CanonMemberAttributes, CanonMemberOptionalAttributes>;
|
|
19
19
|
export declare class CanonMember extends Model<CanonMemberAttributes, CanonMemberCreationAttributes> implements CanonMemberAttributes {
|
|
20
|
+
id: string;
|
|
20
21
|
name?: string;
|
|
21
22
|
asciiName?: string;
|
|
22
|
-
id: string;
|
|
23
23
|
createDate?: Date;
|
|
24
24
|
updateDate?: Date;
|
|
25
25
|
isPast?: boolean;
|
package/dist/CanonMember.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonMember extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
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
|
+
},
|
|
32
38
|
name: {
|
|
33
39
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
40
|
allowNull: true
|
|
@@ -38,12 +44,6 @@ class CanonMember extends sequelize_1.Model {
|
|
|
38
44
|
allowNull: true,
|
|
39
45
|
field: 'ascii_name'
|
|
40
46
|
},
|
|
41
|
-
id: {
|
|
42
|
-
type: sequelize_1.DataTypes.UUID,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
45
|
-
primaryKey: true
|
|
46
|
-
},
|
|
47
47
|
createDate: {
|
|
48
48
|
type: sequelize_1.DataTypes.DATE,
|
|
49
49
|
allowNull: true,
|
|
@@ -3,10 +3,10 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
4
4
|
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
5
|
export interface CanonMemberExternalReferenceRelationAttributes {
|
|
6
|
+
id: string;
|
|
6
7
|
canonMemberId: string;
|
|
7
8
|
externalReferenceId: string;
|
|
8
9
|
url: string;
|
|
9
|
-
id: string;
|
|
10
10
|
createDate: Date;
|
|
11
11
|
updateDate: Date;
|
|
12
12
|
}
|
|
@@ -15,10 +15,10 @@ export type CanonMemberExternalReferenceRelationId = CanonMemberExternalReferenc
|
|
|
15
15
|
export type CanonMemberExternalReferenceRelationOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
16
16
|
export type CanonMemberExternalReferenceRelationCreationAttributes = Optional<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationOptionalAttributes>;
|
|
17
17
|
export declare class CanonMemberExternalReferenceRelation extends Model<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes> implements CanonMemberExternalReferenceRelationAttributes {
|
|
18
|
+
id: string;
|
|
18
19
|
canonMemberId: string;
|
|
19
20
|
externalReferenceId: string;
|
|
20
21
|
url: string;
|
|
21
|
-
id: string;
|
|
22
22
|
createDate: Date;
|
|
23
23
|
updateDate: Date;
|
|
24
24
|
canonMember: CanonMember;
|
|
@@ -29,6 +29,11 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonMemberExternalReferenceRelation extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonMemberExternalReferenceRelation.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1')
|
|
36
|
+
},
|
|
32
37
|
canonMemberId: {
|
|
33
38
|
type: sequelize_1.DataTypes.UUID,
|
|
34
39
|
allowNull: false,
|
|
@@ -53,11 +58,6 @@ class CanonMemberExternalReferenceRelation extends sequelize_1.Model {
|
|
|
53
58
|
type: sequelize_1.DataTypes.TEXT,
|
|
54
59
|
allowNull: false
|
|
55
60
|
},
|
|
56
|
-
id: {
|
|
57
|
-
type: sequelize_1.DataTypes.UUID,
|
|
58
|
-
allowNull: false,
|
|
59
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1')
|
|
60
|
-
},
|
|
61
61
|
createDate: {
|
|
62
62
|
type: sequelize_1.DataTypes.DATE,
|
|
63
63
|
allowNull: false,
|
package/dist/CanonTrack.d.ts
CHANGED
|
@@ -11,30 +11,30 @@ import type { RadioShowPlacement, RadioShowPlacementId } from './RadioShowPlacem
|
|
|
11
11
|
import type { Versus, VersusId } from './Versus';
|
|
12
12
|
import type { VersusOption, VersusOptionId } from './VersusOption';
|
|
13
13
|
export interface CanonTrackAttributes {
|
|
14
|
+
id: string;
|
|
14
15
|
name: string;
|
|
15
16
|
asciiName: string;
|
|
16
17
|
explicit: boolean;
|
|
17
18
|
discNumber?: number;
|
|
18
19
|
discTrackNumber?: number;
|
|
19
|
-
durationMs: number;
|
|
20
|
-
id: string;
|
|
21
20
|
createDate: Date;
|
|
22
21
|
updateDate: Date;
|
|
22
|
+
durationMs: number;
|
|
23
23
|
}
|
|
24
24
|
export type CanonTrackPk = "id";
|
|
25
25
|
export type CanonTrackId = CanonTrack[CanonTrackPk];
|
|
26
|
-
export type CanonTrackOptionalAttributes = "
|
|
26
|
+
export type CanonTrackOptionalAttributes = "id" | "discNumber" | "discTrackNumber" | "createDate" | "updateDate";
|
|
27
27
|
export type CanonTrackCreationAttributes = Optional<CanonTrackAttributes, CanonTrackOptionalAttributes>;
|
|
28
28
|
export declare class CanonTrack extends Model<CanonTrackAttributes, CanonTrackCreationAttributes> implements CanonTrackAttributes {
|
|
29
|
+
id: string;
|
|
29
30
|
name: string;
|
|
30
31
|
asciiName: string;
|
|
31
32
|
explicit: boolean;
|
|
32
33
|
discNumber?: number;
|
|
33
34
|
discTrackNumber?: number;
|
|
34
|
-
durationMs: number;
|
|
35
|
-
id: string;
|
|
36
35
|
createDate: Date;
|
|
37
36
|
updateDate: Date;
|
|
37
|
+
durationMs: number;
|
|
38
38
|
canonAlbumIdCanonAlbumCanonAlbumTrackRelations: CanonAlbum[];
|
|
39
39
|
getCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonAlbum>;
|
|
40
40
|
setCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
package/dist/CanonTrack.js
CHANGED
|
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonTrack extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
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
|
+
},
|
|
32
38
|
name: {
|
|
33
39
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
40
|
allowNull: false
|
|
@@ -52,17 +58,6 @@ class CanonTrack extends sequelize_1.Model {
|
|
|
52
58
|
allowNull: true,
|
|
53
59
|
field: 'disc_track_number'
|
|
54
60
|
},
|
|
55
|
-
durationMs: {
|
|
56
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
57
|
-
allowNull: false,
|
|
58
|
-
field: 'duration_ms'
|
|
59
|
-
},
|
|
60
|
-
id: {
|
|
61
|
-
type: sequelize_1.DataTypes.UUID,
|
|
62
|
-
allowNull: false,
|
|
63
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
64
|
-
primaryKey: true
|
|
65
|
-
},
|
|
66
61
|
createDate: {
|
|
67
62
|
type: sequelize_1.DataTypes.DATE,
|
|
68
63
|
allowNull: false,
|
|
@@ -74,6 +69,11 @@ class CanonTrack extends sequelize_1.Model {
|
|
|
74
69
|
allowNull: false,
|
|
75
70
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
76
71
|
field: 'update_date'
|
|
72
|
+
},
|
|
73
|
+
durationMs: {
|
|
74
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
75
|
+
allowNull: false,
|
|
76
|
+
field: 'duration_ms'
|
|
77
77
|
}
|
|
78
78
|
}, {
|
|
79
79
|
sequelize,
|
package/dist/ConfigParam.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
export interface ConfigParamAttributes {
|
|
4
|
+
name: string;
|
|
4
5
|
value?: string;
|
|
5
6
|
createdAt: Date;
|
|
6
7
|
updatedAt: Date;
|
|
7
|
-
name: string;
|
|
8
8
|
}
|
|
9
9
|
export type ConfigParamPk = "name";
|
|
10
10
|
export type ConfigParamId = ConfigParam[ConfigParamPk];
|
|
11
11
|
export type ConfigParamOptionalAttributes = "value" | "createdAt" | "updatedAt";
|
|
12
12
|
export type ConfigParamCreationAttributes = Optional<ConfigParamAttributes, ConfigParamOptionalAttributes>;
|
|
13
13
|
export declare class ConfigParam extends Model<ConfigParamAttributes, ConfigParamCreationAttributes> implements ConfigParamAttributes {
|
|
14
|
+
name: string;
|
|
14
15
|
value?: string;
|
|
15
16
|
createdAt: Date;
|
|
16
17
|
updatedAt: Date;
|
|
17
|
-
name: string;
|
|
18
18
|
static initModel(sequelize: Sequelize.Sequelize): typeof ConfigParam;
|
|
19
19
|
}
|
package/dist/ConfigParam.js
CHANGED
|
@@ -29,6 +29,11 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class ConfigParam extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return ConfigParam.init({
|
|
32
|
+
name: {
|
|
33
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
primaryKey: true
|
|
36
|
+
},
|
|
32
37
|
value: {
|
|
33
38
|
type: sequelize_1.DataTypes.TEXT,
|
|
34
39
|
allowNull: true
|
|
@@ -44,11 +49,6 @@ class ConfigParam extends sequelize_1.Model {
|
|
|
44
49
|
allowNull: false,
|
|
45
50
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
46
51
|
field: 'updated_at'
|
|
47
|
-
},
|
|
48
|
-
name: {
|
|
49
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
50
|
-
allowNull: false,
|
|
51
|
-
primaryKey: true
|
|
52
52
|
}
|
|
53
53
|
}, {
|
|
54
54
|
sequelize,
|
|
@@ -11,8 +11,8 @@ import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
|
11
11
|
import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId } from './CanonMemberExternalReferenceRelation';
|
|
12
12
|
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
13
13
|
export interface ExternalReferenceAttributes {
|
|
14
|
-
name: string;
|
|
15
14
|
id: string;
|
|
15
|
+
name: string;
|
|
16
16
|
createDate: Date;
|
|
17
17
|
updateDate: Date;
|
|
18
18
|
}
|
|
@@ -21,8 +21,8 @@ export type ExternalReferenceId = ExternalReference[ExternalReferencePk];
|
|
|
21
21
|
export type ExternalReferenceOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
22
22
|
export type ExternalReferenceCreationAttributes = Optional<ExternalReferenceAttributes, ExternalReferenceOptionalAttributes>;
|
|
23
23
|
export declare class ExternalReference extends Model<ExternalReferenceAttributes, ExternalReferenceCreationAttributes> implements ExternalReferenceAttributes {
|
|
24
|
-
name: string;
|
|
25
24
|
id: string;
|
|
25
|
+
name: string;
|
|
26
26
|
createDate: Date;
|
|
27
27
|
updateDate: Date;
|
|
28
28
|
canonAlbumIdCanonAlbums: CanonAlbum[];
|