@earbug/db-models 0.0.60 → 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/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earbug/db-models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
6
9
|
"scripts": {
|
|
7
10
|
"generate-models": "sequelize-auto -l ts --cm=p --cf=p --cp=c -o \"./models\" -a ./model_options.json -d earbug_live -h localhost -u postgres -p 5432 -e postgres -T harvested_article article_to_artist_relation",
|
|
8
11
|
"update-rds-ca": "node scripts/update-rds-ca-bundle.mjs",
|
|
9
|
-
"build": "tsc"
|
|
12
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc"
|
|
10
13
|
},
|
|
11
14
|
"peerDependencies": {
|
|
12
15
|
"sequelize": "^6.37.3"
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
name: Regenerate Models and Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
repository_dispatch:
|
|
5
|
-
types: [migration_completed]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish:
|
|
9
|
-
name: Regenerate, Build, and Publish
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
contents: write
|
|
13
|
-
id-token: write
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v6
|
|
16
|
-
with:
|
|
17
|
-
token: ${{ secrets.MODELS_DISPATCH_TOKEN }}
|
|
18
|
-
|
|
19
|
-
- uses: actions/setup-node@v6
|
|
20
|
-
with:
|
|
21
|
-
node-version: 24
|
|
22
|
-
registry-url: https://registry.npmjs.org
|
|
23
|
-
|
|
24
|
-
- run: npm ci
|
|
25
|
-
|
|
26
|
-
- name: Patch sequelize-auto to support citext
|
|
27
|
-
run: |
|
|
28
|
-
sed -i 's/\^(char/\^(citext|char/' \
|
|
29
|
-
node_modules/sequelize-auto/lib/auto-generator.js
|
|
30
|
-
|
|
31
|
-
- name: Generate models from dev database
|
|
32
|
-
run: |
|
|
33
|
-
npx sequelize-auto -l ts --cm=p --cf=p --cp=c -o "./models" -a ./model_options.json \
|
|
34
|
-
-d earbug_live -h "$DEV_EB_DB_HOST" -u postgres -x "$DEV_EB_DB_USER_PASSWORD" -p 5432 -e postgres \
|
|
35
|
-
-T harvested_article article_to_artist_relation
|
|
36
|
-
env:
|
|
37
|
-
DEV_EB_DB_HOST: ${{ secrets.DEV_EB_DB_HOST }}
|
|
38
|
-
DEV_EB_DB_USER_PASSWORD: ${{ secrets.DEV_EB_DB_USER_PASSWORD }}
|
|
39
|
-
|
|
40
|
-
- name: Build
|
|
41
|
-
run: npm run build
|
|
42
|
-
|
|
43
|
-
- name: Bump patch version
|
|
44
|
-
id: version
|
|
45
|
-
run: echo "version=$(npm version patch --no-git-tag-version)" >> $GITHUB_OUTPUT
|
|
46
|
-
|
|
47
|
-
- name: Publish to npm
|
|
48
|
-
run: npm publish --access public
|
|
49
|
-
|
|
50
|
-
- name: Commit and push changes
|
|
51
|
-
run: |
|
|
52
|
-
git config user.name "github-actions[bot]"
|
|
53
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
54
|
-
git add models/ package.json
|
|
55
|
-
git commit -m "${{ steps.version.outputs.version }} — regenerate models and publish"
|
|
56
|
-
git push
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
24
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
-
export interface CanonAlbumImageHarvestedAttributes {
|
|
5
|
-
dateHarvested: Date;
|
|
6
|
-
storageKey: string;
|
|
7
|
-
harvestMethod?: string;
|
|
8
|
-
priority?: number;
|
|
9
|
-
id: string;
|
|
10
|
-
url?: string;
|
|
11
|
-
canonAlbumId: string;
|
|
12
|
-
}
|
|
13
|
-
export type CanonAlbumImageHarvestedPk = "id";
|
|
14
|
-
export type CanonAlbumImageHarvestedId = CanonAlbumImageHarvested[CanonAlbumImageHarvestedPk];
|
|
15
|
-
export type CanonAlbumImageHarvestedOptionalAttributes = "harvestMethod" | "priority" | "id" | "url";
|
|
16
|
-
export type CanonAlbumImageHarvestedCreationAttributes = Optional<CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedOptionalAttributes>;
|
|
17
|
-
export declare class CanonAlbumImageHarvested extends Model<CanonAlbumImageHarvestedAttributes, CanonAlbumImageHarvestedCreationAttributes> implements CanonAlbumImageHarvestedAttributes {
|
|
18
|
-
dateHarvested: Date;
|
|
19
|
-
storageKey: string;
|
|
20
|
-
harvestMethod?: string;
|
|
21
|
-
priority?: number;
|
|
22
|
-
id: string;
|
|
23
|
-
url?: string;
|
|
24
|
-
canonAlbumId: string;
|
|
25
|
-
canonAlbum: CanonAlbum;
|
|
26
|
-
getCanonAlbum: Sequelize.BelongsToGetAssociationMixin<CanonAlbum>;
|
|
27
|
-
setCanonAlbum: Sequelize.BelongsToSetAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
28
|
-
createCanonAlbum: Sequelize.BelongsToCreateAssociationMixin<CanonAlbum>;
|
|
29
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonAlbumImageHarvested;
|
|
30
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CanonAlbumImageHarvested = void 0;
|
|
4
|
-
const sequelize_1 = require("sequelize");
|
|
5
|
-
class CanonAlbumImageHarvested extends sequelize_1.Model {
|
|
6
|
-
static initModel(sequelize) {
|
|
7
|
-
return CanonAlbumImageHarvested.init({
|
|
8
|
-
dateHarvested: {
|
|
9
|
-
type: sequelize_1.DataTypes.DATE,
|
|
10
|
-
allowNull: false,
|
|
11
|
-
field: 'date_harvested'
|
|
12
|
-
},
|
|
13
|
-
storageKey: {
|
|
14
|
-
type: sequelize_1.DataTypes.STRING(255),
|
|
15
|
-
allowNull: false,
|
|
16
|
-
field: 'storage_key'
|
|
17
|
-
},
|
|
18
|
-
harvestMethod: {
|
|
19
|
-
type: sequelize_1.DataTypes.STRING(255),
|
|
20
|
-
allowNull: true,
|
|
21
|
-
field: 'harvest_method'
|
|
22
|
-
},
|
|
23
|
-
priority: {
|
|
24
|
-
type: sequelize_1.DataTypes.DECIMAL,
|
|
25
|
-
allowNull: true,
|
|
26
|
-
defaultValue: 0
|
|
27
|
-
},
|
|
28
|
-
id: {
|
|
29
|
-
type: sequelize_1.DataTypes.UUID,
|
|
30
|
-
allowNull: false,
|
|
31
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
32
|
-
primaryKey: true
|
|
33
|
-
},
|
|
34
|
-
url: {
|
|
35
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
36
|
-
allowNull: true
|
|
37
|
-
},
|
|
38
|
-
canonAlbumId: {
|
|
39
|
-
type: sequelize_1.DataTypes.UUID,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
references: {
|
|
42
|
-
model: 'canon_album',
|
|
43
|
-
key: 'id'
|
|
44
|
-
},
|
|
45
|
-
field: 'canon_album_id'
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
sequelize,
|
|
49
|
-
tableName: 'canon_album_image_harvested',
|
|
50
|
-
schema: 'eb',
|
|
51
|
-
timestamps: false,
|
|
52
|
-
indexes: [
|
|
53
|
-
{
|
|
54
|
-
name: "canon_album_image_harvested_canon_album_id_index",
|
|
55
|
-
fields: [
|
|
56
|
-
{ name: "canon_album_id" },
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "canon_album_image_harvested_pkey",
|
|
61
|
-
unique: true,
|
|
62
|
-
fields: [
|
|
63
|
-
{ name: "id" },
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
]
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.CanonAlbumImageHarvested = CanonAlbumImageHarvested;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { Model, Optional } from 'sequelize';
|
|
3
|
-
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
|
-
export interface CanonArtistImageHarvestedAttributes {
|
|
5
|
-
dateHarvested: Date;
|
|
6
|
-
storageKey: string;
|
|
7
|
-
harvestMethod?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
priority?: number;
|
|
10
|
-
canonArtistId: string;
|
|
11
|
-
id: string;
|
|
12
|
-
}
|
|
13
|
-
export type CanonArtistImageHarvestedPk = "id";
|
|
14
|
-
export type CanonArtistImageHarvestedId = CanonArtistImageHarvested[CanonArtistImageHarvestedPk];
|
|
15
|
-
export type CanonArtistImageHarvestedOptionalAttributes = "harvestMethod" | "url" | "priority" | "id";
|
|
16
|
-
export type CanonArtistImageHarvestedCreationAttributes = Optional<CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedOptionalAttributes>;
|
|
17
|
-
export declare class CanonArtistImageHarvested extends Model<CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes> implements CanonArtistImageHarvestedAttributes {
|
|
18
|
-
dateHarvested: Date;
|
|
19
|
-
storageKey: string;
|
|
20
|
-
harvestMethod?: string;
|
|
21
|
-
url?: string;
|
|
22
|
-
priority?: number;
|
|
23
|
-
canonArtistId: string;
|
|
24
|
-
id: string;
|
|
25
|
-
canonArtist: CanonArtist;
|
|
26
|
-
getCanonArtist: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
|
|
27
|
-
setCanonArtist: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
|
|
28
|
-
createCanonArtist: Sequelize.BelongsToCreateAssociationMixin<CanonArtist>;
|
|
29
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof CanonArtistImageHarvested;
|
|
30
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CanonArtistImageHarvested = void 0;
|
|
4
|
-
const sequelize_1 = require("sequelize");
|
|
5
|
-
class CanonArtistImageHarvested extends sequelize_1.Model {
|
|
6
|
-
static initModel(sequelize) {
|
|
7
|
-
return CanonArtistImageHarvested.init({
|
|
8
|
-
dateHarvested: {
|
|
9
|
-
type: sequelize_1.DataTypes.DATE,
|
|
10
|
-
allowNull: false,
|
|
11
|
-
field: 'date_harvested'
|
|
12
|
-
},
|
|
13
|
-
storageKey: {
|
|
14
|
-
type: sequelize_1.DataTypes.STRING(255),
|
|
15
|
-
allowNull: false,
|
|
16
|
-
field: 'storage_key'
|
|
17
|
-
},
|
|
18
|
-
harvestMethod: {
|
|
19
|
-
type: sequelize_1.DataTypes.STRING(255),
|
|
20
|
-
allowNull: true,
|
|
21
|
-
field: 'harvest_method'
|
|
22
|
-
},
|
|
23
|
-
url: {
|
|
24
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
25
|
-
allowNull: true
|
|
26
|
-
},
|
|
27
|
-
priority: {
|
|
28
|
-
type: sequelize_1.DataTypes.DECIMAL,
|
|
29
|
-
allowNull: true,
|
|
30
|
-
defaultValue: 0
|
|
31
|
-
},
|
|
32
|
-
canonArtistId: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
references: {
|
|
36
|
-
model: 'canon_artist',
|
|
37
|
-
key: 'id'
|
|
38
|
-
},
|
|
39
|
-
field: 'canon_artist_id'
|
|
40
|
-
},
|
|
41
|
-
id: {
|
|
42
|
-
type: sequelize_1.DataTypes.UUID,
|
|
43
|
-
allowNull: false,
|
|
44
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
45
|
-
primaryKey: true
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
sequelize,
|
|
49
|
-
tableName: 'canon_artist_image_harvested',
|
|
50
|
-
schema: 'eb',
|
|
51
|
-
timestamps: false,
|
|
52
|
-
indexes: [
|
|
53
|
-
{
|
|
54
|
-
name: "canon_artist_image_harvested_canon_artist_id_index",
|
|
55
|
-
fields: [
|
|
56
|
-
{ name: "canon_artist_id" },
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "canon_artist_image_harvested_pkey",
|
|
61
|
-
unique: true,
|
|
62
|
-
fields: [
|
|
63
|
-
{ name: "id" },
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
]
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.CanonArtistImageHarvested = CanonArtistImageHarvested;
|
package/model_options.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
|
|
4
|
-
export interface AccessControlPreferenceAttributes {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type AccessControlPreferencePk = "id";
|
|
10
|
-
export type AccessControlPreferenceId = AccessControlPreference[AccessControlPreferencePk];
|
|
11
|
-
export type AccessControlPreferenceCreationAttributes = AccessControlPreferenceAttributes;
|
|
12
|
-
|
|
13
|
-
export class AccessControlPreference extends Model<AccessControlPreferenceAttributes, AccessControlPreferenceCreationAttributes> implements AccessControlPreferenceAttributes {
|
|
14
|
-
id!: number;
|
|
15
|
-
name!: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof AccessControlPreference {
|
|
19
|
-
return AccessControlPreference.init({
|
|
20
|
-
id: {
|
|
21
|
-
type: DataTypes.SMALLINT,
|
|
22
|
-
allowNull: false,
|
|
23
|
-
primaryKey: true
|
|
24
|
-
},
|
|
25
|
-
name: {
|
|
26
|
-
type: DataTypes.TEXT,
|
|
27
|
-
allowNull: false,
|
|
28
|
-
unique: "access_control_preference_name_unique"
|
|
29
|
-
}
|
|
30
|
-
}, {
|
|
31
|
-
sequelize,
|
|
32
|
-
tableName: 'access_control_preference',
|
|
33
|
-
schema: 'eb',
|
|
34
|
-
timestamps: false,
|
|
35
|
-
indexes: [
|
|
36
|
-
{
|
|
37
|
-
name: "access_control_preference_name_unique",
|
|
38
|
-
unique: true,
|
|
39
|
-
fields: [
|
|
40
|
-
{ name: "name" },
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: "access_control_preference_pkey",
|
|
45
|
-
unique: true,
|
|
46
|
-
fields: [
|
|
47
|
-
{ name: "id" },
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
]
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { UserAffinity, UserAffinityId } from './UserAffinity';
|
|
4
|
-
|
|
5
|
-
export interface AffinityRelationshipTypeAttributes {
|
|
6
|
-
name: string;
|
|
7
|
-
category: string;
|
|
8
|
-
tier: string;
|
|
9
|
-
id: string;
|
|
10
|
-
createDate?: Date;
|
|
11
|
-
updateDate?: Date;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type AffinityRelationshipTypePk = "id";
|
|
15
|
-
export type AffinityRelationshipTypeId = AffinityRelationshipType[AffinityRelationshipTypePk];
|
|
16
|
-
export type AffinityRelationshipTypeOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
17
|
-
export type AffinityRelationshipTypeCreationAttributes = Optional<AffinityRelationshipTypeAttributes, AffinityRelationshipTypeOptionalAttributes>;
|
|
18
|
-
|
|
19
|
-
export class AffinityRelationshipType extends Model<AffinityRelationshipTypeAttributes, AffinityRelationshipTypeCreationAttributes> implements AffinityRelationshipTypeAttributes {
|
|
20
|
-
name!: string;
|
|
21
|
-
category!: string;
|
|
22
|
-
tier!: string;
|
|
23
|
-
id!: string;
|
|
24
|
-
createDate?: Date;
|
|
25
|
-
updateDate?: Date;
|
|
26
|
-
|
|
27
|
-
// AffinityRelationshipType hasMany UserAffinity via affinityRelationshipTypeId
|
|
28
|
-
userAffinities!: UserAffinity[];
|
|
29
|
-
getUserAffinities!: Sequelize.HasManyGetAssociationsMixin<UserAffinity>;
|
|
30
|
-
setUserAffinities!: Sequelize.HasManySetAssociationsMixin<UserAffinity, UserAffinityId>;
|
|
31
|
-
addUserAffinity!: Sequelize.HasManyAddAssociationMixin<UserAffinity, UserAffinityId>;
|
|
32
|
-
addUserAffinities!: Sequelize.HasManyAddAssociationsMixin<UserAffinity, UserAffinityId>;
|
|
33
|
-
createUserAffinity!: Sequelize.HasManyCreateAssociationMixin<UserAffinity>;
|
|
34
|
-
removeUserAffinity!: Sequelize.HasManyRemoveAssociationMixin<UserAffinity, UserAffinityId>;
|
|
35
|
-
removeUserAffinities!: Sequelize.HasManyRemoveAssociationsMixin<UserAffinity, UserAffinityId>;
|
|
36
|
-
hasUserAffinity!: Sequelize.HasManyHasAssociationMixin<UserAffinity, UserAffinityId>;
|
|
37
|
-
hasUserAffinities!: Sequelize.HasManyHasAssociationsMixin<UserAffinity, UserAffinityId>;
|
|
38
|
-
countUserAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
39
|
-
|
|
40
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof AffinityRelationshipType {
|
|
41
|
-
return AffinityRelationshipType.init({
|
|
42
|
-
name: {
|
|
43
|
-
type: DataTypes.STRING(50),
|
|
44
|
-
allowNull: false,
|
|
45
|
-
unique: "affinity_relationship_type_name_unique"
|
|
46
|
-
},
|
|
47
|
-
category: {
|
|
48
|
-
type: DataTypes.STRING(20),
|
|
49
|
-
allowNull: false
|
|
50
|
-
},
|
|
51
|
-
tier: {
|
|
52
|
-
type: DataTypes.STRING(20),
|
|
53
|
-
allowNull: false
|
|
54
|
-
},
|
|
55
|
-
id: {
|
|
56
|
-
type: DataTypes.UUID,
|
|
57
|
-
allowNull: false,
|
|
58
|
-
defaultValue: DataTypes.UUIDV4,
|
|
59
|
-
primaryKey: true
|
|
60
|
-
},
|
|
61
|
-
createDate: {
|
|
62
|
-
type: DataTypes.DATE,
|
|
63
|
-
allowNull: true,
|
|
64
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
65
|
-
field: 'create_date'
|
|
66
|
-
},
|
|
67
|
-
updateDate: {
|
|
68
|
-
type: DataTypes.DATE,
|
|
69
|
-
allowNull: true,
|
|
70
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
71
|
-
field: 'update_date'
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
sequelize,
|
|
75
|
-
tableName: 'affinity_relationship_type',
|
|
76
|
-
schema: 'eb',
|
|
77
|
-
timestamps: false,
|
|
78
|
-
indexes: [
|
|
79
|
-
{
|
|
80
|
-
name: "affinity_relationship_type_name_unique",
|
|
81
|
-
unique: true,
|
|
82
|
-
fields: [
|
|
83
|
-
{ name: "name" },
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "affinity_relationship_type_pkey",
|
|
88
|
-
unique: true,
|
|
89
|
-
fields: [
|
|
90
|
-
{ name: "id" },
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
]
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
package/models/AffinityTier.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId } from './JukeboxSessionArtistAffinity';
|
|
4
|
-
import type { JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId } from './JukeboxSessionGenreAffinity';
|
|
5
|
-
import type { PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId } from './PlatformUserPlaylistArtistAffinity';
|
|
6
|
-
import type { PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId } from './PlatformUserPlaylistGenreAffinity';
|
|
7
|
-
import type { UserArtistAffinity, UserArtistAffinityId } from './UserArtistAffinity';
|
|
8
|
-
import type { UserGenreAffinity, UserGenreAffinityId } from './UserGenreAffinity';
|
|
9
|
-
|
|
10
|
-
export interface AffinityTierAttributes {
|
|
11
|
-
id: number;
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type AffinityTierPk = "id";
|
|
16
|
-
export type AffinityTierId = AffinityTier[AffinityTierPk];
|
|
17
|
-
export type AffinityTierCreationAttributes = AffinityTierAttributes;
|
|
18
|
-
|
|
19
|
-
export class AffinityTier extends Model<AffinityTierAttributes, AffinityTierCreationAttributes> implements AffinityTierAttributes {
|
|
20
|
-
id!: number;
|
|
21
|
-
name!: string;
|
|
22
|
-
|
|
23
|
-
// AffinityTier hasMany JukeboxSessionArtistAffinity via affinityTierId
|
|
24
|
-
jukeboxSessionArtistAffinities!: JukeboxSessionArtistAffinity[];
|
|
25
|
-
getJukeboxSessionArtistAffinities!: Sequelize.HasManyGetAssociationsMixin<JukeboxSessionArtistAffinity>;
|
|
26
|
-
setJukeboxSessionArtistAffinities!: Sequelize.HasManySetAssociationsMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
27
|
-
addJukeboxSessionArtistAffinity!: Sequelize.HasManyAddAssociationMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
28
|
-
addJukeboxSessionArtistAffinities!: Sequelize.HasManyAddAssociationsMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
29
|
-
createJukeboxSessionArtistAffinity!: Sequelize.HasManyCreateAssociationMixin<JukeboxSessionArtistAffinity>;
|
|
30
|
-
removeJukeboxSessionArtistAffinity!: Sequelize.HasManyRemoveAssociationMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
31
|
-
removeJukeboxSessionArtistAffinities!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
32
|
-
hasJukeboxSessionArtistAffinity!: Sequelize.HasManyHasAssociationMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
33
|
-
hasJukeboxSessionArtistAffinities!: Sequelize.HasManyHasAssociationsMixin<JukeboxSessionArtistAffinity, JukeboxSessionArtistAffinityId>;
|
|
34
|
-
countJukeboxSessionArtistAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
35
|
-
// AffinityTier hasMany JukeboxSessionGenreAffinity via affinityTierId
|
|
36
|
-
jukeboxSessionGenreAffinities!: JukeboxSessionGenreAffinity[];
|
|
37
|
-
getJukeboxSessionGenreAffinities!: Sequelize.HasManyGetAssociationsMixin<JukeboxSessionGenreAffinity>;
|
|
38
|
-
setJukeboxSessionGenreAffinities!: Sequelize.HasManySetAssociationsMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
39
|
-
addJukeboxSessionGenreAffinity!: Sequelize.HasManyAddAssociationMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
40
|
-
addJukeboxSessionGenreAffinities!: Sequelize.HasManyAddAssociationsMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
41
|
-
createJukeboxSessionGenreAffinity!: Sequelize.HasManyCreateAssociationMixin<JukeboxSessionGenreAffinity>;
|
|
42
|
-
removeJukeboxSessionGenreAffinity!: Sequelize.HasManyRemoveAssociationMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
43
|
-
removeJukeboxSessionGenreAffinities!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
44
|
-
hasJukeboxSessionGenreAffinity!: Sequelize.HasManyHasAssociationMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
45
|
-
hasJukeboxSessionGenreAffinities!: Sequelize.HasManyHasAssociationsMixin<JukeboxSessionGenreAffinity, JukeboxSessionGenreAffinityId>;
|
|
46
|
-
countJukeboxSessionGenreAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
47
|
-
// AffinityTier hasMany PlatformUserPlaylistArtistAffinity via affinityTierId
|
|
48
|
-
platformUserPlaylistArtistAffinities!: PlatformUserPlaylistArtistAffinity[];
|
|
49
|
-
getPlatformUserPlaylistArtistAffinities!: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylistArtistAffinity>;
|
|
50
|
-
setPlatformUserPlaylistArtistAffinities!: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
51
|
-
addPlatformUserPlaylistArtistAffinity!: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
52
|
-
addPlatformUserPlaylistArtistAffinities!: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
53
|
-
createPlatformUserPlaylistArtistAffinity!: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylistArtistAffinity>;
|
|
54
|
-
removePlatformUserPlaylistArtistAffinity!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
55
|
-
removePlatformUserPlaylistArtistAffinities!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
56
|
-
hasPlatformUserPlaylistArtistAffinity!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
57
|
-
hasPlatformUserPlaylistArtistAffinities!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylistArtistAffinity, PlatformUserPlaylistArtistAffinityId>;
|
|
58
|
-
countPlatformUserPlaylistArtistAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
59
|
-
// AffinityTier hasMany PlatformUserPlaylistGenreAffinity via affinityTierId
|
|
60
|
-
platformUserPlaylistGenreAffinities!: PlatformUserPlaylistGenreAffinity[];
|
|
61
|
-
getPlatformUserPlaylistGenreAffinities!: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylistGenreAffinity>;
|
|
62
|
-
setPlatformUserPlaylistGenreAffinities!: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
63
|
-
addPlatformUserPlaylistGenreAffinity!: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
64
|
-
addPlatformUserPlaylistGenreAffinities!: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
65
|
-
createPlatformUserPlaylistGenreAffinity!: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylistGenreAffinity>;
|
|
66
|
-
removePlatformUserPlaylistGenreAffinity!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
67
|
-
removePlatformUserPlaylistGenreAffinities!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
68
|
-
hasPlatformUserPlaylistGenreAffinity!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
69
|
-
hasPlatformUserPlaylistGenreAffinities!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylistGenreAffinity, PlatformUserPlaylistGenreAffinityId>;
|
|
70
|
-
countPlatformUserPlaylistGenreAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
71
|
-
// AffinityTier hasMany UserArtistAffinity via affinityTierId
|
|
72
|
-
userArtistAffinities!: UserArtistAffinity[];
|
|
73
|
-
getUserArtistAffinities!: Sequelize.HasManyGetAssociationsMixin<UserArtistAffinity>;
|
|
74
|
-
setUserArtistAffinities!: Sequelize.HasManySetAssociationsMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
75
|
-
addUserArtistAffinity!: Sequelize.HasManyAddAssociationMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
76
|
-
addUserArtistAffinities!: Sequelize.HasManyAddAssociationsMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
77
|
-
createUserArtistAffinity!: Sequelize.HasManyCreateAssociationMixin<UserArtistAffinity>;
|
|
78
|
-
removeUserArtistAffinity!: Sequelize.HasManyRemoveAssociationMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
79
|
-
removeUserArtistAffinities!: Sequelize.HasManyRemoveAssociationsMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
80
|
-
hasUserArtistAffinity!: Sequelize.HasManyHasAssociationMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
81
|
-
hasUserArtistAffinities!: Sequelize.HasManyHasAssociationsMixin<UserArtistAffinity, UserArtistAffinityId>;
|
|
82
|
-
countUserArtistAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
83
|
-
// AffinityTier hasMany UserGenreAffinity via affinityTierId
|
|
84
|
-
userGenreAffinities!: UserGenreAffinity[];
|
|
85
|
-
getUserGenreAffinities!: Sequelize.HasManyGetAssociationsMixin<UserGenreAffinity>;
|
|
86
|
-
setUserGenreAffinities!: Sequelize.HasManySetAssociationsMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
87
|
-
addUserGenreAffinity!: Sequelize.HasManyAddAssociationMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
88
|
-
addUserGenreAffinities!: Sequelize.HasManyAddAssociationsMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
89
|
-
createUserGenreAffinity!: Sequelize.HasManyCreateAssociationMixin<UserGenreAffinity>;
|
|
90
|
-
removeUserGenreAffinity!: Sequelize.HasManyRemoveAssociationMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
91
|
-
removeUserGenreAffinities!: Sequelize.HasManyRemoveAssociationsMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
92
|
-
hasUserGenreAffinity!: Sequelize.HasManyHasAssociationMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
93
|
-
hasUserGenreAffinities!: Sequelize.HasManyHasAssociationsMixin<UserGenreAffinity, UserGenreAffinityId>;
|
|
94
|
-
countUserGenreAffinities!: Sequelize.HasManyCountAssociationsMixin;
|
|
95
|
-
|
|
96
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof AffinityTier {
|
|
97
|
-
return AffinityTier.init({
|
|
98
|
-
id: {
|
|
99
|
-
type: DataTypes.SMALLINT,
|
|
100
|
-
allowNull: false,
|
|
101
|
-
primaryKey: true
|
|
102
|
-
},
|
|
103
|
-
name: {
|
|
104
|
-
type: DataTypes.STRING(32),
|
|
105
|
-
allowNull: false,
|
|
106
|
-
unique: "affinity_tier_name_unique"
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
sequelize,
|
|
110
|
-
tableName: 'affinity_tier',
|
|
111
|
-
schema: 'eb',
|
|
112
|
-
timestamps: false,
|
|
113
|
-
indexes: [
|
|
114
|
-
{
|
|
115
|
-
name: "affinity_tier_name_unique",
|
|
116
|
-
unique: true,
|
|
117
|
-
fields: [
|
|
118
|
-
{ name: "name" },
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "affinity_tier_pkey",
|
|
123
|
-
unique: true,
|
|
124
|
-
fields: [
|
|
125
|
-
{ name: "id" },
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
]
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|