@earbug/db-models 0.0.6 → 0.0.8
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/AppUser.d.ts +5 -5
- package/dist/AppUser.js +13 -13
- package/dist/AppUserDevice.d.ts +4 -4
- package/dist/AppUserDevice.js +8 -8
- package/dist/AppUserFollowRelation.d.ts +3 -3
- package/dist/AppUserFollowRelation.js +6 -6
- package/dist/AppUserPlatformRelation.d.ts +7 -7
- package/dist/AppUserPlatformRelation.js +18 -18
- package/dist/CanonAlbum.d.ts +29 -5
- package/dist/CanonAlbum.js +10 -10
- package/dist/CanonAlbumImageHarvested.d.ts +9 -9
- package/dist/CanonAlbumImageHarvested.js +24 -32
- package/dist/CanonAlbumTrackRelation.d.ts +10 -10
- package/dist/CanonAlbumTrackRelation.js +2 -2
- package/dist/CanonArtist.d.ts +14 -14
- package/dist/CanonArtist.js +6 -6
- package/dist/CanonArtistImageHarvested.d.ts +9 -9
- package/dist/CanonArtistImageHarvested.js +24 -24
- 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 +29 -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/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 +10 -10
- package/dist/JukeboxQueueEntry.js +12 -12
- 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/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/MetricsDaily.d.ts +3 -3
- package/dist/MetricsDaily.js +4 -4
- package/dist/MetricsEvent.d.ts +5 -1
- package/dist/MetricsEvent.js +6 -0
- package/dist/NewsSite.d.ts +3 -3
- package/dist/NewsSite.js +6 -6
- package/dist/Platform.d.ts +2 -2
- package/dist/Platform.js +7 -7
- package/dist/PlatformAlbum.d.ts +5 -28
- 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 -26
- 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/PlatformUserPlaylistTrack.d.ts +7 -7
- package/dist/PlatformUserPlaylistTrack.js +17 -17
- package/dist/PlaybackStatus.d.ts +2 -14
- package/dist/PlaybackStatus.js +4 -4
- package/dist/PlaybackStatusType.d.ts +12 -0
- 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/UserContacts.d.ts +3 -3
- package/dist/UserContacts.js +7 -7
- package/dist/init-models.js +9 -9
- package/models/AppUser.ts +18 -18
- package/models/AppUserDevice.ts +12 -12
- package/models/AppUserFollowRelation.ts +9 -9
- package/models/AppUserPlatformRelation.ts +25 -25
- package/models/CanonAlbum.ts +41 -15
- package/models/CanonAlbumImageHarvested.ts +33 -41
- package/models/CanonAlbumTrackRelation.ts +14 -14
- package/models/CanonArtist.ts +20 -20
- package/models/CanonArtistImageHarvested.ts +33 -33
- package/models/CanonGenre.ts +9 -9
- package/models/CanonLabel.ts +8 -8
- package/models/CanonMember.ts +9 -9
- package/models/CanonMemberExternalReferenceRelation.ts +7 -7
- package/models/CanonTrack.ts +42 -16
- package/models/ConfigParam.ts +7 -7
- package/models/ExternalReference.ts +7 -7
- package/models/JukeboxAccessType.ts +6 -6
- package/models/JukeboxCanonGenreRelation.ts +8 -8
- package/models/JukeboxInvite.ts +9 -9
- package/models/JukeboxQueueEntry.ts +23 -23
- package/models/JukeboxQueueMode.ts +6 -6
- package/models/JukeboxSession.ts +29 -29
- package/models/JukeboxTerminationCondition.ts +6 -6
- package/models/JukeboxType.ts +6 -6
- package/models/JukeboxUser.ts +27 -27
- package/models/KnexMigrations.ts +9 -9
- package/models/KnexMigrationsLock.ts +8 -8
- package/models/MetricsDaily.ts +7 -7
- package/models/MetricsEvent.ts +11 -1
- package/models/NewsSite.ts +9 -9
- package/models/Platform.ts +9 -9
- package/models/PlatformAlbum.ts +15 -40
- package/models/PlatformArtist.ts +15 -15
- package/models/PlatformGenre.ts +8 -8
- package/models/PlatformTrack.ts +9 -34
- package/models/PlatformUserAlbum.ts +8 -8
- package/models/PlatformUserAlbumTrack.ts +15 -15
- package/models/PlatformUserPlaylist.ts +16 -16
- package/models/PlatformUserPlaylistTrack.ts +24 -24
- package/models/PlaybackStatus.ts +6 -19
- package/models/PlaybackStatusType.ts +13 -0
- package/models/State.ts +6 -6
- package/models/UnmatchedAlbum.ts +8 -8
- package/models/UnmatchedArtist.ts +8 -8
- package/models/UserContacts.ts +10 -10
- package/models/init-models.ts +9 -9
- package/package.json +1 -1
package/dist/CanonArtist.js
CHANGED
|
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonArtist extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonArtist.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
32
|
name: {
|
|
39
33
|
type: sequelize_1.DataTypes.TEXT,
|
|
40
34
|
allowNull: false
|
|
@@ -48,6 +42,12 @@ class CanonArtist extends sequelize_1.Model {
|
|
|
48
42
|
type: sequelize_1.DataTypes.TEXT,
|
|
49
43
|
allowNull: true
|
|
50
44
|
},
|
|
45
|
+
id: {
|
|
46
|
+
type: sequelize_1.DataTypes.UUID,
|
|
47
|
+
allowNull: false,
|
|
48
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
49
|
+
primaryKey: true
|
|
50
|
+
},
|
|
51
51
|
hasPhoto: {
|
|
52
52
|
type: sequelize_1.DataTypes.BOOLEAN,
|
|
53
53
|
allowNull: false,
|
|
@@ -2,26 +2,26 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
4
|
export interface CanonArtistImageHarvestedAttributes {
|
|
5
|
-
id: string;
|
|
6
|
-
canonArtistId: string;
|
|
7
|
-
priority?: number;
|
|
8
|
-
url?: string;
|
|
9
5
|
dateHarvested: Date;
|
|
10
6
|
storageKey: string;
|
|
11
7
|
harvestMethod?: string;
|
|
8
|
+
url?: string;
|
|
9
|
+
priority?: number;
|
|
10
|
+
canonArtistId: string;
|
|
11
|
+
id: string;
|
|
12
12
|
}
|
|
13
13
|
export type CanonArtistImageHarvestedPk = "id";
|
|
14
14
|
export type CanonArtistImageHarvestedId = CanonArtistImageHarvested[CanonArtistImageHarvestedPk];
|
|
15
|
-
export type CanonArtistImageHarvestedOptionalAttributes = "
|
|
15
|
+
export type CanonArtistImageHarvestedOptionalAttributes = "harvestMethod" | "url" | "priority" | "id";
|
|
16
16
|
export type CanonArtistImageHarvestedCreationAttributes = Optional<CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedOptionalAttributes>;
|
|
17
17
|
export declare class CanonArtistImageHarvested extends Model<CanonArtistImageHarvestedAttributes, CanonArtistImageHarvestedCreationAttributes> implements CanonArtistImageHarvestedAttributes {
|
|
18
|
-
id: string;
|
|
19
|
-
canonArtistId: string;
|
|
20
|
-
priority?: number;
|
|
21
|
-
url?: string;
|
|
22
18
|
dateHarvested: Date;
|
|
23
19
|
storageKey: string;
|
|
24
20
|
harvestMethod?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
priority?: number;
|
|
23
|
+
canonArtistId: string;
|
|
24
|
+
id: string;
|
|
25
25
|
canonArtist: CanonArtist;
|
|
26
26
|
getCanonArtist: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
|
|
27
27
|
setCanonArtist: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
|
|
@@ -5,30 +5,6 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
class CanonArtistImageHarvested extends sequelize_1.Model {
|
|
6
6
|
static initModel(sequelize) {
|
|
7
7
|
return CanonArtistImageHarvested.init({
|
|
8
|
-
id: {
|
|
9
|
-
type: sequelize_1.DataTypes.UUID,
|
|
10
|
-
allowNull: false,
|
|
11
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
12
|
-
primaryKey: true
|
|
13
|
-
},
|
|
14
|
-
canonArtistId: {
|
|
15
|
-
type: sequelize_1.DataTypes.UUID,
|
|
16
|
-
allowNull: false,
|
|
17
|
-
references: {
|
|
18
|
-
model: 'canon_artist',
|
|
19
|
-
key: 'id'
|
|
20
|
-
},
|
|
21
|
-
field: 'canon_artist_id'
|
|
22
|
-
},
|
|
23
|
-
priority: {
|
|
24
|
-
type: sequelize_1.DataTypes.DECIMAL,
|
|
25
|
-
allowNull: true,
|
|
26
|
-
defaultValue: 0
|
|
27
|
-
},
|
|
28
|
-
url: {
|
|
29
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
30
|
-
allowNull: true
|
|
31
|
-
},
|
|
32
8
|
dateHarvested: {
|
|
33
9
|
type: sequelize_1.DataTypes.DATE,
|
|
34
10
|
allowNull: false,
|
|
@@ -43,6 +19,30 @@ class CanonArtistImageHarvested extends sequelize_1.Model {
|
|
|
43
19
|
type: sequelize_1.DataTypes.STRING(255),
|
|
44
20
|
allowNull: true,
|
|
45
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
46
|
}
|
|
47
47
|
}, {
|
|
48
48
|
sequelize,
|
package/dist/CanonGenre.d.ts
CHANGED
|
@@ -10,24 +10,24 @@ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
|
10
10
|
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
11
11
|
import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
|
|
12
12
|
export interface CanonGenreAttributes {
|
|
13
|
-
id: string;
|
|
14
13
|
name: string;
|
|
15
14
|
asciiName: string;
|
|
16
15
|
description: string;
|
|
17
16
|
parentGenreId?: string;
|
|
17
|
+
id: string;
|
|
18
18
|
createDate: Date;
|
|
19
19
|
updateDate: Date;
|
|
20
20
|
}
|
|
21
21
|
export type CanonGenrePk = "id";
|
|
22
22
|
export type CanonGenreId = CanonGenre[CanonGenrePk];
|
|
23
|
-
export type CanonGenreOptionalAttributes = "
|
|
23
|
+
export type CanonGenreOptionalAttributes = "parentGenreId" | "id" | "createDate" | "updateDate";
|
|
24
24
|
export type CanonGenreCreationAttributes = Optional<CanonGenreAttributes, CanonGenreOptionalAttributes>;
|
|
25
25
|
export declare class CanonGenre extends Model<CanonGenreAttributes, CanonGenreCreationAttributes> implements CanonGenreAttributes {
|
|
26
|
-
id: string;
|
|
27
26
|
name: string;
|
|
28
27
|
asciiName: string;
|
|
29
28
|
description: string;
|
|
30
29
|
parentGenreId?: string;
|
|
30
|
+
id: string;
|
|
31
31
|
createDate: Date;
|
|
32
32
|
updateDate: Date;
|
|
33
33
|
canonAlbumGenreRelations: CanonAlbumGenreRelation[];
|
package/dist/CanonGenre.js
CHANGED
|
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonGenre extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonGenre.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
32
|
name: {
|
|
39
33
|
type: sequelize_1.DataTypes.TEXT,
|
|
40
34
|
allowNull: false,
|
|
@@ -54,6 +48,12 @@ class CanonGenre extends sequelize_1.Model {
|
|
|
54
48
|
allowNull: true,
|
|
55
49
|
field: 'parent_genre_id'
|
|
56
50
|
},
|
|
51
|
+
id: {
|
|
52
|
+
type: sequelize_1.DataTypes.UUID,
|
|
53
|
+
allowNull: false,
|
|
54
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
55
|
+
primaryKey: true
|
|
56
|
+
},
|
|
57
57
|
createDate: {
|
|
58
58
|
type: sequelize_1.DataTypes.DATE,
|
|
59
59
|
allowNull: false,
|
package/dist/CanonLabel.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import type { CanonLabelExternalReferenceRelation, CanonLabelExternalReferenceRe
|
|
|
5
5
|
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
6
|
import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
|
|
7
7
|
export interface CanonLabelAttributes {
|
|
8
|
-
id: string;
|
|
9
8
|
name: string;
|
|
10
9
|
asciiName: string;
|
|
10
|
+
id: string;
|
|
11
11
|
createDate: Date;
|
|
12
12
|
updateDate: Date;
|
|
13
13
|
}
|
|
@@ -16,9 +16,9 @@ export type CanonLabelId = CanonLabel[CanonLabelPk];
|
|
|
16
16
|
export type CanonLabelOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
17
17
|
export type CanonLabelCreationAttributes = Optional<CanonLabelAttributes, CanonLabelOptionalAttributes>;
|
|
18
18
|
export declare class CanonLabel extends Model<CanonLabelAttributes, CanonLabelCreationAttributes> implements CanonLabelAttributes {
|
|
19
|
-
id: string;
|
|
20
19
|
name: string;
|
|
21
20
|
asciiName: string;
|
|
21
|
+
id: string;
|
|
22
22
|
createDate: Date;
|
|
23
23
|
updateDate: Date;
|
|
24
24
|
canonAlbumLabelRelations: CanonAlbumLabelRelation[];
|
package/dist/CanonLabel.js
CHANGED
|
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonLabel extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonLabel.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
32
|
name: {
|
|
39
33
|
type: sequelize_1.DataTypes.TEXT,
|
|
40
34
|
allowNull: false
|
|
@@ -44,6 +38,12 @@ class CanonLabel extends sequelize_1.Model {
|
|
|
44
38
|
allowNull: false,
|
|
45
39
|
field: 'ascii_name'
|
|
46
40
|
},
|
|
41
|
+
id: {
|
|
42
|
+
type: sequelize_1.DataTypes.UUID,
|
|
43
|
+
allowNull: false,
|
|
44
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
45
|
+
primaryKey: true
|
|
46
|
+
},
|
|
47
47
|
createDate: {
|
|
48
48
|
type: sequelize_1.DataTypes.DATE,
|
|
49
49
|
allowNull: false,
|
package/dist/CanonMember.d.ts
CHANGED
|
@@ -5,21 +5,21 @@ import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReference
|
|
|
5
5
|
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
6
6
|
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
7
7
|
export interface CanonMemberAttributes {
|
|
8
|
-
id: string;
|
|
9
8
|
name?: string;
|
|
10
9
|
asciiName?: string;
|
|
10
|
+
id: string;
|
|
11
11
|
createDate?: Date;
|
|
12
12
|
updateDate?: Date;
|
|
13
13
|
isPast?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export type CanonMemberPk = "id";
|
|
16
16
|
export type CanonMemberId = CanonMember[CanonMemberPk];
|
|
17
|
-
export type CanonMemberOptionalAttributes = "
|
|
17
|
+
export type CanonMemberOptionalAttributes = "name" | "asciiName" | "id" | "createDate" | "updateDate" | "isPast";
|
|
18
18
|
export type CanonMemberCreationAttributes = Optional<CanonMemberAttributes, CanonMemberOptionalAttributes>;
|
|
19
19
|
export declare class CanonMember extends Model<CanonMemberAttributes, CanonMemberCreationAttributes> implements CanonMemberAttributes {
|
|
20
|
-
id: string;
|
|
21
20
|
name?: string;
|
|
22
21
|
asciiName?: string;
|
|
22
|
+
id: string;
|
|
23
23
|
createDate?: Date;
|
|
24
24
|
updateDate?: Date;
|
|
25
25
|
isPast?: boolean;
|
package/dist/CanonMember.js
CHANGED
|
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonMember extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonMember.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
32
|
name: {
|
|
39
33
|
type: sequelize_1.DataTypes.TEXT,
|
|
40
34
|
allowNull: true
|
|
@@ -44,6 +38,12 @@ class CanonMember extends sequelize_1.Model {
|
|
|
44
38
|
allowNull: true,
|
|
45
39
|
field: 'ascii_name'
|
|
46
40
|
},
|
|
41
|
+
id: {
|
|
42
|
+
type: sequelize_1.DataTypes.UUID,
|
|
43
|
+
allowNull: false,
|
|
44
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
45
|
+
primaryKey: true
|
|
46
|
+
},
|
|
47
47
|
createDate: {
|
|
48
48
|
type: sequelize_1.DataTypes.DATE,
|
|
49
49
|
allowNull: true,
|
|
@@ -3,10 +3,10 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
4
4
|
import type { ExternalReference, ExternalReferenceId } from './ExternalReference';
|
|
5
5
|
export interface CanonMemberExternalReferenceRelationAttributes {
|
|
6
|
-
id: string;
|
|
7
6
|
canonMemberId: string;
|
|
8
7
|
externalReferenceId: string;
|
|
9
8
|
url: string;
|
|
9
|
+
id: string;
|
|
10
10
|
createDate: Date;
|
|
11
11
|
updateDate: Date;
|
|
12
12
|
}
|
|
@@ -15,10 +15,10 @@ export type CanonMemberExternalReferenceRelationId = CanonMemberExternalReferenc
|
|
|
15
15
|
export type CanonMemberExternalReferenceRelationOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
16
16
|
export type CanonMemberExternalReferenceRelationCreationAttributes = Optional<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationOptionalAttributes>;
|
|
17
17
|
export declare class CanonMemberExternalReferenceRelation extends Model<CanonMemberExternalReferenceRelationAttributes, CanonMemberExternalReferenceRelationCreationAttributes> implements CanonMemberExternalReferenceRelationAttributes {
|
|
18
|
-
id: string;
|
|
19
18
|
canonMemberId: string;
|
|
20
19
|
externalReferenceId: string;
|
|
21
20
|
url: string;
|
|
21
|
+
id: string;
|
|
22
22
|
createDate: Date;
|
|
23
23
|
updateDate: Date;
|
|
24
24
|
canonMember: CanonMember;
|
|
@@ -29,11 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonMemberExternalReferenceRelation extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonMemberExternalReferenceRelation.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1')
|
|
36
|
-
},
|
|
37
32
|
canonMemberId: {
|
|
38
33
|
type: sequelize_1.DataTypes.UUID,
|
|
39
34
|
allowNull: false,
|
|
@@ -58,6 +53,11 @@ class CanonMemberExternalReferenceRelation extends sequelize_1.Model {
|
|
|
58
53
|
type: sequelize_1.DataTypes.TEXT,
|
|
59
54
|
allowNull: false
|
|
60
55
|
},
|
|
56
|
+
id: {
|
|
57
|
+
type: sequelize_1.DataTypes.UUID,
|
|
58
|
+
allowNull: false,
|
|
59
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1')
|
|
60
|
+
},
|
|
61
61
|
createDate: {
|
|
62
62
|
type: sequelize_1.DataTypes.DATE,
|
|
63
63
|
allowNull: false,
|
package/dist/CanonTrack.d.ts
CHANGED
|
@@ -1,35 +1,59 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
|
|
4
|
+
import type { CanonAlbumTrackRelation, CanonAlbumTrackRelationId } from './CanonAlbumTrackRelation';
|
|
3
5
|
import type { CanonArtist, CanonArtistId } from './CanonArtist';
|
|
4
6
|
import type { CanonArtistTrackRelation, CanonArtistTrackRelationId } from './CanonArtistTrackRelation';
|
|
5
7
|
import type { CanonToPlatformTrackRelation, CanonToPlatformTrackRelationId } from './CanonToPlatformTrackRelation';
|
|
6
8
|
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
7
9
|
import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
|
|
8
10
|
export interface CanonTrackAttributes {
|
|
9
|
-
id: string;
|
|
10
11
|
name: string;
|
|
11
12
|
asciiName: string;
|
|
12
13
|
explicit: boolean;
|
|
13
14
|
discNumber?: number;
|
|
14
15
|
discTrackNumber?: number;
|
|
16
|
+
durationMs: number;
|
|
17
|
+
id: string;
|
|
15
18
|
createDate: Date;
|
|
16
19
|
updateDate: Date;
|
|
17
|
-
durationMs: number;
|
|
18
20
|
}
|
|
19
21
|
export type CanonTrackPk = "id";
|
|
20
22
|
export type CanonTrackId = CanonTrack[CanonTrackPk];
|
|
21
|
-
export type CanonTrackOptionalAttributes = "
|
|
23
|
+
export type CanonTrackOptionalAttributes = "discNumber" | "discTrackNumber" | "id" | "createDate" | "updateDate";
|
|
22
24
|
export type CanonTrackCreationAttributes = Optional<CanonTrackAttributes, CanonTrackOptionalAttributes>;
|
|
23
25
|
export declare class CanonTrack extends Model<CanonTrackAttributes, CanonTrackCreationAttributes> implements CanonTrackAttributes {
|
|
24
|
-
id: string;
|
|
25
26
|
name: string;
|
|
26
27
|
asciiName: string;
|
|
27
28
|
explicit: boolean;
|
|
28
29
|
discNumber?: number;
|
|
29
30
|
discTrackNumber?: number;
|
|
31
|
+
durationMs: number;
|
|
32
|
+
id: string;
|
|
30
33
|
createDate: Date;
|
|
31
34
|
updateDate: Date;
|
|
32
|
-
|
|
35
|
+
canonAlbumIdCanonAlbumCanonAlbumTrackRelations: CanonAlbum[];
|
|
36
|
+
getCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonAlbum>;
|
|
37
|
+
setCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
38
|
+
addCanonAlbumIdCanonAlbumCanonAlbumTrackRelation: Sequelize.BelongsToManyAddAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
39
|
+
addCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManyAddAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
40
|
+
createCanonAlbumIdCanonAlbumCanonAlbumTrackRelation: Sequelize.BelongsToManyCreateAssociationMixin<CanonAlbum>;
|
|
41
|
+
removeCanonAlbumIdCanonAlbumCanonAlbumTrackRelation: Sequelize.BelongsToManyRemoveAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
42
|
+
removeCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
43
|
+
hasCanonAlbumIdCanonAlbumCanonAlbumTrackRelation: Sequelize.BelongsToManyHasAssociationMixin<CanonAlbum, CanonAlbumId>;
|
|
44
|
+
hasCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManyHasAssociationsMixin<CanonAlbum, CanonAlbumId>;
|
|
45
|
+
countCanonAlbumIdCanonAlbumCanonAlbumTrackRelations: Sequelize.BelongsToManyCountAssociationsMixin;
|
|
46
|
+
canonAlbumTrackRelations: CanonAlbumTrackRelation[];
|
|
47
|
+
getCanonAlbumTrackRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumTrackRelation>;
|
|
48
|
+
setCanonAlbumTrackRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
49
|
+
addCanonAlbumTrackRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
50
|
+
addCanonAlbumTrackRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
51
|
+
createCanonAlbumTrackRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumTrackRelation>;
|
|
52
|
+
removeCanonAlbumTrackRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
53
|
+
removeCanonAlbumTrackRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
54
|
+
hasCanonAlbumTrackRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
55
|
+
hasCanonAlbumTrackRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumTrackRelation, CanonAlbumTrackRelationId>;
|
|
56
|
+
countCanonAlbumTrackRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
33
57
|
canonArtistIdCanonArtistCanonArtistTrackRelations: CanonArtist[];
|
|
34
58
|
getCanonArtistIdCanonArtistCanonArtistTrackRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonArtist>;
|
|
35
59
|
setCanonArtistIdCanonArtistCanonArtistTrackRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonArtist, CanonArtistId>;
|
package/dist/CanonTrack.js
CHANGED
|
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class CanonTrack extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return CanonTrack.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
32
|
name: {
|
|
39
33
|
type: sequelize_1.DataTypes.TEXT,
|
|
40
34
|
allowNull: false
|
|
@@ -58,6 +52,17 @@ class CanonTrack extends sequelize_1.Model {
|
|
|
58
52
|
allowNull: true,
|
|
59
53
|
field: 'disc_track_number'
|
|
60
54
|
},
|
|
55
|
+
durationMs: {
|
|
56
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
57
|
+
allowNull: false,
|
|
58
|
+
field: 'duration_ms'
|
|
59
|
+
},
|
|
60
|
+
id: {
|
|
61
|
+
type: sequelize_1.DataTypes.UUID,
|
|
62
|
+
allowNull: false,
|
|
63
|
+
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
64
|
+
primaryKey: true
|
|
65
|
+
},
|
|
61
66
|
createDate: {
|
|
62
67
|
type: sequelize_1.DataTypes.DATE,
|
|
63
68
|
allowNull: false,
|
|
@@ -69,11 +74,6 @@ class CanonTrack extends sequelize_1.Model {
|
|
|
69
74
|
allowNull: false,
|
|
70
75
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
71
76
|
field: 'update_date'
|
|
72
|
-
},
|
|
73
|
-
durationMs: {
|
|
74
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
75
|
-
allowNull: false,
|
|
76
|
-
field: 'duration_ms'
|
|
77
77
|
}
|
|
78
78
|
}, {
|
|
79
79
|
sequelize,
|
package/dist/ConfigParam.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as Sequelize from 'sequelize';
|
|
2
2
|
import { Model, Optional } from 'sequelize';
|
|
3
3
|
export interface ConfigParamAttributes {
|
|
4
|
-
name: string;
|
|
5
4
|
value?: string;
|
|
6
5
|
createdAt: Date;
|
|
7
6
|
updatedAt: Date;
|
|
7
|
+
name: string;
|
|
8
8
|
}
|
|
9
9
|
export type ConfigParamPk = "name";
|
|
10
10
|
export type ConfigParamId = ConfigParam[ConfigParamPk];
|
|
11
11
|
export type ConfigParamOptionalAttributes = "value" | "createdAt" | "updatedAt";
|
|
12
12
|
export type ConfigParamCreationAttributes = Optional<ConfigParamAttributes, ConfigParamOptionalAttributes>;
|
|
13
13
|
export declare class ConfigParam extends Model<ConfigParamAttributes, ConfigParamCreationAttributes> implements ConfigParamAttributes {
|
|
14
|
-
name: string;
|
|
15
14
|
value?: string;
|
|
16
15
|
createdAt: Date;
|
|
17
16
|
updatedAt: Date;
|
|
17
|
+
name: string;
|
|
18
18
|
static initModel(sequelize: Sequelize.Sequelize): typeof ConfigParam;
|
|
19
19
|
}
|
package/dist/ConfigParam.js
CHANGED
|
@@ -29,11 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class ConfigParam extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return ConfigParam.init({
|
|
32
|
-
name: {
|
|
33
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
primaryKey: true
|
|
36
|
-
},
|
|
37
32
|
value: {
|
|
38
33
|
type: sequelize_1.DataTypes.TEXT,
|
|
39
34
|
allowNull: true
|
|
@@ -49,6 +44,11 @@ class ConfigParam extends sequelize_1.Model {
|
|
|
49
44
|
allowNull: false,
|
|
50
45
|
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
51
46
|
field: 'updated_at'
|
|
47
|
+
},
|
|
48
|
+
name: {
|
|
49
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
primaryKey: true
|
|
52
52
|
}
|
|
53
53
|
}, {
|
|
54
54
|
sequelize,
|
|
@@ -11,8 +11,8 @@ import type { CanonMember, CanonMemberId } from './CanonMember';
|
|
|
11
11
|
import type { CanonMemberExternalReferenceRelation, CanonMemberExternalReferenceRelationId } from './CanonMemberExternalReferenceRelation';
|
|
12
12
|
import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
|
|
13
13
|
export interface ExternalReferenceAttributes {
|
|
14
|
-
id: string;
|
|
15
14
|
name: string;
|
|
15
|
+
id: string;
|
|
16
16
|
createDate: Date;
|
|
17
17
|
updateDate: Date;
|
|
18
18
|
}
|
|
@@ -21,8 +21,8 @@ export type ExternalReferenceId = ExternalReference[ExternalReferencePk];
|
|
|
21
21
|
export type ExternalReferenceOptionalAttributes = "id" | "createDate" | "updateDate";
|
|
22
22
|
export type ExternalReferenceCreationAttributes = Optional<ExternalReferenceAttributes, ExternalReferenceOptionalAttributes>;
|
|
23
23
|
export declare class ExternalReference extends Model<ExternalReferenceAttributes, ExternalReferenceCreationAttributes> implements ExternalReferenceAttributes {
|
|
24
|
-
id: string;
|
|
25
24
|
name: string;
|
|
25
|
+
id: string;
|
|
26
26
|
createDate: Date;
|
|
27
27
|
updateDate: Date;
|
|
28
28
|
canonAlbumIdCanonAlbums: CanonAlbum[];
|
|
@@ -29,17 +29,17 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class ExternalReference extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return ExternalReference.init({
|
|
32
|
+
name: {
|
|
33
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
unique: "external_reference_un"
|
|
36
|
+
},
|
|
32
37
|
id: {
|
|
33
38
|
type: sequelize_1.DataTypes.UUID,
|
|
34
39
|
allowNull: false,
|
|
35
40
|
defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
|
|
36
41
|
primaryKey: true
|
|
37
42
|
},
|
|
38
|
-
name: {
|
|
39
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
40
|
-
allowNull: false,
|
|
41
|
-
unique: "external_reference_un"
|
|
42
|
-
},
|
|
43
43
|
createDate: {
|
|
44
44
|
type: sequelize_1.DataTypes.DATE,
|
|
45
45
|
allowNull: false,
|
|
@@ -2,15 +2,15 @@ import * as Sequelize from 'sequelize';
|
|
|
2
2
|
import { Model } from 'sequelize';
|
|
3
3
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
4
4
|
export interface JukeboxAccessTypeAttributes {
|
|
5
|
-
id: number;
|
|
6
5
|
description: string;
|
|
6
|
+
id: number;
|
|
7
7
|
}
|
|
8
8
|
export type JukeboxAccessTypePk = "id";
|
|
9
9
|
export type JukeboxAccessTypeId = JukeboxAccessType[JukeboxAccessTypePk];
|
|
10
10
|
export type JukeboxAccessTypeCreationAttributes = JukeboxAccessTypeAttributes;
|
|
11
11
|
export declare class JukeboxAccessType extends Model<JukeboxAccessTypeAttributes, JukeboxAccessTypeCreationAttributes> implements JukeboxAccessTypeAttributes {
|
|
12
|
-
id: number;
|
|
13
12
|
description: string;
|
|
13
|
+
id: number;
|
|
14
14
|
jukeboxSessions: JukeboxSession[];
|
|
15
15
|
getJukeboxSessions: Sequelize.HasManyGetAssociationsMixin<JukeboxSession>;
|
|
16
16
|
setJukeboxSessions: Sequelize.HasManySetAssociationsMixin<JukeboxSession, JukeboxSessionId>;
|
|
@@ -5,16 +5,16 @@ const sequelize_1 = require("sequelize");
|
|
|
5
5
|
class JukeboxAccessType extends sequelize_1.Model {
|
|
6
6
|
static initModel(sequelize) {
|
|
7
7
|
return JukeboxAccessType.init({
|
|
8
|
+
description: {
|
|
9
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
10
|
+
allowNull: false
|
|
11
|
+
},
|
|
8
12
|
id: {
|
|
9
13
|
autoIncrement: true,
|
|
10
14
|
autoIncrementIdentity: true,
|
|
11
15
|
type: sequelize_1.DataTypes.SMALLINT,
|
|
12
16
|
allowNull: false,
|
|
13
17
|
primaryKey: true
|
|
14
|
-
},
|
|
15
|
-
description: {
|
|
16
|
-
type: sequelize_1.DataTypes.TEXT,
|
|
17
|
-
allowNull: false
|
|
18
18
|
}
|
|
19
19
|
}, {
|
|
20
20
|
sequelize,
|
|
@@ -3,10 +3,10 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { CanonGenre, CanonGenreId } from './CanonGenre';
|
|
4
4
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
5
|
export interface JukeboxCanonGenreRelationAttributes {
|
|
6
|
-
id: string;
|
|
7
6
|
jukeboxSessionId: string;
|
|
8
7
|
canonGenreId: string;
|
|
9
8
|
stateId: number;
|
|
9
|
+
id: string;
|
|
10
10
|
createdAt: Date;
|
|
11
11
|
updatedAt: Date;
|
|
12
12
|
}
|
|
@@ -15,10 +15,10 @@ export type JukeboxCanonGenreRelationId = JukeboxCanonGenreRelation[JukeboxCanon
|
|
|
15
15
|
export type JukeboxCanonGenreRelationOptionalAttributes = "id" | "createdAt" | "updatedAt";
|
|
16
16
|
export type JukeboxCanonGenreRelationCreationAttributes = Optional<JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationOptionalAttributes>;
|
|
17
17
|
export declare class JukeboxCanonGenreRelation extends Model<JukeboxCanonGenreRelationAttributes, JukeboxCanonGenreRelationCreationAttributes> implements JukeboxCanonGenreRelationAttributes {
|
|
18
|
-
id: string;
|
|
19
18
|
jukeboxSessionId: string;
|
|
20
19
|
canonGenreId: string;
|
|
21
20
|
stateId: number;
|
|
21
|
+
id: string;
|
|
22
22
|
createdAt: Date;
|
|
23
23
|
updatedAt: Date;
|
|
24
24
|
canonGenre: CanonGenre;
|
|
@@ -29,12 +29,6 @@ const sequelize_1 = require("sequelize");
|
|
|
29
29
|
class JukeboxCanonGenreRelation extends sequelize_1.Model {
|
|
30
30
|
static initModel(sequelize) {
|
|
31
31
|
return JukeboxCanonGenreRelation.init({
|
|
32
|
-
id: {
|
|
33
|
-
type: sequelize_1.DataTypes.UUID,
|
|
34
|
-
allowNull: false,
|
|
35
|
-
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
-
primaryKey: true
|
|
37
|
-
},
|
|
38
32
|
jukeboxSessionId: {
|
|
39
33
|
type: sequelize_1.DataTypes.UUID,
|
|
40
34
|
allowNull: false,
|
|
@@ -60,6 +54,12 @@ class JukeboxCanonGenreRelation extends sequelize_1.Model {
|
|
|
60
54
|
allowNull: false,
|
|
61
55
|
field: 'state_id'
|
|
62
56
|
},
|
|
57
|
+
id: {
|
|
58
|
+
type: sequelize_1.DataTypes.UUID,
|
|
59
|
+
allowNull: false,
|
|
60
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
61
|
+
primaryKey: true
|
|
62
|
+
},
|
|
63
63
|
createdAt: {
|
|
64
64
|
type: sequelize_1.DataTypes.DATE,
|
|
65
65
|
allowNull: false,
|
package/dist/JukeboxInvite.d.ts
CHANGED
|
@@ -3,24 +3,24 @@ import { Model, Optional } from 'sequelize';
|
|
|
3
3
|
import type { AppUser, AppUserId } from './AppUser';
|
|
4
4
|
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
5
|
export interface JukeboxInviteAttributes {
|
|
6
|
-
id: string;
|
|
7
6
|
jukeboxSessionId: string;
|
|
8
7
|
inviterUserId: string;
|
|
9
8
|
invitedUserId?: string;
|
|
10
9
|
email?: string;
|
|
10
|
+
id: string;
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
}
|
|
14
14
|
export type JukeboxInvitePk = "id";
|
|
15
15
|
export type JukeboxInviteId = JukeboxInvite[JukeboxInvitePk];
|
|
16
|
-
export type JukeboxInviteOptionalAttributes = "
|
|
16
|
+
export type JukeboxInviteOptionalAttributes = "invitedUserId" | "email" | "id" | "createdAt" | "updatedAt";
|
|
17
17
|
export type JukeboxInviteCreationAttributes = Optional<JukeboxInviteAttributes, JukeboxInviteOptionalAttributes>;
|
|
18
18
|
export declare class JukeboxInvite extends Model<JukeboxInviteAttributes, JukeboxInviteCreationAttributes> implements JukeboxInviteAttributes {
|
|
19
|
-
id: string;
|
|
20
19
|
jukeboxSessionId: string;
|
|
21
20
|
inviterUserId: string;
|
|
22
21
|
invitedUserId?: string;
|
|
23
22
|
email?: string;
|
|
23
|
+
id: string;
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
26
26
|
invitedUser: AppUser;
|