@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
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
20
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUserDevice, AppUserDeviceId } from './AppUserDevice';
|
|
4
|
+
import type { AppUserFollowRelation, AppUserFollowRelationId } from './AppUserFollowRelation';
|
|
5
|
+
import type { AppUserPlatformRelation, AppUserPlatformRelationId } from './AppUserPlatformRelation';
|
|
6
|
+
import type { JukeboxInvite, JukeboxInviteId } from './JukeboxInvite';
|
|
7
|
+
import type { JukeboxQueueEntry, JukeboxQueueEntryId } from './JukeboxQueueEntry';
|
|
8
|
+
import type { JukeboxUser, JukeboxUserId } from './JukeboxUser';
|
|
9
|
+
import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
|
|
10
|
+
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
11
|
+
import type { State, StateId } from './State';
|
|
12
|
+
import type { UserContacts, UserContactsId } from './UserContacts';
|
|
13
|
+
export interface AppUserAttributes {
|
|
14
|
+
id: string;
|
|
15
|
+
email: string;
|
|
16
|
+
firstName: string;
|
|
17
|
+
createDate: Date;
|
|
18
|
+
updateDate: Date;
|
|
19
|
+
stateId: number;
|
|
20
|
+
syncContacts?: boolean;
|
|
21
|
+
lastName?: string;
|
|
22
|
+
autoApproveFollowers: boolean;
|
|
23
|
+
lastHarvested?: Date;
|
|
24
|
+
lastHarvestedError?: string;
|
|
25
|
+
}
|
|
26
|
+
export type AppUserPk = "id";
|
|
27
|
+
export type AppUserId = AppUser[AppUserPk];
|
|
28
|
+
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "stateId" | "syncContacts" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError";
|
|
29
|
+
export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
|
|
30
|
+
export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
|
|
31
|
+
id: string;
|
|
32
|
+
email: string;
|
|
33
|
+
firstName: string;
|
|
34
|
+
createDate: Date;
|
|
35
|
+
updateDate: Date;
|
|
36
|
+
stateId: number;
|
|
37
|
+
syncContacts?: boolean;
|
|
38
|
+
lastName?: string;
|
|
39
|
+
autoApproveFollowers: boolean;
|
|
40
|
+
lastHarvested?: Date;
|
|
41
|
+
lastHarvestedError?: string;
|
|
42
|
+
appUserDevices: AppUserDevice[];
|
|
43
|
+
getAppUserDevices: Sequelize.HasManyGetAssociationsMixin<AppUserDevice>;
|
|
44
|
+
setAppUserDevices: Sequelize.HasManySetAssociationsMixin<AppUserDevice, AppUserDeviceId>;
|
|
45
|
+
addAppUserDevice: Sequelize.HasManyAddAssociationMixin<AppUserDevice, AppUserDeviceId>;
|
|
46
|
+
addAppUserDevices: Sequelize.HasManyAddAssociationsMixin<AppUserDevice, AppUserDeviceId>;
|
|
47
|
+
createAppUserDevice: Sequelize.HasManyCreateAssociationMixin<AppUserDevice>;
|
|
48
|
+
removeAppUserDevice: Sequelize.HasManyRemoveAssociationMixin<AppUserDevice, AppUserDeviceId>;
|
|
49
|
+
removeAppUserDevices: Sequelize.HasManyRemoveAssociationsMixin<AppUserDevice, AppUserDeviceId>;
|
|
50
|
+
hasAppUserDevice: Sequelize.HasManyHasAssociationMixin<AppUserDevice, AppUserDeviceId>;
|
|
51
|
+
hasAppUserDevices: Sequelize.HasManyHasAssociationsMixin<AppUserDevice, AppUserDeviceId>;
|
|
52
|
+
countAppUserDevices: Sequelize.HasManyCountAssociationsMixin;
|
|
53
|
+
appUserFollowRelations: AppUserFollowRelation[];
|
|
54
|
+
getAppUserFollowRelations: Sequelize.HasManyGetAssociationsMixin<AppUserFollowRelation>;
|
|
55
|
+
setAppUserFollowRelations: Sequelize.HasManySetAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
56
|
+
addAppUserFollowRelation: Sequelize.HasManyAddAssociationMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
57
|
+
addAppUserFollowRelations: Sequelize.HasManyAddAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
58
|
+
createAppUserFollowRelation: Sequelize.HasManyCreateAssociationMixin<AppUserFollowRelation>;
|
|
59
|
+
removeAppUserFollowRelation: Sequelize.HasManyRemoveAssociationMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
60
|
+
removeAppUserFollowRelations: Sequelize.HasManyRemoveAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
61
|
+
hasAppUserFollowRelation: Sequelize.HasManyHasAssociationMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
62
|
+
hasAppUserFollowRelations: Sequelize.HasManyHasAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
63
|
+
countAppUserFollowRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
64
|
+
followingAppUserAppUserFollowRelations: AppUserFollowRelation[];
|
|
65
|
+
getFollowingAppUserAppUserFollowRelations: Sequelize.HasManyGetAssociationsMixin<AppUserFollowRelation>;
|
|
66
|
+
setFollowingAppUserAppUserFollowRelations: Sequelize.HasManySetAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
67
|
+
addFollowingAppUserAppUserFollowRelation: Sequelize.HasManyAddAssociationMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
68
|
+
addFollowingAppUserAppUserFollowRelations: Sequelize.HasManyAddAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
69
|
+
createFollowingAppUserAppUserFollowRelation: Sequelize.HasManyCreateAssociationMixin<AppUserFollowRelation>;
|
|
70
|
+
removeFollowingAppUserAppUserFollowRelation: Sequelize.HasManyRemoveAssociationMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
71
|
+
removeFollowingAppUserAppUserFollowRelations: Sequelize.HasManyRemoveAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
72
|
+
hasFollowingAppUserAppUserFollowRelation: Sequelize.HasManyHasAssociationMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
73
|
+
hasFollowingAppUserAppUserFollowRelations: Sequelize.HasManyHasAssociationsMixin<AppUserFollowRelation, AppUserFollowRelationId>;
|
|
74
|
+
countFollowingAppUserAppUserFollowRelations: Sequelize.HasManyCountAssociationsMixin;
|
|
75
|
+
appUserPlatformRelation: AppUserPlatformRelation;
|
|
76
|
+
getAppUserPlatformRelation: Sequelize.HasOneGetAssociationMixin<AppUserPlatformRelation>;
|
|
77
|
+
setAppUserPlatformRelation: Sequelize.HasOneSetAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
|
|
78
|
+
createAppUserPlatformRelation: Sequelize.HasOneCreateAssociationMixin<AppUserPlatformRelation>;
|
|
79
|
+
jukeboxInvites: JukeboxInvite[];
|
|
80
|
+
getJukeboxInvites: Sequelize.HasManyGetAssociationsMixin<JukeboxInvite>;
|
|
81
|
+
setJukeboxInvites: Sequelize.HasManySetAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
82
|
+
addJukeboxInvite: Sequelize.HasManyAddAssociationMixin<JukeboxInvite, JukeboxInviteId>;
|
|
83
|
+
addJukeboxInvites: Sequelize.HasManyAddAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
84
|
+
createJukeboxInvite: Sequelize.HasManyCreateAssociationMixin<JukeboxInvite>;
|
|
85
|
+
removeJukeboxInvite: Sequelize.HasManyRemoveAssociationMixin<JukeboxInvite, JukeboxInviteId>;
|
|
86
|
+
removeJukeboxInvites: Sequelize.HasManyRemoveAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
87
|
+
hasJukeboxInvite: Sequelize.HasManyHasAssociationMixin<JukeboxInvite, JukeboxInviteId>;
|
|
88
|
+
hasJukeboxInvites: Sequelize.HasManyHasAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
89
|
+
countJukeboxInvites: Sequelize.HasManyCountAssociationsMixin;
|
|
90
|
+
inviterUserJukeboxInvites: JukeboxInvite[];
|
|
91
|
+
getInviterUserJukeboxInvites: Sequelize.HasManyGetAssociationsMixin<JukeboxInvite>;
|
|
92
|
+
setInviterUserJukeboxInvites: Sequelize.HasManySetAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
93
|
+
addInviterUserJukeboxInvite: Sequelize.HasManyAddAssociationMixin<JukeboxInvite, JukeboxInviteId>;
|
|
94
|
+
addInviterUserJukeboxInvites: Sequelize.HasManyAddAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
95
|
+
createInviterUserJukeboxInvite: Sequelize.HasManyCreateAssociationMixin<JukeboxInvite>;
|
|
96
|
+
removeInviterUserJukeboxInvite: Sequelize.HasManyRemoveAssociationMixin<JukeboxInvite, JukeboxInviteId>;
|
|
97
|
+
removeInviterUserJukeboxInvites: Sequelize.HasManyRemoveAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
98
|
+
hasInviterUserJukeboxInvite: Sequelize.HasManyHasAssociationMixin<JukeboxInvite, JukeboxInviteId>;
|
|
99
|
+
hasInviterUserJukeboxInvites: Sequelize.HasManyHasAssociationsMixin<JukeboxInvite, JukeboxInviteId>;
|
|
100
|
+
countInviterUserJukeboxInvites: Sequelize.HasManyCountAssociationsMixin;
|
|
101
|
+
jukeboxQueueEntries: JukeboxQueueEntry[];
|
|
102
|
+
getJukeboxQueueEntries: Sequelize.HasManyGetAssociationsMixin<JukeboxQueueEntry>;
|
|
103
|
+
setJukeboxQueueEntries: Sequelize.HasManySetAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
104
|
+
addJukeboxQueueEntry: Sequelize.HasManyAddAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
105
|
+
addJukeboxQueueEntries: Sequelize.HasManyAddAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
106
|
+
createJukeboxQueueEntry: Sequelize.HasManyCreateAssociationMixin<JukeboxQueueEntry>;
|
|
107
|
+
removeJukeboxQueueEntry: Sequelize.HasManyRemoveAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
108
|
+
removeJukeboxQueueEntries: Sequelize.HasManyRemoveAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
109
|
+
hasJukeboxQueueEntry: Sequelize.HasManyHasAssociationMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
110
|
+
hasJukeboxQueueEntries: Sequelize.HasManyHasAssociationsMixin<JukeboxQueueEntry, JukeboxQueueEntryId>;
|
|
111
|
+
countJukeboxQueueEntries: Sequelize.HasManyCountAssociationsMixin;
|
|
112
|
+
jukeboxUsers: JukeboxUser[];
|
|
113
|
+
getJukeboxUsers: Sequelize.HasManyGetAssociationsMixin<JukeboxUser>;
|
|
114
|
+
setJukeboxUsers: Sequelize.HasManySetAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
115
|
+
addJukeboxUser: Sequelize.HasManyAddAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
116
|
+
addJukeboxUsers: Sequelize.HasManyAddAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
117
|
+
createJukeboxUser: Sequelize.HasManyCreateAssociationMixin<JukeboxUser>;
|
|
118
|
+
removeJukeboxUser: Sequelize.HasManyRemoveAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
119
|
+
removeJukeboxUsers: Sequelize.HasManyRemoveAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
120
|
+
hasJukeboxUser: Sequelize.HasManyHasAssociationMixin<JukeboxUser, JukeboxUserId>;
|
|
121
|
+
hasJukeboxUsers: Sequelize.HasManyHasAssociationsMixin<JukeboxUser, JukeboxUserId>;
|
|
122
|
+
countJukeboxUsers: Sequelize.HasManyCountAssociationsMixin;
|
|
123
|
+
platformUserAlbums: PlatformUserAlbum[];
|
|
124
|
+
getPlatformUserAlbums: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbum>;
|
|
125
|
+
setPlatformUserAlbums: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
126
|
+
addPlatformUserAlbum: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
127
|
+
addPlatformUserAlbums: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
128
|
+
createPlatformUserAlbum: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbum>;
|
|
129
|
+
removePlatformUserAlbum: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
130
|
+
removePlatformUserAlbums: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
131
|
+
hasPlatformUserAlbum: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
132
|
+
hasPlatformUserAlbums: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
|
|
133
|
+
countPlatformUserAlbums: Sequelize.HasManyCountAssociationsMixin;
|
|
134
|
+
platformUserPlaylists: PlatformUserPlaylist[];
|
|
135
|
+
getPlatformUserPlaylists: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylist>;
|
|
136
|
+
setPlatformUserPlaylists: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
137
|
+
addPlatformUserPlaylist: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
138
|
+
addPlatformUserPlaylists: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
139
|
+
createPlatformUserPlaylist: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylist>;
|
|
140
|
+
removePlatformUserPlaylist: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
141
|
+
removePlatformUserPlaylists: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
142
|
+
hasPlatformUserPlaylist: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
143
|
+
hasPlatformUserPlaylists: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
144
|
+
countPlatformUserPlaylists: Sequelize.HasManyCountAssociationsMixin;
|
|
145
|
+
userContacts: UserContacts[];
|
|
146
|
+
getUserContacts: Sequelize.HasManyGetAssociationsMixin<UserContacts>;
|
|
147
|
+
setUserContacts: Sequelize.HasManySetAssociationsMixin<UserContacts, UserContactsId>;
|
|
148
|
+
addUserContact: Sequelize.HasManyAddAssociationMixin<UserContacts, UserContactsId>;
|
|
149
|
+
addUserContacts: Sequelize.HasManyAddAssociationsMixin<UserContacts, UserContactsId>;
|
|
150
|
+
createUserContact: Sequelize.HasManyCreateAssociationMixin<UserContacts>;
|
|
151
|
+
removeUserContact: Sequelize.HasManyRemoveAssociationMixin<UserContacts, UserContactsId>;
|
|
152
|
+
removeUserContacts: Sequelize.HasManyRemoveAssociationsMixin<UserContacts, UserContactsId>;
|
|
153
|
+
hasUserContact: Sequelize.HasManyHasAssociationMixin<UserContacts, UserContactsId>;
|
|
154
|
+
hasUserContacts: Sequelize.HasManyHasAssociationsMixin<UserContacts, UserContactsId>;
|
|
155
|
+
countUserContacts: Sequelize.HasManyCountAssociationsMixin;
|
|
156
|
+
state: State;
|
|
157
|
+
getState: Sequelize.BelongsToGetAssociationMixin<State>;
|
|
158
|
+
setState: Sequelize.BelongsToSetAssociationMixin<State, StateId>;
|
|
159
|
+
createState: Sequelize.BelongsToCreateAssociationMixin<State>;
|
|
160
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AppUser;
|
|
161
|
+
}
|
package/dist/AppUser.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
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.AppUser = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class AppUser extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return AppUser.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
|
+
email: {
|
|
39
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
unique: "uk_app_user_email"
|
|
42
|
+
},
|
|
43
|
+
firstName: {
|
|
44
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
45
|
+
allowNull: false,
|
|
46
|
+
field: 'first_name'
|
|
47
|
+
},
|
|
48
|
+
createDate: {
|
|
49
|
+
type: sequelize_1.DataTypes.DATE,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
52
|
+
field: 'create_date'
|
|
53
|
+
},
|
|
54
|
+
updateDate: {
|
|
55
|
+
type: sequelize_1.DataTypes.DATE,
|
|
56
|
+
allowNull: false,
|
|
57
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
58
|
+
field: 'update_date'
|
|
59
|
+
},
|
|
60
|
+
stateId: {
|
|
61
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
62
|
+
allowNull: false,
|
|
63
|
+
defaultValue: 0,
|
|
64
|
+
references: {
|
|
65
|
+
model: 'state',
|
|
66
|
+
key: 'id'
|
|
67
|
+
},
|
|
68
|
+
field: 'state_id'
|
|
69
|
+
},
|
|
70
|
+
syncContacts: {
|
|
71
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
72
|
+
allowNull: true,
|
|
73
|
+
defaultValue: false,
|
|
74
|
+
field: 'sync_contacts'
|
|
75
|
+
},
|
|
76
|
+
lastName: {
|
|
77
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
78
|
+
allowNull: true,
|
|
79
|
+
field: 'last_name'
|
|
80
|
+
},
|
|
81
|
+
autoApproveFollowers: {
|
|
82
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
83
|
+
allowNull: false,
|
|
84
|
+
defaultValue: true,
|
|
85
|
+
field: 'auto_approve_followers'
|
|
86
|
+
},
|
|
87
|
+
lastHarvested: {
|
|
88
|
+
type: sequelize_1.DataTypes.DATE,
|
|
89
|
+
allowNull: true,
|
|
90
|
+
field: 'last_harvested'
|
|
91
|
+
},
|
|
92
|
+
lastHarvestedError: {
|
|
93
|
+
type: sequelize_1.DataTypes.STRING(512),
|
|
94
|
+
allowNull: true,
|
|
95
|
+
field: 'last_harvested_error'
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
sequelize,
|
|
99
|
+
tableName: 'app_user',
|
|
100
|
+
schema: 'eb',
|
|
101
|
+
timestamps: false,
|
|
102
|
+
indexes: [
|
|
103
|
+
{
|
|
104
|
+
name: "app_user_pkey",
|
|
105
|
+
unique: true,
|
|
106
|
+
fields: [
|
|
107
|
+
{ name: "id" },
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "uk_app_user_email",
|
|
112
|
+
unique: true,
|
|
113
|
+
fields: [
|
|
114
|
+
{ name: "email" },
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.AppUser = AppUser;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
export interface AppUserDeviceAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
appUserId: string;
|
|
7
|
+
devicePlatformId: number;
|
|
8
|
+
endpointArn: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
}
|
|
11
|
+
export type AppUserDevicePk = "id";
|
|
12
|
+
export type AppUserDeviceId = AppUserDevice[AppUserDevicePk];
|
|
13
|
+
export type AppUserDeviceOptionalAttributes = "id" | "createdAt";
|
|
14
|
+
export type AppUserDeviceCreationAttributes = Optional<AppUserDeviceAttributes, AppUserDeviceOptionalAttributes>;
|
|
15
|
+
export declare class AppUserDevice extends Model<AppUserDeviceAttributes, AppUserDeviceCreationAttributes> implements AppUserDeviceAttributes {
|
|
16
|
+
id: string;
|
|
17
|
+
appUserId: string;
|
|
18
|
+
devicePlatformId: number;
|
|
19
|
+
endpointArn: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
appUser: AppUser;
|
|
22
|
+
getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
23
|
+
setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
24
|
+
createAppUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
25
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AppUserDevice;
|
|
26
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.AppUserDevice = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class AppUserDevice extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return AppUserDevice.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
appUserId: {
|
|
39
|
+
type: sequelize_1.DataTypes.UUID,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'app_user',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
field: 'app_user_id'
|
|
46
|
+
},
|
|
47
|
+
devicePlatformId: {
|
|
48
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
49
|
+
allowNull: false,
|
|
50
|
+
field: 'device_platform_id'
|
|
51
|
+
},
|
|
52
|
+
endpointArn: {
|
|
53
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
54
|
+
allowNull: false,
|
|
55
|
+
unique: "unique_app_user_device_endpoint_arn",
|
|
56
|
+
field: 'endpoint_arn'
|
|
57
|
+
},
|
|
58
|
+
createdAt: {
|
|
59
|
+
type: sequelize_1.DataTypes.DATE,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
62
|
+
field: 'created_at'
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
sequelize,
|
|
66
|
+
tableName: 'app_user_device',
|
|
67
|
+
schema: 'eb',
|
|
68
|
+
timestamps: false,
|
|
69
|
+
indexes: [
|
|
70
|
+
{
|
|
71
|
+
name: "app_user_device_pkey",
|
|
72
|
+
unique: true,
|
|
73
|
+
fields: [
|
|
74
|
+
{ name: "id" },
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "unique_app_user_device_endpoint_arn",
|
|
79
|
+
unique: true,
|
|
80
|
+
fields: [
|
|
81
|
+
{ name: "endpoint_arn" },
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.AppUserDevice = AppUserDevice;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
export interface AppUserFollowRelationAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
appUserId: string;
|
|
7
|
+
followingAppUserId: string;
|
|
8
|
+
stateId: number;
|
|
9
|
+
isBlocked: boolean;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export type AppUserFollowRelationPk = "id";
|
|
14
|
+
export type AppUserFollowRelationId = AppUserFollowRelation[AppUserFollowRelationPk];
|
|
15
|
+
export type AppUserFollowRelationOptionalAttributes = "id" | "stateId" | "createdAt" | "updatedAt";
|
|
16
|
+
export type AppUserFollowRelationCreationAttributes = Optional<AppUserFollowRelationAttributes, AppUserFollowRelationOptionalAttributes>;
|
|
17
|
+
export declare class AppUserFollowRelation extends Model<AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes> implements AppUserFollowRelationAttributes {
|
|
18
|
+
id: string;
|
|
19
|
+
appUserId: string;
|
|
20
|
+
followingAppUserId: string;
|
|
21
|
+
stateId: number;
|
|
22
|
+
isBlocked: boolean;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
appUser: AppUser;
|
|
26
|
+
getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
27
|
+
setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
28
|
+
createAppUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
29
|
+
followingAppUser: AppUser;
|
|
30
|
+
getFollowingAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
31
|
+
setFollowingAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
32
|
+
createFollowingAppUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
33
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AppUserFollowRelation;
|
|
34
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.AppUserFollowRelation = void 0;
|
|
27
|
+
const Sequelize = __importStar(require("sequelize"));
|
|
28
|
+
const sequelize_1 = require("sequelize");
|
|
29
|
+
class AppUserFollowRelation extends sequelize_1.Model {
|
|
30
|
+
static initModel(sequelize) {
|
|
31
|
+
return AppUserFollowRelation.init({
|
|
32
|
+
id: {
|
|
33
|
+
type: sequelize_1.DataTypes.UUID,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
36
|
+
primaryKey: true
|
|
37
|
+
},
|
|
38
|
+
appUserId: {
|
|
39
|
+
type: sequelize_1.DataTypes.UUID,
|
|
40
|
+
allowNull: false,
|
|
41
|
+
references: {
|
|
42
|
+
model: 'app_user',
|
|
43
|
+
key: 'id'
|
|
44
|
+
},
|
|
45
|
+
unique: "unique_app_user_followers",
|
|
46
|
+
field: 'app_user_id'
|
|
47
|
+
},
|
|
48
|
+
followingAppUserId: {
|
|
49
|
+
type: sequelize_1.DataTypes.UUID,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
references: {
|
|
52
|
+
model: 'app_user',
|
|
53
|
+
key: 'id'
|
|
54
|
+
},
|
|
55
|
+
unique: "unique_app_user_followers",
|
|
56
|
+
field: 'following_app_user_id'
|
|
57
|
+
},
|
|
58
|
+
stateId: {
|
|
59
|
+
type: sequelize_1.DataTypes.SMALLINT,
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: 0,
|
|
62
|
+
field: 'state_id'
|
|
63
|
+
},
|
|
64
|
+
isBlocked: {
|
|
65
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
66
|
+
allowNull: false,
|
|
67
|
+
defaultValue: false,
|
|
68
|
+
field: 'is_blocked'
|
|
69
|
+
},
|
|
70
|
+
createdAt: {
|
|
71
|
+
type: sequelize_1.DataTypes.DATE,
|
|
72
|
+
allowNull: false,
|
|
73
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
74
|
+
field: 'created_at'
|
|
75
|
+
},
|
|
76
|
+
updatedAt: {
|
|
77
|
+
type: sequelize_1.DataTypes.DATE,
|
|
78
|
+
allowNull: false,
|
|
79
|
+
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
80
|
+
field: 'updated_at'
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
sequelize,
|
|
84
|
+
tableName: 'app_user_follow_relation',
|
|
85
|
+
schema: 'eb',
|
|
86
|
+
timestamps: false,
|
|
87
|
+
indexes: [
|
|
88
|
+
{
|
|
89
|
+
name: "app_user_follow_relation_pkey",
|
|
90
|
+
unique: true,
|
|
91
|
+
fields: [
|
|
92
|
+
{ name: "id" },
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "app_user_id",
|
|
97
|
+
fields: [
|
|
98
|
+
{ name: "app_user_id" },
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "unique_app_user_followers",
|
|
103
|
+
unique: true,
|
|
104
|
+
fields: [
|
|
105
|
+
{ name: "app_user_id" },
|
|
106
|
+
{ name: "following_app_user_id" },
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
]
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.AppUserFollowRelation = AppUserFollowRelation;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Sequelize from 'sequelize';
|
|
2
|
+
import { Model, Optional } from 'sequelize';
|
|
3
|
+
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
+
import type { Platform, PlatformId } from './Platform';
|
|
5
|
+
export interface AppUserPlatformRelationAttributes {
|
|
6
|
+
id: string;
|
|
7
|
+
appUserId: string;
|
|
8
|
+
platformId: number;
|
|
9
|
+
externalUserId: string;
|
|
10
|
+
createDate: Date;
|
|
11
|
+
updateDate: Date;
|
|
12
|
+
accessToken: string;
|
|
13
|
+
refreshToken?: string;
|
|
14
|
+
expirationDate: Date;
|
|
15
|
+
countryCode: string;
|
|
16
|
+
stateId: number;
|
|
17
|
+
}
|
|
18
|
+
export type AppUserPlatformRelationPk = "id";
|
|
19
|
+
export type AppUserPlatformRelationId = AppUserPlatformRelation[AppUserPlatformRelationPk];
|
|
20
|
+
export type AppUserPlatformRelationOptionalAttributes = "id" | "createDate" | "updateDate" | "refreshToken" | "stateId";
|
|
21
|
+
export type AppUserPlatformRelationCreationAttributes = Optional<AppUserPlatformRelationAttributes, AppUserPlatformRelationOptionalAttributes>;
|
|
22
|
+
export declare class AppUserPlatformRelation extends Model<AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes> implements AppUserPlatformRelationAttributes {
|
|
23
|
+
id: string;
|
|
24
|
+
appUserId: string;
|
|
25
|
+
platformId: number;
|
|
26
|
+
externalUserId: string;
|
|
27
|
+
createDate: Date;
|
|
28
|
+
updateDate: Date;
|
|
29
|
+
accessToken: string;
|
|
30
|
+
refreshToken?: string;
|
|
31
|
+
expirationDate: Date;
|
|
32
|
+
countryCode: string;
|
|
33
|
+
stateId: number;
|
|
34
|
+
appUser: AppUser;
|
|
35
|
+
getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
36
|
+
setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
37
|
+
createAppUser: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
38
|
+
platform: Platform;
|
|
39
|
+
getPlatform: Sequelize.BelongsToGetAssociationMixin<Platform>;
|
|
40
|
+
setPlatform: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
|
|
41
|
+
createPlatform: Sequelize.BelongsToCreateAssociationMixin<Platform>;
|
|
42
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AppUserPlatformRelation;
|
|
43
|
+
}
|