@earbug/db-models 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/dist/AppUser.d.ts +161 -0
- package/dist/AppUser.js +121 -0
- package/dist/AppUserDevice.d.ts +26 -0
- package/dist/AppUserDevice.js +88 -0
- package/dist/AppUserFollowRelation.d.ts +34 -0
- package/dist/AppUserFollowRelation.js +113 -0
- package/dist/AppUserPlatformRelation.d.ts +43 -0
- package/dist/AppUserPlatformRelation.js +132 -0
- package/dist/CanonAlbum.d.ts +119 -0
- package/dist/CanonAlbum.js +117 -0
- package/dist/CanonAlbumExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonAlbumExternalReferenceRelation.js +86 -0
- package/dist/CanonAlbumGenreRelation.d.ts +29 -0
- package/dist/CanonAlbumGenreRelation.js +82 -0
- package/dist/CanonAlbumImageHarvested.d.ts +30 -0
- package/dist/CanonAlbumImageHarvested.js +78 -0
- package/dist/CanonAlbumLabelRelation.d.ts +29 -0
- package/dist/CanonAlbumLabelRelation.js +82 -0
- package/dist/CanonAlbumTrackRelation.d.ts +29 -0
- package/dist/CanonAlbumTrackRelation.js +82 -0
- package/dist/CanonArtist.d.ts +91 -0
- package/dist/CanonArtist.js +114 -0
- package/dist/CanonArtistAlbumRelation.d.ts +29 -0
- package/dist/CanonArtistAlbumRelation.js +82 -0
- package/dist/CanonArtistExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonArtistExternalReferenceRelation.js +86 -0
- package/dist/CanonArtistGenreRelation.d.ts +29 -0
- package/dist/CanonArtistGenreRelation.js +82 -0
- package/dist/CanonArtistImageHarvested.d.ts +30 -0
- package/dist/CanonArtistImageHarvested.js +70 -0
- package/dist/CanonArtistMemberRelation.d.ts +29 -0
- package/dist/CanonArtistMemberRelation.js +82 -0
- package/dist/CanonArtistTrackRelation.d.ts +29 -0
- package/dist/CanonArtistTrackRelation.js +82 -0
- package/dist/CanonGenre.d.ts +133 -0
- package/dist/CanonGenre.js +93 -0
- package/dist/CanonGenreExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonGenreExternalReferenceRelation.js +86 -0
- package/dist/CanonLabel.d.ts +69 -0
- package/dist/CanonLabel.js +83 -0
- package/dist/CanonLabelExternalReferenceRelation.d.ts +31 -0
- package/dist/CanonLabelExternalReferenceRelation.js +86 -0
- package/dist/CanonMember.d.ts +71 -0
- package/dist/CanonMember.js +82 -0
- package/dist/CanonMemberExternalReferenceRelation.d.ts +33 -0
- package/dist/CanonMemberExternalReferenceRelation.js +91 -0
- package/dist/CanonToPlatformAlbumRelation.d.ts +29 -0
- package/dist/CanonToPlatformAlbumRelation.js +82 -0
- package/dist/CanonToPlatformArtistRelation.d.ts +29 -0
- package/dist/CanonToPlatformArtistRelation.js +82 -0
- package/dist/CanonToPlatformGenreRelation.d.ts +29 -0
- package/dist/CanonToPlatformGenreRelation.js +82 -0
- package/dist/CanonToPlatformTrackRelation.d.ts +29 -0
- package/dist/CanonToPlatformTrackRelation.js +82 -0
- package/dist/CanonTrack.d.ts +89 -0
- package/dist/CanonTrack.js +99 -0
- package/dist/ConfigParam.d.ts +19 -0
- package/dist/ConfigParam.js +70 -0
- package/dist/ExternalReference.d.ts +139 -0
- package/dist/ExternalReference.js +79 -0
- package/dist/JukeboxAccessType.d.ts +26 -0
- package/dist/JukeboxAccessType.js +36 -0
- package/dist/JukeboxCanonGenreRelation.d.ts +33 -0
- package/dist/JukeboxCanonGenreRelation.js +101 -0
- package/dist/JukeboxInvite.d.ts +39 -0
- package/dist/JukeboxInvite.js +98 -0
- package/dist/JukeboxQueueEntry.d.ts +74 -0
- package/dist/JukeboxQueueEntry.js +142 -0
- package/dist/JukeboxQueueMode.d.ts +26 -0
- package/dist/JukeboxQueueMode.js +36 -0
- package/dist/JukeboxSession.d.ts +108 -0
- package/dist/JukeboxSession.js +133 -0
- package/dist/JukeboxStatus.d.ts +26 -0
- package/dist/JukeboxStatus.js +34 -0
- package/dist/JukeboxTerminationCondition.d.ts +26 -0
- package/dist/JukeboxTerminationCondition.js +36 -0
- package/dist/JukeboxType.d.ts +26 -0
- package/dist/JukeboxType.js +36 -0
- package/dist/JukeboxUser.d.ts +56 -0
- package/dist/JukeboxUser.js +135 -0
- package/dist/JukeboxUserType.d.ts +26 -0
- package/dist/JukeboxUserType.js +34 -0
- package/dist/KnexMigrations.d.ts +19 -0
- package/dist/KnexMigrations.js +44 -0
- package/dist/KnexMigrationsLock.d.ts +15 -0
- package/dist/KnexMigrationsLock.js +36 -0
- package/dist/MetricsDaily.d.ts +19 -0
- package/dist/MetricsDaily.js +87 -0
- package/dist/MetricsEvent.d.ts +23 -0
- package/dist/MetricsEvent.js +117 -0
- package/dist/NewsSite.d.ts +21 -0
- package/dist/NewsSite.js +57 -0
- package/dist/PauseStatusType.d.ts +26 -0
- package/dist/PauseStatusType.js +34 -0
- package/dist/Platform.d.ts +127 -0
- package/dist/Platform.js +80 -0
- package/dist/PlatformAlbum.d.ts +232 -0
- package/dist/PlatformAlbum.js +123 -0
- package/dist/PlatformAlbumGenreRelation.d.ts +29 -0
- package/dist/PlatformAlbumGenreRelation.js +82 -0
- package/dist/PlatformAlbumTrackRelation.d.ts +29 -0
- package/dist/PlatformAlbumTrackRelation.js +82 -0
- package/dist/PlatformArtist.d.ts +225 -0
- package/dist/PlatformArtist.js +109 -0
- package/dist/PlatformArtistAlbumRelation.d.ts +29 -0
- package/dist/PlatformArtistAlbumRelation.js +82 -0
- package/dist/PlatformArtistGenreRelation.d.ts +29 -0
- package/dist/PlatformArtistGenreRelation.js +82 -0
- package/dist/PlatformArtistTrackRelation.d.ts +29 -0
- package/dist/PlatformArtistTrackRelation.js +82 -0
- package/dist/PlatformGenre.d.ts +122 -0
- package/dist/PlatformGenre.js +90 -0
- package/dist/PlatformTrack.d.ts +183 -0
- package/dist/PlatformTrack.js +129 -0
- package/dist/PlatformTrackGenreRelation.d.ts +29 -0
- package/dist/PlatformTrackGenreRelation.js +82 -0
- package/dist/PlatformUserAlbum.d.ts +54 -0
- package/dist/PlatformUserAlbum.js +121 -0
- package/dist/PlatformUserAlbumTrack.d.ts +42 -0
- package/dist/PlatformUserAlbumTrack.js +121 -0
- package/dist/PlatformUserPlaylist.d.ts +62 -0
- package/dist/PlatformUserPlaylist.js +135 -0
- package/dist/PlatformUserPlaylistTrack.d.ts +48 -0
- package/dist/PlatformUserPlaylistTrack.js +132 -0
- package/dist/PlaybackStatus.d.ts +26 -0
- package/dist/PlaybackStatus.js +36 -0
- package/dist/State.d.ts +50 -0
- package/dist/State.js +36 -0
- package/dist/TrackDeletionReason.d.ts +26 -0
- package/dist/TrackDeletionReason.js +34 -0
- package/dist/UnmatchedAlbum.d.ts +22 -0
- package/dist/UnmatchedAlbum.js +70 -0
- package/dist/UnmatchedArtist.d.ts +26 -0
- package/dist/UnmatchedArtist.js +81 -0
- package/dist/UserContacts.d.ts +46 -0
- package/dist/UserContacts.js +105 -0
- package/dist/init-models.d.ts +209 -0
- package/dist/init-models.js +507 -0
- package/model_options.json +3 -0
- package/models/AppUser.ts +267 -0
- package/models/AppUserDevice.ts +88 -0
- package/models/AppUserFollowRelation.ts +122 -0
- package/models/AppUserPlatformRelation.ts +150 -0
- package/models/CanonAlbum.ts +216 -0
- package/models/CanonAlbumExternalReferenceRelation.ts +92 -0
- package/models/CanonAlbumGenreRelation.ts +86 -0
- package/models/CanonAlbumImageHarvested.ts +106 -0
- package/models/CanonAlbumLabelRelation.ts +86 -0
- package/models/CanonAlbumTrackRelation.ts +86 -0
- package/models/CanonArtist.ts +183 -0
- package/models/CanonArtistAlbumRelation.ts +86 -0
- package/models/CanonArtistExternalReferenceRelation.ts +92 -0
- package/models/CanonArtistGenreRelation.ts +86 -0
- package/models/CanonArtistImageHarvested.ts +98 -0
- package/models/CanonArtistMemberRelation.ts +86 -0
- package/models/CanonArtistTrackRelation.ts +86 -0
- package/models/CanonGenre.ts +208 -0
- package/models/CanonGenreExternalReferenceRelation.ts +92 -0
- package/models/CanonLabel.ts +129 -0
- package/models/CanonLabelExternalReferenceRelation.ts +92 -0
- package/models/CanonMember.ts +130 -0
- package/models/CanonMemberExternalReferenceRelation.ts +99 -0
- package/models/CanonToPlatformAlbumRelation.ts +86 -0
- package/models/CanonToPlatformArtistRelation.ts +86 -0
- package/models/CanonToPlatformGenreRelation.ts +86 -0
- package/models/CanonToPlatformTrackRelation.ts +86 -0
- package/models/CanonTrack.ts +167 -0
- package/models/ConfigParam.ts +62 -0
- package/models/ExternalReference.ts +201 -0
- package/models/JukeboxAccessType.ts +60 -0
- package/models/JukeboxCanonGenreRelation.ts +109 -0
- package/models/JukeboxInvite.ts +113 -0
- package/models/JukeboxQueueEntry.ts +195 -0
- package/models/JukeboxQueueMode.ts +60 -0
- package/models/JukeboxSession.ts +223 -0
- package/models/JukeboxStatus.ts +58 -0
- package/models/JukeboxTerminationCondition.ts +60 -0
- package/models/JukeboxType.ts +60 -0
- package/models/JukeboxUser.ts +169 -0
- package/models/JukeboxUserType.ts +58 -0
- package/models/KnexMigrations.ts +60 -0
- package/models/KnexMigrationsLock.ts +48 -0
- package/models/MetricsDaily.ts +79 -0
- package/models/MetricsEvent.ts +114 -0
- package/models/NewsSite.ts +75 -0
- package/models/PauseStatusType.ts +58 -0
- package/models/Platform.ts +189 -0
- package/models/PlatformAlbum.ts +345 -0
- package/models/PlatformAlbumGenreRelation.ts +86 -0
- package/models/PlatformAlbumTrackRelation.ts +86 -0
- package/models/PlatformArtist.ts +324 -0
- package/models/PlatformArtistAlbumRelation.ts +86 -0
- package/models/PlatformArtistGenreRelation.ts +86 -0
- package/models/PlatformArtistTrackRelation.ts +86 -0
- package/models/PlatformGenre.ts +194 -0
- package/models/PlatformTrack.ts +298 -0
- package/models/PlatformTrackGenreRelation.ts +86 -0
- package/models/PlatformUserAlbum.ts +152 -0
- package/models/PlatformUserAlbumTrack.ts +139 -0
- package/models/PlatformUserPlaylist.ts +174 -0
- package/models/PlatformUserPlaylistTrack.ts +156 -0
- package/models/PlaybackStatus.ts +60 -0
- package/models/State.ts +86 -0
- package/models/TrackDeletionReason.ts +58 -0
- package/models/UnmatchedAlbum.ts +66 -0
- package/models/UnmatchedArtist.ts +81 -0
- package/models/UserContacts.ts +149 -0
- package/models/init-models.ts +716 -0
- package/package.json +19 -0
- package/tsconfig.json +52 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.PlatformUserPlaylistTrack = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class PlatformUserPlaylistTrack extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return PlatformUserPlaylistTrack.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
platformTrackId: {
|
|
39
|
+
type: sequelize_1.DataTypes.UUID,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform_track',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
unique: "uk_playlist_id_track_id",
|
|
46
|
+
field: 'platform_track_id'
|
|
47
|
+
},
|
|
48
|
+
platformUserPlaylistId: {
|
|
49
|
+
type: sequelize_1.DataTypes.UUID,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'platform_user_playlist',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
unique: "uk_playlist_id_track_id",
|
|
56
|
+
field: 'platform_user_playlist_id'
|
|
57
|
+
},
|
|
58
|
+
trackPosition: {
|
|
59
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: 0,
|
|
62
|
+
field: 'track_position'
|
|
63
|
+
},
|
|
64
|
+
addedDate: {
|
|
65
|
+
type: sequelize_1.DataTypes.DATE,
|
|
66
|
+
allowNull: true,
|
|
67
|
+
field: 'added_date'
|
|
68
|
+
},
|
|
69
|
+
addedByPlatformUserId: {
|
|
70
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
71
|
+
allowNull: true,
|
|
72
|
+
field: 'added_by_platform_user_id'
|
|
73
|
+
},
|
|
74
|
+
isLocal: {
|
|
75
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
76
|
+
allowNull: false,
|
|
77
|
+
defaultValue: false,
|
|
78
|
+
field: 'is_local'
|
|
79
|
+
},
|
|
80
|
+
createDate: {
|
|
81
|
+
type: sequelize_1.DataTypes.DATE,
|
|
82
|
+
allowNull: false,
|
|
83
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
84
|
+
field: 'create_date'
|
|
85
|
+
},
|
|
86
|
+
updateDate: {
|
|
87
|
+
type: sequelize_1.DataTypes.DATE,
|
|
88
|
+
allowNull: false,
|
|
89
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
90
|
+
field: 'update_date'
|
|
91
|
+
},
|
|
92
|
+
stateId: {
|
|
93
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
94
|
+
allowNull: false,
|
|
95
|
+
defaultValue: 0,
|
|
96
|
+
references: {
|
|
97
|
+
model: 'state',
|
|
98
|
+
key: 'id'
|
|
99
|
+
},
|
|
100
|
+
field: 'state_id'
|
|
101
|
+
},
|
|
102
|
+
externalPlaylistTrackId: {
|
|
103
|
+
type: sequelize_1.DataTypes.STRING(255),
|
|
104
|
+
allowNull: false,
|
|
105
|
+
field: 'external_playlist_track_id'
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
sequelize,
|
|
109
|
+
tableName: 'platform_user_playlist_track',
|
|
110
|
+
schema: 'eb',
|
|
111
|
+
timestamps: false,
|
|
112
|
+
indexes: [
|
|
113
|
+
{
|
|
114
|
+
name: "playlist_track_pkey",
|
|
115
|
+
unique: true,
|
|
116
|
+
fields: [
|
|
117
|
+
{ name: "id" },
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "uk_playlist_id_track_id",
|
|
122
|
+
unique: true,
|
|
123
|
+
fields: [
|
|
124
|
+
{ name: "platform_track_id" },
|
|
125
|
+
{ name: "platform_user_playlist_id" },
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.PlatformUserPlaylistTrack = PlatformUserPlaylistTrack;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
4
|
+
export interface PlaybackStatusAttributes {
|
|
5
|
+
id: number;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export type PlaybackStatusPk = "id";
|
|
9
|
+
export type PlaybackStatusId = PlaybackStatus[PlaybackStatusPk];
|
|
10
|
+
export type PlaybackStatusCreationAttributes = PlaybackStatusAttributes;
|
|
11
|
+
export declare class PlaybackStatus extends Model<PlaybackStatusAttributes, PlaybackStatusCreationAttributes> implements PlaybackStatusAttributes {
|
|
12
|
+
id: number;
|
|
13
|
+
description: string;
|
|
14
|
+
jukeboxQueueEntries: JukeboxQueueEntry[];
|
|
15
|
+
getJukeboxQueueEntries: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
|
|
16
|
+
setJukeboxQueueEntries: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
17
|
+
addJukeboxQueueEntry: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
18
|
+
addJukeboxQueueEntries: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
19
|
+
createJukeboxQueueEntry: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
|
|
20
|
+
removeJukeboxQueueEntry: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
21
|
+
removeJukeboxQueueEntries: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
22
|
+
hasJukeboxQueueEntry: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
23
|
+
hasJukeboxQueueEntries: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
24
|
+
countJukeboxQueueEntries: Sequelize.HasManyCountAssociationsMixin;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof PlaybackStatus;
|
|
26
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlaybackStatus = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class PlaybackStatus extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return PlaybackStatus.init({
|
|
8
|
+
id: {
|
|
9
|
+
autoIncrement: true,
|
|
10
|
+
autoIncrementIdentity: true,
|
|
11
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
12
|
+
allowNull: false,
|
|
13
|
+
primaryKey: true
|
|
14
|
+
},
|
|
15
|
+
description: {
|
|
16
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
+
allowNull: false
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
sequelize,
|
|
21
|
+
tableName: 'playback_status',
|
|
22
|
+
schema: 'eb',
|
|
23
|
+
timestamps: false,
|
|
24
|
+
indexes: [
|
|
25
|
+
{
|
|
26
|
+
name: "playback_status_pkey",
|
|
27
|
+
unique: true,
|
|
28
|
+
fields: [
|
|
29
|
+
{ name: "id" },
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PlaybackStatus = PlaybackStatus;
|
package/dist/State.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
5
|
+
import type { PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId } from './PlatformUserPlaylistTrack';
|
|
6
|
+
export interface StateAttributes {
|
|
7
|
+
id: number;
|
|
8
|
+
description: string;
|
|
9
|
+
}
|
|
10
|
+
export type StatePk = "id";
|
|
11
|
+
export type StateId = State[StatePk];
|
|
12
|
+
export type StateCreationAttributes = StateAttributes;
|
|
13
|
+
export declare class State extends Model<StateAttributes, StateCreationAttributes> implements StateAttributes {
|
|
14
|
+
id: number;
|
|
15
|
+
description: string;
|
|
16
|
+
appUsers: AppUser[];
|
|
17
|
+
getAppUsers: Sequelize.HasManyGetAssociationsMixin<AppUser>;
|
|
18
|
+
setAppUsers: Sequelize.HasManySetAssociationsMixin<AppUser, AppUserId>;
|
|
19
|
+
addAppUser: Sequelize.HasManyAddAssociationMixin<AppUser, AppUserId>;
|
|
20
|
+
addAppUsers: Sequelize.HasManyAddAssociationsMixin<AppUser, AppUserId>;
|
|
21
|
+
createAppUser: Sequelize.HasManyCreateAssociationMixin<AppUser>;
|
|
22
|
+
removeAppUser: Sequelize.HasManyRemoveAssociationMixin<AppUser, AppUserId>;
|
|
23
|
+
removeAppUsers: Sequelize.HasManyRemoveAssociationsMixin<AppUser, AppUserId>;
|
|
24
|
+
hasAppUser: Sequelize.HasManyHasAssociationMixin<AppUser, AppUserId>;
|
|
25
|
+
hasAppUsers: Sequelize.HasManyHasAssociationsMixin<AppUser, AppUserId>;
|
|
26
|
+
countAppUsers: Sequelize.HasManyCountAssociationsMixin;
|
|
27
|
+
platformUserPlaylists: PlatformUserPlaylist[];
|
|
28
|
+
getPlatformUserPlaylists: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylist>;
|
|
29
|
+
setPlatformUserPlaylists: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
30
|
+
addPlatformUserPlaylist: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
31
|
+
addPlatformUserPlaylists: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
32
|
+
createPlatformUserPlaylist: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylist>;
|
|
33
|
+
removePlatformUserPlaylist: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
34
|
+
removePlatformUserPlaylists: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
35
|
+
hasPlatformUserPlaylist: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
36
|
+
hasPlatformUserPlaylists: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
37
|
+
countPlatformUserPlaylists: Sequelize.HasManyCountAssociationsMixin;
|
|
38
|
+
platformUserPlaylistTracks: PlatformUserPlaylistTrack[];
|
|
39
|
+
getPlatformUserPlaylistTracks: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylistTrack>;
|
|
40
|
+
setPlatformUserPlaylistTracks: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
41
|
+
addPlatformUserPlaylistTrack: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
42
|
+
addPlatformUserPlaylistTracks: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
43
|
+
createPlatformUserPlaylistTrack: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylistTrack>;
|
|
44
|
+
removePlatformUserPlaylistTrack: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
45
|
+
removePlatformUserPlaylistTracks: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
46
|
+
hasPlatformUserPlaylistTrack: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
47
|
+
hasPlatformUserPlaylistTracks: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylistTrack, PlatformUserPlaylistTrackId>;
|
|
48
|
+
countPlatformUserPlaylistTracks: Sequelize.HasManyCountAssociationsMixin;
|
|
49
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof State;
|
|
50
|
+
}
|
package/dist/State.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.State = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class State extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return State.init({
|
|
8
|
+
id: {
|
|
9
|
+
autoIncrement: true,
|
|
10
|
+
autoIncrementIdentity: true,
|
|
11
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
12
|
+
allowNull: false,
|
|
13
|
+
primaryKey: true
|
|
14
|
+
},
|
|
15
|
+
description: {
|
|
16
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
+
allowNull: false
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
sequelize,
|
|
21
|
+
tableName: 'state',
|
|
22
|
+
schema: 'eb',
|
|
23
|
+
timestamps: false,
|
|
24
|
+
indexes: [
|
|
25
|
+
{
|
|
26
|
+
name: "state_pkey",
|
|
27
|
+
unique: true,
|
|
28
|
+
fields: [
|
|
29
|
+
{ name: "id" },
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.State = State;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model } from 'sequelize';
|
|
3
|
+
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
4
|
+
export interface TrackDeletionReasonAttributes {
|
|
5
|
+
id: number;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export type TrackDeletionReasonPk = "id";
|
|
9
|
+
export type TrackDeletionReasonId = TrackDeletionReason[TrackDeletionReasonPk];
|
|
10
|
+
export type TrackDeletionReasonCreationAttributes = TrackDeletionReasonAttributes;
|
|
11
|
+
export declare class TrackDeletionReason extends Model<TrackDeletionReasonAttributes, TrackDeletionReasonCreationAttributes> implements TrackDeletionReasonAttributes {
|
|
12
|
+
id: number;
|
|
13
|
+
description: string;
|
|
14
|
+
jukeboxQueueEntries: JukeboxQueueEntry[];
|
|
15
|
+
getJukeboxQueueEntries: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
|
|
16
|
+
setJukeboxQueueEntries: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
17
|
+
addJukeboxQueueEntry: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
18
|
+
addJukeboxQueueEntries: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
19
|
+
createJukeboxQueueEntry: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
|
|
20
|
+
removeJukeboxQueueEntry: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
21
|
+
removeJukeboxQueueEntries: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
22
|
+
hasJukeboxQueueEntry: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
23
|
+
hasJukeboxQueueEntries: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
24
|
+
countJukeboxQueueEntries: Sequelize.HasManyCountAssociationsMixin;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof TrackDeletionReason;
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TrackDeletionReason = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
class TrackDeletionReason extends sequelize_1.Model {
|
|
6
|
+
static initModel(sequelize) {
|
|
7
|
+
return TrackDeletionReason.init({
|
|
8
|
+
id: {
|
|
9
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
10
|
+
allowNull: false,
|
|
11
|
+
primaryKey: true
|
|
12
|
+
},
|
|
13
|
+
description: {
|
|
14
|
+
type: sequelize_1.DataTypes.STRING(255),
|
|
15
|
+
allowNull: false
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
sequelize,
|
|
19
|
+
tableName: 'track_deletion_reason',
|
|
20
|
+
schema: 'eb',
|
|
21
|
+
timestamps: false,
|
|
22
|
+
indexes: [
|
|
23
|
+
{
|
|
24
|
+
name: "track_deletion_reason_pkey",
|
|
25
|
+
unique: true,
|
|
26
|
+
fields: [
|
|
27
|
+
{ name: "id" },
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.TrackDeletionReason = TrackDeletionReason;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
4
|
+
export interface UnmatchedAlbumAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
platformAlbumId: string;
|
|
7
|
+
createDate: Date;
|
|
8
|
+
}
|
|
9
|
+
export type UnmatchedAlbumPk = "id";
|
|
10
|
+
export type UnmatchedAlbumId = UnmatchedAlbum[UnmatchedAlbumPk];
|
|
11
|
+
export type UnmatchedAlbumOptionalAttributes = "id" | "createDate";
|
|
12
|
+
export type UnmatchedAlbumCreationAttributes = Optional<UnmatchedAlbumAttributes, UnmatchedAlbumOptionalAttributes>;
|
|
13
|
+
export declare class UnmatchedAlbum extends Model<UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes> implements UnmatchedAlbumAttributes {
|
|
14
|
+
id: string;
|
|
15
|
+
platformAlbumId: string;
|
|
16
|
+
createDate: Date;
|
|
17
|
+
platformAlbum: PlatformAlbum;
|
|
18
|
+
getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
|
|
19
|
+
setPlatformAlbum: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
|
|
20
|
+
createPlatformAlbum: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
|
|
21
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof UnmatchedAlbum;
|
|
22
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.UnmatchedAlbum = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class UnmatchedAlbum extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return UnmatchedAlbum.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
platformAlbumId: {
|
|
39
|
+
type: sequelize_1.DataTypes.UUID,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform_album',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'platform_album_id'
|
|
46
|
+
},
|
|
47
|
+
createDate: {
|
|
48
|
+
type: sequelize_1.DataTypes.DATE,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
51
|
+
field: 'create_date'
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
sequelize,
|
|
55
|
+
tableName: 'unmatched_album',
|
|
56
|
+
schema: 'eb',
|
|
57
|
+
timestamps: false,
|
|
58
|
+
indexes: [
|
|
59
|
+
{
|
|
60
|
+
name: "unmatched_album_pkey",
|
|
61
|
+
unique: true,
|
|
62
|
+
fields: [
|
|
63
|
+
{ name: "id" },
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.UnmatchedAlbum = UnmatchedAlbum;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { Platform, PlatformId } from './Platform';
|
|
4
|
+
export interface UnmatchedArtistAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
platformId: number;
|
|
7
|
+
externalArtistId: number;
|
|
8
|
+
createDate: Date;
|
|
9
|
+
updateDate: Date;
|
|
10
|
+
}
|
|
11
|
+
export type UnmatchedArtistPk = "id";
|
|
12
|
+
export type UnmatchedArtistId = UnmatchedArtist[UnmatchedArtistPk];
|
|
13
|
+
export type UnmatchedArtistOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
14
|
+
export type UnmatchedArtistCreationAttributes = Optional<UnmatchedArtistAttributes, UnmatchedArtistOptionalAttributes>;
|
|
15
|
+
export declare class UnmatchedArtist extends Model<UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes> implements UnmatchedArtistAttributes {
|
|
16
|
+
id: string;
|
|
17
|
+
platformId: number;
|
|
18
|
+
externalArtistId: number;
|
|
19
|
+
createDate: Date;
|
|
20
|
+
updateDate: Date;
|
|
21
|
+
platform: Platform;
|
|
22
|
+
getPlatform: Sequelize.BelongsToGetAssociationMixin<Platform>;
|
|
23
|
+
setPlatform: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
|
|
24
|
+
createPlatform: Sequelize.BelongsToCreateAssociationMixin<Platform>;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof UnmatchedArtist;
|
|
26
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.UnmatchedArtist = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class UnmatchedArtist extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return UnmatchedArtist.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
platformId: {
|
|
39
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'platform',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'platform_id'
|
|
46
|
+
},
|
|
47
|
+
externalArtistId: {
|
|
48
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
field: 'external_artist_id'
|
|
51
|
+
},
|
|
52
|
+
createDate: {
|
|
53
|
+
type: sequelize_1.DataTypes.DATE,
|
|
54
|
+
allowNull: false,
|
|
55
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
56
|
+
field: 'create_date'
|
|
57
|
+
},
|
|
58
|
+
updateDate: {
|
|
59
|
+
type: sequelize_1.DataTypes.DATE,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
62
|
+
field: 'update_date'
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
sequelize,
|
|
66
|
+
tableName: 'unmatched_artist',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "unmatched_artist_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "id" },
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.UnmatchedArtist = UnmatchedArtist;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
export interface UserContactsAttributes {
|
|
5
|
+
appUserId: string;
|
|
6
|
+
contactId: string;
|
|
7
|
+
contactAppUserId?: string;
|
|
8
|
+
firstName?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
contactEmail1?: string;
|
|
11
|
+
contactEmail2?: string;
|
|
12
|
+
contactEmail3?: string;
|
|
13
|
+
contactPhone1?: string;
|
|
14
|
+
contactPhone1Type?: "mobile" | "work" | "home" | "main";
|
|
15
|
+
contactPhone2?: string;
|
|
16
|
+
contactPhone2Type?: "mobile" | "work" | "home" | "main";
|
|
17
|
+
contactPhone3?: string;
|
|
18
|
+
contactPhone3Type?: "mobile" | "work" | "home" | "main";
|
|
19
|
+
active?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type UserContactsPk = "contactId";
|
|
22
|
+
export type UserContactsId = UserContacts[UserContactsPk];
|
|
23
|
+
export type UserContactsOptionalAttributes = "contactId" | "contactAppUserId" | "firstName" | "lastName" | "contactEmail1" | "contactEmail2" | "contactEmail3" | "contactPhone1" | "contactPhone1Type" | "contactPhone2" | "contactPhone2Type" | "contactPhone3" | "contactPhone3Type" | "active";
|
|
24
|
+
export type UserContactsCreationAttributes = Optional<UserContactsAttributes, UserContactsOptionalAttributes>;
|
|
25
|
+
export declare class UserContacts extends Model<UserContactsAttributes, UserContactsCreationAttributes> implements UserContactsAttributes {
|
|
26
|
+
appUserId: string;
|
|
27
|
+
contactId: string;
|
|
28
|
+
contactAppUserId?: string;
|
|
29
|
+
firstName?: string;
|
|
30
|
+
lastName?: string;
|
|
31
|
+
contactEmail1?: string;
|
|
32
|
+
contactEmail2?: string;
|
|
33
|
+
contactEmail3?: string;
|
|
34
|
+
contactPhone1?: string;
|
|
35
|
+
contactPhone1Type?: "mobile" | "work" | "home" | "main";
|
|
36
|
+
contactPhone2?: string;
|
|
37
|
+
contactPhone2Type?: "mobile" | "work" | "home" | "main";
|
|
38
|
+
contactPhone3?: string;
|
|
39
|
+
contactPhone3Type?: "mobile" | "work" | "home" | "main";
|
|
40
|
+
active?: boolean;
|
|
41
|
+
appUser: AppUser;
|
|
42
|
+
getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
43
|
+
setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
44
|
+
createAppUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
45
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof UserContacts;
|
|
46
|
+
}
|