@earbug/db-models 0.0.59 → 0.0.62
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/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/package.json +5 -2
- package/.github/workflows/publish.yaml +0 -56
- package/.nvmrc +0 -1
- 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/model_options.json +0 -3
- package/models/AccessControlPreference.ts +0 -53
- package/models/AffinityRelationshipType.ts +0 -96
- package/models/AffinityTier.ts +0 -131
- package/models/AppUser.ts +0 -577
- package/models/AppUserDevice.ts +0 -101
- package/models/AppUserFollowRelation.ts +0 -128
- package/models/AppUserPlatformRelation.ts +0 -150
- package/models/CanonAlbum.ts +0 -229
- package/models/CanonAlbumExternalReferenceRelation.ts +0 -92
- package/models/CanonAlbumGenreRelation.ts +0 -86
- package/models/CanonAlbumImageHarvested.ts +0 -98
- package/models/CanonAlbumLabelRelation.ts +0 -86
- package/models/CanonAlbumTrackRelation.ts +0 -92
- package/models/CanonArtist.ts +0 -356
- package/models/CanonArtistAlbumRelation.ts +0 -92
- package/models/CanonArtistExternalReferenceRelation.ts +0 -92
- package/models/CanonArtistGenreRelation.ts +0 -86
- package/models/CanonArtistImageHarvested.ts +0 -98
- package/models/CanonArtistMemberRelation.ts +0 -86
- package/models/CanonArtistTrackRelation.ts +0 -92
- package/models/CanonGenre.ts +0 -273
- package/models/CanonGenreExternalReferenceRelation.ts +0 -92
- package/models/CanonLabel.ts +0 -129
- package/models/CanonLabelExternalReferenceRelation.ts +0 -92
- package/models/CanonMember.ts +0 -130
- package/models/CanonMemberExternalReferenceRelation.ts +0 -99
- package/models/CanonToPlatformAlbumRelation.ts +0 -92
- package/models/CanonToPlatformArtistRelation.ts +0 -92
- package/models/CanonToPlatformGenreRelation.ts +0 -86
- package/models/CanonToPlatformTrackRelation.ts +0 -92
- package/models/CanonTrack.ts +0 -232
- package/models/ConfigParam.ts +0 -62
- package/models/ExternalReference.ts +0 -201
- package/models/FeedConfig.ts +0 -65
- package/models/FeedContentType.ts +0 -124
- package/models/GuestUser.ts +0 -137
- package/models/JukeboxAccessType.ts +0 -60
- package/models/JukeboxCanonGenreRelation.ts +0 -108
- package/models/JukeboxInvite.ts +0 -125
- package/models/JukeboxQueueEntry.ts +0 -247
- package/models/JukeboxQueueMode.ts +0 -60
- package/models/JukeboxSession.ts +0 -334
- package/models/JukeboxSessionArtistAffinity.ts +0 -136
- package/models/JukeboxSessionGenreAffinity.ts +0 -136
- package/models/JukeboxStatus.ts +0 -58
- package/models/JukeboxTerminationCondition.ts +0 -60
- package/models/JukeboxType.ts +0 -60
- package/models/JukeboxUser.ts +0 -182
- package/models/JukeboxUserType.ts +0 -58
- package/models/KnexMigrations.ts +0 -60
- package/models/KnexMigrationsLock.ts +0 -48
- package/models/MerchItem.ts +0 -198
- package/models/MerchOrchestration.ts +0 -130
- package/models/MerchPlatform.ts +0 -95
- package/models/MerchType.ts +0 -89
- package/models/MetricsDaily.ts +0 -79
- package/models/MetricsEvent.ts +0 -124
- package/models/NewsArticle.ts +0 -177
- package/models/NewsPlatform.ts +0 -76
- package/models/NewsSite.ts +0 -75
- package/models/Notification.ts +0 -214
- package/models/NotificationType.ts +0 -66
- package/models/PauseStatusType.ts +0 -58
- package/models/Platform.ts +0 -189
- package/models/PlatformAlbum.ts +0 -398
- package/models/PlatformAlbumGenreRelation.ts +0 -86
- package/models/PlatformAlbumTrackRelation.ts +0 -92
- package/models/PlatformArtist.ts +0 -358
- package/models/PlatformArtistAlbumRelation.ts +0 -92
- package/models/PlatformArtistGenreRelation.ts +0 -86
- package/models/PlatformArtistTrackRelation.ts +0 -92
- package/models/PlatformGenre.ts +0 -194
- package/models/PlatformTrack.ts +0 -339
- package/models/PlatformTrackGenreRelation.ts +0 -86
- package/models/PlatformUserAlbum.ts +0 -152
- package/models/PlatformUserAlbumTrack.ts +0 -138
- package/models/PlatformUserPlaylist.ts +0 -260
- package/models/PlatformUserPlaylistArtistAffinity.ts +0 -136
- package/models/PlatformUserPlaylistGenreAffinity.ts +0 -136
- package/models/PlatformUserPlaylistTrack.ts +0 -162
- package/models/PlaybackStatus.ts +0 -47
- package/models/PlaybackStatusType.ts +0 -58
- package/models/RadioShow.ts +0 -209
- package/models/RadioShowGenres.ts +0 -107
- package/models/RadioShowMedia.ts +0 -181
- package/models/RadioShowPlacement.ts +0 -115
- package/models/RadioShowPublishRequests.ts +0 -86
- package/models/State.ts +0 -86
- package/models/TrackDeletionReason.ts +0 -58
- package/models/UnmatchedAlbum.ts +0 -66
- package/models/UnmatchedArtist.ts +0 -81
- package/models/UserAbuseReports.ts +0 -232
- package/models/UserAffinity.ts +0 -117
- package/models/UserArtistAffinity.ts +0 -136
- package/models/UserBookmarks.ts +0 -235
- package/models/UserComments.ts +0 -271
- package/models/UserContacts.ts +0 -155
- package/models/UserEngagementFactor.ts +0 -109
- package/models/UserGenreAffinity.ts +0 -136
- package/models/UserLikes.ts +0 -235
- package/models/UserMessages.ts +0 -189
- package/models/Versus.ts +0 -438
- package/models/VersusAccessType.ts +0 -66
- package/models/VersusCoCreator.ts +0 -111
- package/models/VersusCreatorScope.ts +0 -66
- package/models/VersusEndMode.ts +0 -66
- package/models/VersusEndTimerDuration.ts +0 -81
- package/models/VersusEndVoteThreshold.ts +0 -67
- package/models/VersusEntityKind.ts +0 -79
- package/models/VersusOption.ts +0 -258
- package/models/VersusPublishIssue.ts +0 -146
- package/models/VersusQuestion.ts +0 -123
- package/models/VersusQuestionVariableType.ts +0 -66
- package/models/VersusVote.ts +0 -99
- package/models/VersusVotingListType.ts +0 -66
- package/models/VersusVotingMode.ts +0 -66
- package/models/index.ts +0 -3
- package/models/init-models.ts +0 -14
- package/models/initDb.ts +0 -72
- package/models/rdsCaBundle.ts +0 -5
- package/scripts/update-rds-ca-bundle.mjs +0 -44
- package/tsconfig.json +0 -52
package/models/NewsPlatform.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { NewsArticle, NewsArticleId } from './NewsArticle';
|
|
4
|
-
|
|
5
|
-
export interface NewsPlatformAttributes {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
createDate: Date;
|
|
9
|
-
updateDate: Date;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type NewsPlatformPk = "id";
|
|
13
|
-
export type NewsPlatformId = NewsPlatform[NewsPlatformPk];
|
|
14
|
-
export type NewsPlatformOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
15
|
-
export type NewsPlatformCreationAttributes = Optional<NewsPlatformAttributes, NewsPlatformOptionalAttributes>;
|
|
16
|
-
|
|
17
|
-
export class NewsPlatform extends Model<NewsPlatformAttributes, NewsPlatformCreationAttributes> implements NewsPlatformAttributes {
|
|
18
|
-
id!: string;
|
|
19
|
-
name!: string;
|
|
20
|
-
createDate!: Date;
|
|
21
|
-
updateDate!: Date;
|
|
22
|
-
|
|
23
|
-
// NewsPlatform hasMany NewsArticle via newsPlatformId
|
|
24
|
-
newsArticles!: NewsArticle[];
|
|
25
|
-
getNewsArticles!: Sequelize.HasManyGetAssociationsMixin<NewsArticle>;
|
|
26
|
-
setNewsArticles!: Sequelize.HasManySetAssociationsMixin<NewsArticle, NewsArticleId>;
|
|
27
|
-
addNewsArticle!: Sequelize.HasManyAddAssociationMixin<NewsArticle, NewsArticleId>;
|
|
28
|
-
addNewsArticles!: Sequelize.HasManyAddAssociationsMixin<NewsArticle, NewsArticleId>;
|
|
29
|
-
createNewsArticle!: Sequelize.HasManyCreateAssociationMixin<NewsArticle>;
|
|
30
|
-
removeNewsArticle!: Sequelize.HasManyRemoveAssociationMixin<NewsArticle, NewsArticleId>;
|
|
31
|
-
removeNewsArticles!: Sequelize.HasManyRemoveAssociationsMixin<NewsArticle, NewsArticleId>;
|
|
32
|
-
hasNewsArticle!: Sequelize.HasManyHasAssociationMixin<NewsArticle, NewsArticleId>;
|
|
33
|
-
hasNewsArticles!: Sequelize.HasManyHasAssociationsMixin<NewsArticle, NewsArticleId>;
|
|
34
|
-
countNewsArticles!: Sequelize.HasManyCountAssociationsMixin;
|
|
35
|
-
|
|
36
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof NewsPlatform {
|
|
37
|
-
return NewsPlatform.init({
|
|
38
|
-
id: {
|
|
39
|
-
type: DataTypes.UUID,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
defaultValue: DataTypes.UUIDV4,
|
|
42
|
-
primaryKey: true
|
|
43
|
-
},
|
|
44
|
-
name: {
|
|
45
|
-
type: DataTypes.TEXT,
|
|
46
|
-
allowNull: false
|
|
47
|
-
},
|
|
48
|
-
createDate: {
|
|
49
|
-
type: DataTypes.DATE,
|
|
50
|
-
allowNull: false,
|
|
51
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
52
|
-
field: 'create_date'
|
|
53
|
-
},
|
|
54
|
-
updateDate: {
|
|
55
|
-
type: DataTypes.DATE,
|
|
56
|
-
allowNull: false,
|
|
57
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
58
|
-
field: 'update_date'
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
sequelize,
|
|
62
|
-
tableName: 'news_platform',
|
|
63
|
-
schema: 'eb',
|
|
64
|
-
timestamps: false,
|
|
65
|
-
indexes: [
|
|
66
|
-
{
|
|
67
|
-
name: "news_platform_pkey",
|
|
68
|
-
unique: true,
|
|
69
|
-
fields: [
|
|
70
|
-
{ name: "id" },
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
]
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
package/models/NewsSite.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
|
|
4
|
-
export interface NewsSiteAttributes {
|
|
5
|
-
name: string;
|
|
6
|
-
domain?: string;
|
|
7
|
-
scrapingBaseUrl: string;
|
|
8
|
-
id: number;
|
|
9
|
-
active?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type NewsSitePk = "id";
|
|
13
|
-
export type NewsSiteId = NewsSite[NewsSitePk];
|
|
14
|
-
export type NewsSiteOptionalAttributes = "domain" | "id" | "active";
|
|
15
|
-
export type NewsSiteCreationAttributes = Optional<NewsSiteAttributes, NewsSiteOptionalAttributes>;
|
|
16
|
-
|
|
17
|
-
export class NewsSite extends Model<NewsSiteAttributes, NewsSiteCreationAttributes> implements NewsSiteAttributes {
|
|
18
|
-
name!: string;
|
|
19
|
-
domain?: string;
|
|
20
|
-
scrapingBaseUrl!: string;
|
|
21
|
-
id!: number;
|
|
22
|
-
active?: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof NewsSite {
|
|
26
|
-
return NewsSite.init({
|
|
27
|
-
name: {
|
|
28
|
-
type: DataTypes.STRING(255),
|
|
29
|
-
allowNull: false,
|
|
30
|
-
unique: "news_site_name_unique"
|
|
31
|
-
},
|
|
32
|
-
domain: {
|
|
33
|
-
type: DataTypes.STRING(255),
|
|
34
|
-
allowNull: true
|
|
35
|
-
},
|
|
36
|
-
scrapingBaseUrl: {
|
|
37
|
-
type: DataTypes.STRING(255),
|
|
38
|
-
allowNull: false,
|
|
39
|
-
field: 'scraping_base_url'
|
|
40
|
-
},
|
|
41
|
-
id: {
|
|
42
|
-
autoIncrement: true,
|
|
43
|
-
type: DataTypes.INTEGER,
|
|
44
|
-
allowNull: false,
|
|
45
|
-
primaryKey: true
|
|
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
|
-
}
|
package/models/Notification.ts
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
-
import type { NotificationType, NotificationTypeId } from './NotificationType';
|
|
6
|
-
|
|
7
|
-
export interface NotificationAttributes {
|
|
8
|
-
targetUserId: string;
|
|
9
|
-
notificationTypeId: number;
|
|
10
|
-
metadata?: object;
|
|
11
|
-
readAt?: Date;
|
|
12
|
-
dismissedAt?: Date;
|
|
13
|
-
sourceUserId?: string;
|
|
14
|
-
jukeboxSessionId?: string;
|
|
15
|
-
expiresAt?: Date;
|
|
16
|
-
pushSentAt?: Date;
|
|
17
|
-
pushError?: string;
|
|
18
|
-
id: string;
|
|
19
|
-
isRead: boolean;
|
|
20
|
-
isDismissed: boolean;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
updatedAt: Date;
|
|
23
|
-
pushSent: boolean;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type NotificationPk = "id";
|
|
27
|
-
export type NotificationId = Notification[NotificationPk];
|
|
28
|
-
export type NotificationOptionalAttributes = "metadata" | "readAt" | "dismissedAt" | "sourceUserId" | "jukeboxSessionId" | "expiresAt" | "pushSentAt" | "pushError" | "id" | "createdAt" | "updatedAt";
|
|
29
|
-
export type NotificationCreationAttributes = Optional<NotificationAttributes, NotificationOptionalAttributes>;
|
|
30
|
-
|
|
31
|
-
export class Notification extends Model<NotificationAttributes, NotificationCreationAttributes> implements NotificationAttributes {
|
|
32
|
-
targetUserId!: string;
|
|
33
|
-
notificationTypeId!: number;
|
|
34
|
-
metadata?: object;
|
|
35
|
-
readAt?: Date;
|
|
36
|
-
dismissedAt?: Date;
|
|
37
|
-
sourceUserId?: string;
|
|
38
|
-
jukeboxSessionId?: string;
|
|
39
|
-
expiresAt?: Date;
|
|
40
|
-
pushSentAt?: Date;
|
|
41
|
-
pushError?: string;
|
|
42
|
-
id!: string;
|
|
43
|
-
isRead!: boolean;
|
|
44
|
-
isDismissed!: boolean;
|
|
45
|
-
createdAt!: Date;
|
|
46
|
-
updatedAt!: Date;
|
|
47
|
-
pushSent!: boolean;
|
|
48
|
-
|
|
49
|
-
// Notification belongsTo AppUser via sourceUserId
|
|
50
|
-
sourceUser!: AppUser;
|
|
51
|
-
getSourceUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
52
|
-
setSourceUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
53
|
-
createSourceUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
54
|
-
// Notification belongsTo AppUser via targetUserId
|
|
55
|
-
targetUser!: AppUser;
|
|
56
|
-
getTargetUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
57
|
-
setTargetUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
58
|
-
createTargetUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
59
|
-
// Notification belongsTo JukeboxSession via jukeboxSessionId
|
|
60
|
-
jukeboxSession!: JukeboxSession;
|
|
61
|
-
getJukeboxSession!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
62
|
-
setJukeboxSession!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
63
|
-
createJukeboxSession!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
64
|
-
// Notification belongsTo NotificationType via notificationTypeId
|
|
65
|
-
notificationType!: NotificationType;
|
|
66
|
-
getNotificationType!: Sequelize.BelongsToGetAssociationMixin<NotificationType>;
|
|
67
|
-
setNotificationType!: Sequelize.BelongsToSetAssociationMixin<NotificationType, NotificationTypeId>;
|
|
68
|
-
createNotificationType!: Sequelize.BelongsToCreateAssociationMixin<NotificationType>;
|
|
69
|
-
|
|
70
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof Notification {
|
|
71
|
-
return Notification.init({
|
|
72
|
-
targetUserId: {
|
|
73
|
-
type: DataTypes.UUID,
|
|
74
|
-
allowNull: false,
|
|
75
|
-
references: {
|
|
76
|
-
model: 'app_user',
|
|
77
|
-
key: 'id'
|
|
78
|
-
},
|
|
79
|
-
field: 'target_user_id'
|
|
80
|
-
},
|
|
81
|
-
notificationTypeId: {
|
|
82
|
-
type: DataTypes.SMALLINT,
|
|
83
|
-
allowNull: false,
|
|
84
|
-
references: {
|
|
85
|
-
model: 'notification_type',
|
|
86
|
-
key: 'id'
|
|
87
|
-
},
|
|
88
|
-
field: 'notification_type_id'
|
|
89
|
-
},
|
|
90
|
-
metadata: {
|
|
91
|
-
type: DataTypes.JSONB,
|
|
92
|
-
allowNull: true
|
|
93
|
-
},
|
|
94
|
-
readAt: {
|
|
95
|
-
type: DataTypes.DATE,
|
|
96
|
-
allowNull: true,
|
|
97
|
-
field: 'read_at'
|
|
98
|
-
},
|
|
99
|
-
dismissedAt: {
|
|
100
|
-
type: DataTypes.DATE,
|
|
101
|
-
allowNull: true,
|
|
102
|
-
field: 'dismissed_at'
|
|
103
|
-
},
|
|
104
|
-
sourceUserId: {
|
|
105
|
-
type: DataTypes.UUID,
|
|
106
|
-
allowNull: true,
|
|
107
|
-
references: {
|
|
108
|
-
model: 'app_user',
|
|
109
|
-
key: 'id'
|
|
110
|
-
},
|
|
111
|
-
field: 'source_user_id'
|
|
112
|
-
},
|
|
113
|
-
jukeboxSessionId: {
|
|
114
|
-
type: DataTypes.UUID,
|
|
115
|
-
allowNull: true,
|
|
116
|
-
references: {
|
|
117
|
-
model: 'jukebox_session',
|
|
118
|
-
key: 'id'
|
|
119
|
-
},
|
|
120
|
-
field: 'jukebox_session_id'
|
|
121
|
-
},
|
|
122
|
-
expiresAt: {
|
|
123
|
-
type: DataTypes.DATE,
|
|
124
|
-
allowNull: true,
|
|
125
|
-
field: 'expires_at'
|
|
126
|
-
},
|
|
127
|
-
pushSentAt: {
|
|
128
|
-
type: DataTypes.DATE,
|
|
129
|
-
allowNull: true,
|
|
130
|
-
field: 'push_sent_at'
|
|
131
|
-
},
|
|
132
|
-
pushError: {
|
|
133
|
-
type: DataTypes.TEXT,
|
|
134
|
-
allowNull: true,
|
|
135
|
-
field: 'push_error'
|
|
136
|
-
},
|
|
137
|
-
id: {
|
|
138
|
-
type: DataTypes.UUID,
|
|
139
|
-
allowNull: false,
|
|
140
|
-
defaultValue: DataTypes.UUIDV4,
|
|
141
|
-
primaryKey: true
|
|
142
|
-
},
|
|
143
|
-
isRead: {
|
|
144
|
-
type: DataTypes.BOOLEAN,
|
|
145
|
-
allowNull: false,
|
|
146
|
-
defaultValue: false,
|
|
147
|
-
field: 'is_read'
|
|
148
|
-
},
|
|
149
|
-
isDismissed: {
|
|
150
|
-
type: DataTypes.BOOLEAN,
|
|
151
|
-
allowNull: false,
|
|
152
|
-
defaultValue: false,
|
|
153
|
-
field: 'is_dismissed'
|
|
154
|
-
},
|
|
155
|
-
createdAt: {
|
|
156
|
-
type: DataTypes.DATE,
|
|
157
|
-
allowNull: false,
|
|
158
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
159
|
-
field: 'created_at'
|
|
160
|
-
},
|
|
161
|
-
updatedAt: {
|
|
162
|
-
type: DataTypes.DATE,
|
|
163
|
-
allowNull: false,
|
|
164
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
165
|
-
field: 'updated_at'
|
|
166
|
-
},
|
|
167
|
-
pushSent: {
|
|
168
|
-
type: DataTypes.BOOLEAN,
|
|
169
|
-
allowNull: false,
|
|
170
|
-
defaultValue: false,
|
|
171
|
-
field: 'push_sent'
|
|
172
|
-
}
|
|
173
|
-
}, {
|
|
174
|
-
sequelize,
|
|
175
|
-
tableName: 'notification',
|
|
176
|
-
schema: 'eb',
|
|
177
|
-
timestamps: false,
|
|
178
|
-
indexes: [
|
|
179
|
-
{
|
|
180
|
-
name: "idx_notification_expires_at",
|
|
181
|
-
fields: [
|
|
182
|
-
{ name: "expires_at" },
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "idx_notification_session",
|
|
187
|
-
fields: [
|
|
188
|
-
{ name: "jukebox_session_id" },
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: "idx_notification_source_user",
|
|
193
|
-
fields: [
|
|
194
|
-
{ name: "source_user_id" },
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: "idx_notification_target_user_created_at",
|
|
199
|
-
fields: [
|
|
200
|
-
{ name: "target_user_id" },
|
|
201
|
-
{ name: "created_at", order: "DESC" },
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
name: "notification_pkey",
|
|
206
|
-
unique: true,
|
|
207
|
-
fields: [
|
|
208
|
-
{ name: "id" },
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
|
-
]
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { Notification, NotificationId } from './Notification';
|
|
4
|
-
|
|
5
|
-
export interface NotificationTypeAttributes {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type NotificationTypePk = "id";
|
|
11
|
-
export type NotificationTypeId = NotificationType[NotificationTypePk];
|
|
12
|
-
export type NotificationTypeCreationAttributes = NotificationTypeAttributes;
|
|
13
|
-
|
|
14
|
-
export class NotificationType extends Model<NotificationTypeAttributes, NotificationTypeCreationAttributes> implements NotificationTypeAttributes {
|
|
15
|
-
id!: number;
|
|
16
|
-
name!: string;
|
|
17
|
-
|
|
18
|
-
// NotificationType hasMany Notification via notificationTypeId
|
|
19
|
-
notifications!: Notification[];
|
|
20
|
-
getNotifications!: Sequelize.HasManyGetAssociationsMixin<Notification>;
|
|
21
|
-
setNotifications!: Sequelize.HasManySetAssociationsMixin<Notification, NotificationId>;
|
|
22
|
-
addNotification!: Sequelize.HasManyAddAssociationMixin<Notification, NotificationId>;
|
|
23
|
-
addNotifications!: Sequelize.HasManyAddAssociationsMixin<Notification, NotificationId>;
|
|
24
|
-
createNotification!: Sequelize.HasManyCreateAssociationMixin<Notification>;
|
|
25
|
-
removeNotification!: Sequelize.HasManyRemoveAssociationMixin<Notification, NotificationId>;
|
|
26
|
-
removeNotifications!: Sequelize.HasManyRemoveAssociationsMixin<Notification, NotificationId>;
|
|
27
|
-
hasNotification!: Sequelize.HasManyHasAssociationMixin<Notification, NotificationId>;
|
|
28
|
-
hasNotifications!: Sequelize.HasManyHasAssociationsMixin<Notification, NotificationId>;
|
|
29
|
-
countNotifications!: Sequelize.HasManyCountAssociationsMixin;
|
|
30
|
-
|
|
31
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof NotificationType {
|
|
32
|
-
return NotificationType.init({
|
|
33
|
-
id: {
|
|
34
|
-
type: DataTypes.SMALLINT,
|
|
35
|
-
allowNull: false,
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
|
-
name: {
|
|
39
|
-
type: DataTypes.TEXT,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
unique: "notification_type_name_unique"
|
|
42
|
-
}
|
|
43
|
-
}, {
|
|
44
|
-
sequelize,
|
|
45
|
-
tableName: 'notification_type',
|
|
46
|
-
schema: 'eb',
|
|
47
|
-
timestamps: false,
|
|
48
|
-
indexes: [
|
|
49
|
-
{
|
|
50
|
-
name: "notification_type_name_unique",
|
|
51
|
-
unique: true,
|
|
52
|
-
fields: [
|
|
53
|
-
{ name: "name" },
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "notification_type_pkey",
|
|
58
|
-
unique: true,
|
|
59
|
-
fields: [
|
|
60
|
-
{ name: "id" },
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
]
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
}
|
package/models/Platform.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
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
|
-
name: string;
|
|
15
|
-
createDate: Date;
|
|
16
|
-
updateDate: Date;
|
|
17
|
-
id: number;
|
|
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
|
-
name!: string;
|
|
27
|
-
createDate!: Date;
|
|
28
|
-
updateDate!: Date;
|
|
29
|
-
id!: number;
|
|
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
|
-
name: {
|
|
143
|
-
type: DataTypes.TEXT,
|
|
144
|
-
allowNull: false,
|
|
145
|
-
unique: "uk_name"
|
|
146
|
-
},
|
|
147
|
-
createDate: {
|
|
148
|
-
type: DataTypes.DATE,
|
|
149
|
-
allowNull: false,
|
|
150
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
151
|
-
field: 'create_date'
|
|
152
|
-
},
|
|
153
|
-
updateDate: {
|
|
154
|
-
type: DataTypes.DATE,
|
|
155
|
-
allowNull: false,
|
|
156
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
157
|
-
field: 'update_date'
|
|
158
|
-
},
|
|
159
|
-
id: {
|
|
160
|
-
autoIncrement: true,
|
|
161
|
-
autoIncrementIdentity: true,
|
|
162
|
-
type: DataTypes.SMALLINT,
|
|
163
|
-
allowNull: false,
|
|
164
|
-
primaryKey: true
|
|
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
|
-
}
|