@earbug/db-models 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AffinityRelationshipType.d.ts +2 -2
- package/dist/AffinityRelationshipType.js +6 -6
- package/dist/AppUser.d.ts +5 -5
- package/dist/AppUser.js +7 -7
- package/dist/AppUserDevice.d.ts +2 -2
- package/dist/AppUserDevice.js +6 -6
- package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
- package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
- package/dist/AppUserFollowRelation.d.ts +3 -3
- package/dist/AppUserFollowRelation.js +6 -6
- package/dist/AppUserPlatformRelation.d.ts +13 -13
- package/dist/AppUserPlatformRelation.js +25 -25
- package/dist/CanonAlbum.d.ts +5 -5
- package/dist/CanonAlbum.js +10 -10
- package/dist/CanonArtist.d.ts +5 -5
- package/dist/CanonArtist.js +11 -11
- package/dist/CanonGenre.d.ts +3 -3
- package/dist/CanonGenre.js +6 -6
- package/dist/CanonLabel.d.ts +2 -2
- package/dist/CanonLabel.js +6 -6
- package/dist/CanonMember.d.ts +3 -3
- package/dist/CanonMember.js +6 -6
- package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
- package/dist/CanonMemberExternalReferenceRelation.js +5 -5
- package/dist/CanonTrack.d.ts +5 -5
- package/dist/CanonTrack.js +11 -11
- package/dist/ConfigParam.d.ts +2 -2
- package/dist/ConfigParam.js +5 -5
- package/dist/ExternalReference.d.ts +2 -2
- package/dist/ExternalReference.js +5 -5
- package/dist/FeedContentType.d.ts +2 -2
- package/dist/FeedContentType.js +4 -4
- package/dist/GuestUser.d.ts +5 -5
- package/dist/GuestUser.js +13 -13
- package/dist/JukeboxAccessType.d.ts +2 -2
- package/dist/JukeboxAccessType.js +4 -4
- package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
- package/dist/JukeboxCanonGenreRelation.js +6 -6
- package/dist/JukeboxInvite.d.ts +3 -3
- package/dist/JukeboxInvite.js +6 -6
- package/dist/JukeboxQueueEntry.d.ts +9 -9
- package/dist/JukeboxQueueEntry.js +25 -25
- package/dist/JukeboxQueueMode.d.ts +2 -2
- package/dist/JukeboxQueueMode.js +4 -4
- package/dist/JukeboxSession.d.ts +9 -9
- package/dist/JukeboxSession.js +20 -20
- package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
- package/dist/JukeboxSessionArtistAffinity.js +6 -6
- package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
- package/dist/JukeboxSessionGenreAffinity.js +6 -6
- package/dist/JukeboxTerminationCondition.d.ts +2 -2
- package/dist/JukeboxTerminationCondition.js +4 -4
- package/dist/JukeboxType.d.ts +2 -2
- package/dist/JukeboxType.js +4 -4
- package/dist/JukeboxUser.d.ts +7 -7
- package/dist/JukeboxUser.js +20 -20
- package/dist/KnexMigrations.d.ts +3 -3
- package/dist/KnexMigrations.js +6 -6
- package/dist/KnexMigrationsLock.d.ts +3 -3
- package/dist/KnexMigrationsLock.js +5 -5
- package/dist/MerchItem.d.ts +3 -3
- package/dist/MerchItem.js +6 -6
- package/dist/MerchOrchestration.d.ts +3 -3
- package/dist/MerchOrchestration.js +6 -6
- package/dist/MerchPlatform.d.ts +2 -2
- package/dist/MerchPlatform.js +6 -6
- package/dist/MerchType.d.ts +2 -2
- package/dist/MerchType.js +4 -4
- package/dist/MetricsDaily.d.ts +3 -3
- package/dist/MetricsDaily.js +4 -4
- package/dist/NewsSite.d.ts +3 -3
- package/dist/NewsSite.js +6 -6
- package/dist/Notification.d.ts +13 -13
- package/dist/Notification.js +33 -33
- package/dist/Platform.d.ts +2 -2
- package/dist/Platform.js +7 -7
- package/dist/PlatformAlbum.d.ts +5 -5
- package/dist/PlatformAlbum.js +10 -10
- package/dist/PlatformArtist.d.ts +5 -5
- package/dist/PlatformArtist.js +10 -10
- package/dist/PlatformGenre.d.ts +2 -2
- package/dist/PlatformGenre.js +6 -6
- package/dist/PlatformTrack.d.ts +3 -3
- package/dist/PlatformTrack.js +6 -6
- package/dist/PlatformUserAlbum.d.ts +2 -2
- package/dist/PlatformUserAlbum.js +6 -6
- package/dist/PlatformUserAlbumTrack.d.ts +4 -4
- package/dist/PlatformUserAlbumTrack.js +11 -11
- package/dist/PlatformUserPlaylist.d.ts +5 -5
- package/dist/PlatformUserPlaylist.js +11 -11
- package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
- package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
- package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
- package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
- package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
- package/dist/PlatformUserPlaylistTrack.js +17 -17
- package/dist/PlaybackStatus.d.ts +2 -2
- package/dist/PlaybackStatus.js +4 -4
- package/dist/RadioShow.d.ts +3 -3
- package/dist/RadioShow.js +6 -6
- package/dist/RadioShowMedia.d.ts +3 -3
- package/dist/RadioShowMedia.js +6 -6
- package/dist/RadioShowPlacement.d.ts +3 -3
- package/dist/RadioShowPlacement.js +6 -6
- package/dist/RadioShowPublishRequests.d.ts +3 -3
- package/dist/RadioShowPublishRequests.js +6 -6
- package/dist/State.d.ts +2 -2
- package/dist/State.js +4 -4
- package/dist/UnmatchedAlbum.d.ts +2 -2
- package/dist/UnmatchedAlbum.js +6 -6
- package/dist/UnmatchedArtist.d.ts +2 -2
- package/dist/UnmatchedArtist.js +6 -6
- package/dist/UserAbuseReports.d.ts +7 -7
- package/dist/UserAbuseReports.js +18 -18
- package/dist/UserAffinity.d.ts +2 -2
- package/dist/UserAffinity.js +6 -6
- package/dist/UserArtistAffinity.d.ts +2 -2
- package/dist/UserArtistAffinity.js +6 -6
- package/dist/UserBookmarks.d.ts +3 -3
- package/dist/UserBookmarks.js +6 -6
- package/dist/UserComments.d.ts +5 -5
- package/dist/UserComments.js +12 -12
- package/dist/UserContacts.d.ts +3 -3
- package/dist/UserContacts.js +7 -7
- package/dist/UserEngagementFactor.d.ts +2 -2
- package/dist/UserEngagementFactor.js +6 -6
- package/dist/UserGenreAffinity.d.ts +2 -2
- package/dist/UserGenreAffinity.js +6 -6
- package/dist/UserLikes.d.ts +3 -3
- package/dist/UserLikes.js +6 -6
- package/dist/UserMessages.d.ts +5 -5
- package/dist/UserMessages.js +15 -15
- package/dist/Versus.d.ts +5 -5
- package/dist/Versus.js +11 -11
- package/dist/VersusCoCreator.d.ts +4 -4
- package/dist/VersusCoCreator.js +12 -12
- package/dist/VersusOption.d.ts +3 -3
- package/dist/VersusOption.js +6 -6
- package/dist/VersusPublishIssue.d.ts +3 -3
- package/dist/VersusPublishIssue.js +6 -6
- package/dist/VersusQuestion.d.ts +2 -2
- package/dist/VersusQuestion.js +6 -6
- package/dist/VersusVote.d.ts +2 -2
- package/dist/VersusVote.js +6 -6
- package/dist/init-models.d.ts +349 -3
- package/dist/init-models.js +905 -1
- package/package.json +5 -2
- package/.github/workflows/publish.yaml +0 -56
- package/.nvmrc +0 -1
- package/dist/CanonAlbumImageHarvested.d.ts +0 -30
- package/dist/CanonAlbumImageHarvested.js +0 -70
- package/dist/CanonArtistImageHarvested.d.ts +0 -30
- package/dist/CanonArtistImageHarvested.js +0 -70
- package/model_options.json +0 -3
- package/models/AccessControlPreference.ts +0 -53
- package/models/AffinityRelationshipType.ts +0 -96
- package/models/AffinityTier.ts +0 -131
- package/models/AppUser.ts +0 -577
- package/models/AppUserDevice.ts +0 -101
- package/models/AppUserFollowRelation.ts +0 -128
- package/models/AppUserPlatformRelation.ts +0 -150
- package/models/CanonAlbum.ts +0 -229
- package/models/CanonAlbumExternalReferenceRelation.ts +0 -92
- package/models/CanonAlbumGenreRelation.ts +0 -86
- package/models/CanonAlbumImageHarvested.ts +0 -98
- package/models/CanonAlbumLabelRelation.ts +0 -86
- package/models/CanonAlbumTrackRelation.ts +0 -92
- package/models/CanonArtist.ts +0 -356
- package/models/CanonArtistAlbumRelation.ts +0 -92
- package/models/CanonArtistExternalReferenceRelation.ts +0 -92
- package/models/CanonArtistGenreRelation.ts +0 -86
- package/models/CanonArtistImageHarvested.ts +0 -98
- package/models/CanonArtistMemberRelation.ts +0 -86
- package/models/CanonArtistTrackRelation.ts +0 -92
- package/models/CanonGenre.ts +0 -273
- package/models/CanonGenreExternalReferenceRelation.ts +0 -92
- package/models/CanonLabel.ts +0 -129
- package/models/CanonLabelExternalReferenceRelation.ts +0 -92
- package/models/CanonMember.ts +0 -130
- package/models/CanonMemberExternalReferenceRelation.ts +0 -99
- package/models/CanonToPlatformAlbumRelation.ts +0 -92
- package/models/CanonToPlatformArtistRelation.ts +0 -92
- package/models/CanonToPlatformGenreRelation.ts +0 -86
- package/models/CanonToPlatformTrackRelation.ts +0 -92
- package/models/CanonTrack.ts +0 -232
- package/models/ConfigParam.ts +0 -62
- package/models/ExternalReference.ts +0 -201
- package/models/FeedConfig.ts +0 -65
- package/models/FeedContentType.ts +0 -124
- package/models/GuestUser.ts +0 -137
- package/models/JukeboxAccessType.ts +0 -60
- package/models/JukeboxCanonGenreRelation.ts +0 -108
- package/models/JukeboxInvite.ts +0 -125
- package/models/JukeboxQueueEntry.ts +0 -247
- package/models/JukeboxQueueMode.ts +0 -60
- package/models/JukeboxSession.ts +0 -334
- package/models/JukeboxSessionArtistAffinity.ts +0 -136
- package/models/JukeboxSessionGenreAffinity.ts +0 -136
- package/models/JukeboxStatus.ts +0 -58
- package/models/JukeboxTerminationCondition.ts +0 -60
- package/models/JukeboxType.ts +0 -60
- package/models/JukeboxUser.ts +0 -182
- package/models/JukeboxUserType.ts +0 -58
- package/models/KnexMigrations.ts +0 -60
- package/models/KnexMigrationsLock.ts +0 -48
- package/models/MerchItem.ts +0 -198
- package/models/MerchOrchestration.ts +0 -130
- package/models/MerchPlatform.ts +0 -95
- package/models/MerchType.ts +0 -89
- package/models/MetricsDaily.ts +0 -79
- package/models/MetricsEvent.ts +0 -124
- package/models/NewsArticle.ts +0 -177
- package/models/NewsPlatform.ts +0 -76
- package/models/NewsSite.ts +0 -75
- package/models/Notification.ts +0 -214
- package/models/NotificationType.ts +0 -66
- package/models/PauseStatusType.ts +0 -58
- package/models/Platform.ts +0 -189
- package/models/PlatformAlbum.ts +0 -398
- package/models/PlatformAlbumGenreRelation.ts +0 -86
- package/models/PlatformAlbumTrackRelation.ts +0 -92
- package/models/PlatformArtist.ts +0 -358
- package/models/PlatformArtistAlbumRelation.ts +0 -92
- package/models/PlatformArtistGenreRelation.ts +0 -86
- package/models/PlatformArtistTrackRelation.ts +0 -92
- package/models/PlatformGenre.ts +0 -194
- package/models/PlatformTrack.ts +0 -339
- package/models/PlatformTrackGenreRelation.ts +0 -86
- package/models/PlatformUserAlbum.ts +0 -152
- package/models/PlatformUserAlbumTrack.ts +0 -138
- package/models/PlatformUserPlaylist.ts +0 -260
- package/models/PlatformUserPlaylistArtistAffinity.ts +0 -136
- package/models/PlatformUserPlaylistGenreAffinity.ts +0 -136
- package/models/PlatformUserPlaylistTrack.ts +0 -162
- package/models/PlaybackStatus.ts +0 -47
- package/models/PlaybackStatusType.ts +0 -58
- package/models/RadioShow.ts +0 -209
- package/models/RadioShowGenres.ts +0 -107
- package/models/RadioShowMedia.ts +0 -181
- package/models/RadioShowPlacement.ts +0 -115
- package/models/RadioShowPublishRequests.ts +0 -86
- package/models/State.ts +0 -86
- package/models/TrackDeletionReason.ts +0 -58
- package/models/UnmatchedAlbum.ts +0 -66
- package/models/UnmatchedArtist.ts +0 -81
- package/models/UserAbuseReports.ts +0 -232
- package/models/UserAffinity.ts +0 -117
- package/models/UserArtistAffinity.ts +0 -136
- package/models/UserBookmarks.ts +0 -235
- package/models/UserComments.ts +0 -271
- package/models/UserContacts.ts +0 -155
- package/models/UserEngagementFactor.ts +0 -109
- package/models/UserGenreAffinity.ts +0 -136
- package/models/UserLikes.ts +0 -235
- package/models/UserMessages.ts +0 -189
- package/models/Versus.ts +0 -438
- package/models/VersusAccessType.ts +0 -66
- package/models/VersusCoCreator.ts +0 -111
- package/models/VersusCreatorScope.ts +0 -66
- package/models/VersusEndMode.ts +0 -66
- package/models/VersusEndTimerDuration.ts +0 -81
- package/models/VersusEndVoteThreshold.ts +0 -67
- package/models/VersusEntityKind.ts +0 -79
- package/models/VersusOption.ts +0 -258
- package/models/VersusPublishIssue.ts +0 -146
- package/models/VersusQuestion.ts +0 -123
- package/models/VersusQuestionVariableType.ts +0 -66
- package/models/VersusVote.ts +0 -99
- package/models/VersusVotingListType.ts +0 -66
- package/models/VersusVotingMode.ts +0 -66
- package/models/index.ts +0 -3
- package/models/init-models.ts +0 -14
- package/models/initDb.ts +0 -72
- package/models/rdsCaBundle.ts +0 -5
- package/scripts/update-rds-ca-bundle.mjs +0 -44
- package/tsconfig.json +0 -52
package/models/UserBookmarks.ts
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
-
import type { MerchItem, MerchItemId } from './MerchItem';
|
|
6
|
-
import type { NewsArticle, NewsArticleId } from './NewsArticle';
|
|
7
|
-
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
8
|
-
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
9
|
-
|
|
10
|
-
export interface UserBookmarksAttributes {
|
|
11
|
-
appUserId: string;
|
|
12
|
-
jukeboxId?: string;
|
|
13
|
-
playlistId?: string;
|
|
14
|
-
radioShowId?: string;
|
|
15
|
-
merchItemId?: string;
|
|
16
|
-
newsArticleId?: string;
|
|
17
|
-
id: string;
|
|
18
|
-
createDate: Date;
|
|
19
|
-
updateDate: Date;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type UserBookmarksPk = "id";
|
|
23
|
-
export type UserBookmarksId = UserBookmarks[UserBookmarksPk];
|
|
24
|
-
export type UserBookmarksOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "merchItemId" | "newsArticleId" | "id" | "createDate" | "updateDate";
|
|
25
|
-
export type UserBookmarksCreationAttributes = Optional<UserBookmarksAttributes, UserBookmarksOptionalAttributes>;
|
|
26
|
-
|
|
27
|
-
export class UserBookmarks extends Model<UserBookmarksAttributes, UserBookmarksCreationAttributes> implements UserBookmarksAttributes {
|
|
28
|
-
appUserId!: string;
|
|
29
|
-
jukeboxId?: string;
|
|
30
|
-
playlistId?: string;
|
|
31
|
-
radioShowId?: string;
|
|
32
|
-
merchItemId?: string;
|
|
33
|
-
newsArticleId?: string;
|
|
34
|
-
id!: string;
|
|
35
|
-
createDate!: Date;
|
|
36
|
-
updateDate!: Date;
|
|
37
|
-
|
|
38
|
-
// UserBookmarks belongsTo AppUser via appUserId
|
|
39
|
-
appUser!: AppUser;
|
|
40
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
41
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
42
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
43
|
-
// UserBookmarks belongsTo JukeboxSession via jukeboxId
|
|
44
|
-
jukebox!: JukeboxSession;
|
|
45
|
-
getJukebox!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
46
|
-
setJukebox!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
47
|
-
createJukebox!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
48
|
-
// UserBookmarks belongsTo MerchItem via merchItemId
|
|
49
|
-
merchItem!: MerchItem;
|
|
50
|
-
getMerchItem!: Sequelize.BelongsToGetAssociationMixin<MerchItem>;
|
|
51
|
-
setMerchItem!: Sequelize.BelongsToSetAssociationMixin<MerchItem, MerchItemId>;
|
|
52
|
-
createMerchItem!: Sequelize.BelongsToCreateAssociationMixin<MerchItem>;
|
|
53
|
-
// UserBookmarks belongsTo NewsArticle via newsArticleId
|
|
54
|
-
newsArticle!: NewsArticle;
|
|
55
|
-
getNewsArticle!: Sequelize.BelongsToGetAssociationMixin<NewsArticle>;
|
|
56
|
-
setNewsArticle!: Sequelize.BelongsToSetAssociationMixin<NewsArticle, NewsArticleId>;
|
|
57
|
-
createNewsArticle!: Sequelize.BelongsToCreateAssociationMixin<NewsArticle>;
|
|
58
|
-
// UserBookmarks belongsTo PlatformUserPlaylist via playlistId
|
|
59
|
-
playlist!: PlatformUserPlaylist;
|
|
60
|
-
getPlaylist!: Sequelize.BelongsToGetAssociationMixin<PlatformUserPlaylist>;
|
|
61
|
-
setPlaylist!: Sequelize.BelongsToSetAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
62
|
-
createPlaylist!: Sequelize.BelongsToCreateAssociationMixin<PlatformUserPlaylist>;
|
|
63
|
-
// UserBookmarks belongsTo RadioShow via radioShowId
|
|
64
|
-
radioShow!: RadioShow;
|
|
65
|
-
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
66
|
-
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
67
|
-
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
68
|
-
|
|
69
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof UserBookmarks {
|
|
70
|
-
return UserBookmarks.init({
|
|
71
|
-
appUserId: {
|
|
72
|
-
type: DataTypes.UUID,
|
|
73
|
-
allowNull: false,
|
|
74
|
-
references: {
|
|
75
|
-
model: 'app_user',
|
|
76
|
-
key: 'id'
|
|
77
|
-
},
|
|
78
|
-
field: 'app_user_id'
|
|
79
|
-
},
|
|
80
|
-
jukeboxId: {
|
|
81
|
-
type: DataTypes.UUID,
|
|
82
|
-
allowNull: true,
|
|
83
|
-
references: {
|
|
84
|
-
model: 'jukebox_session',
|
|
85
|
-
key: 'id'
|
|
86
|
-
},
|
|
87
|
-
field: 'jukebox_id'
|
|
88
|
-
},
|
|
89
|
-
playlistId: {
|
|
90
|
-
type: DataTypes.UUID,
|
|
91
|
-
allowNull: true,
|
|
92
|
-
references: {
|
|
93
|
-
model: 'platform_user_playlist',
|
|
94
|
-
key: 'id'
|
|
95
|
-
},
|
|
96
|
-
field: 'playlist_id'
|
|
97
|
-
},
|
|
98
|
-
radioShowId: {
|
|
99
|
-
type: DataTypes.UUID,
|
|
100
|
-
allowNull: true,
|
|
101
|
-
references: {
|
|
102
|
-
model: 'radio_show',
|
|
103
|
-
key: 'id'
|
|
104
|
-
},
|
|
105
|
-
field: 'radio_show_id'
|
|
106
|
-
},
|
|
107
|
-
merchItemId: {
|
|
108
|
-
type: DataTypes.UUID,
|
|
109
|
-
allowNull: true,
|
|
110
|
-
references: {
|
|
111
|
-
model: 'merch_item',
|
|
112
|
-
key: 'id'
|
|
113
|
-
},
|
|
114
|
-
field: 'merch_item_id'
|
|
115
|
-
},
|
|
116
|
-
newsArticleId: {
|
|
117
|
-
type: DataTypes.UUID,
|
|
118
|
-
allowNull: true,
|
|
119
|
-
references: {
|
|
120
|
-
model: 'news_article',
|
|
121
|
-
key: 'id'
|
|
122
|
-
},
|
|
123
|
-
field: 'news_article_id'
|
|
124
|
-
},
|
|
125
|
-
id: {
|
|
126
|
-
type: DataTypes.UUID,
|
|
127
|
-
allowNull: false,
|
|
128
|
-
defaultValue: DataTypes.UUIDV4,
|
|
129
|
-
primaryKey: true
|
|
130
|
-
},
|
|
131
|
-
createDate: {
|
|
132
|
-
type: DataTypes.DATE,
|
|
133
|
-
allowNull: false,
|
|
134
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
135
|
-
field: 'create_date'
|
|
136
|
-
},
|
|
137
|
-
updateDate: {
|
|
138
|
-
type: DataTypes.DATE,
|
|
139
|
-
allowNull: false,
|
|
140
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
141
|
-
field: 'update_date'
|
|
142
|
-
}
|
|
143
|
-
}, {
|
|
144
|
-
sequelize,
|
|
145
|
-
tableName: 'user_bookmarks',
|
|
146
|
-
schema: 'eb',
|
|
147
|
-
timestamps: false,
|
|
148
|
-
indexes: [
|
|
149
|
-
{
|
|
150
|
-
name: "idx_user_bookmarks_jukebox",
|
|
151
|
-
fields: [
|
|
152
|
-
{ name: "jukebox_id" },
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "idx_user_bookmarks_merch_item",
|
|
157
|
-
fields: [
|
|
158
|
-
{ name: "merch_item_id" },
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: "idx_user_bookmarks_news_article",
|
|
163
|
-
fields: [
|
|
164
|
-
{ name: "news_article_id" },
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: "idx_user_bookmarks_playlist",
|
|
169
|
-
fields: [
|
|
170
|
-
{ name: "playlist_id" },
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: "idx_user_bookmarks_radio_show",
|
|
175
|
-
fields: [
|
|
176
|
-
{ name: "radio_show_id" },
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: "idx_user_bookmarks_user",
|
|
181
|
-
fields: [
|
|
182
|
-
{ name: "app_user_id" },
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "uq_user_bookmarks_user_jukebox",
|
|
187
|
-
unique: true,
|
|
188
|
-
fields: [
|
|
189
|
-
{ name: "app_user_id" },
|
|
190
|
-
{ name: "jukebox_id" },
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: "uq_user_bookmarks_user_merch_item",
|
|
195
|
-
unique: true,
|
|
196
|
-
fields: [
|
|
197
|
-
{ name: "app_user_id" },
|
|
198
|
-
{ name: "merch_item_id" },
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: "uq_user_bookmarks_user_news_article",
|
|
203
|
-
unique: true,
|
|
204
|
-
fields: [
|
|
205
|
-
{ name: "app_user_id" },
|
|
206
|
-
{ name: "news_article_id" },
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: "uq_user_bookmarks_user_playlist",
|
|
211
|
-
unique: true,
|
|
212
|
-
fields: [
|
|
213
|
-
{ name: "app_user_id" },
|
|
214
|
-
{ name: "playlist_id" },
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: "uq_user_bookmarks_user_radio_show",
|
|
219
|
-
unique: true,
|
|
220
|
-
fields: [
|
|
221
|
-
{ name: "app_user_id" },
|
|
222
|
-
{ name: "radio_show_id" },
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: "user_bookmarks_pkey",
|
|
227
|
-
unique: true,
|
|
228
|
-
fields: [
|
|
229
|
-
{ name: "id" },
|
|
230
|
-
]
|
|
231
|
-
},
|
|
232
|
-
]
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
}
|
package/models/UserComments.ts
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
|
|
5
|
-
import type { MerchItem, MerchItemId } from './MerchItem';
|
|
6
|
-
import type { NewsArticle, NewsArticleId } from './NewsArticle';
|
|
7
|
-
import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
|
|
8
|
-
import type { RadioShow, RadioShowId } from './RadioShow';
|
|
9
|
-
import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
|
|
10
|
-
|
|
11
|
-
export interface UserCommentsAttributes {
|
|
12
|
-
appUserId: string;
|
|
13
|
-
jukeboxId?: string;
|
|
14
|
-
playlistId?: string;
|
|
15
|
-
radioShowId?: string;
|
|
16
|
-
comment: string;
|
|
17
|
-
id: string;
|
|
18
|
-
replyCommentId?: string;
|
|
19
|
-
deleted: boolean;
|
|
20
|
-
createDate: Date;
|
|
21
|
-
updateDate: Date;
|
|
22
|
-
modifiedComment?: string;
|
|
23
|
-
moderationScore?: number;
|
|
24
|
-
moderationLevel?: string;
|
|
25
|
-
strippedUrls?: object;
|
|
26
|
-
newsArticleId?: string;
|
|
27
|
-
merchItemId?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type UserCommentsPk = "id";
|
|
31
|
-
export type UserCommentsId = UserComments[UserCommentsPk];
|
|
32
|
-
export type UserCommentsOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "replyCommentId" | "createDate" | "updateDate" | "modifiedComment" | "moderationScore" | "moderationLevel" | "strippedUrls" | "newsArticleId" | "merchItemId";
|
|
33
|
-
export type UserCommentsCreationAttributes = Optional<UserCommentsAttributes, UserCommentsOptionalAttributes>;
|
|
34
|
-
|
|
35
|
-
export class UserComments extends Model<UserCommentsAttributes, UserCommentsCreationAttributes> implements UserCommentsAttributes {
|
|
36
|
-
appUserId!: string;
|
|
37
|
-
jukeboxId?: string;
|
|
38
|
-
playlistId?: string;
|
|
39
|
-
radioShowId?: string;
|
|
40
|
-
comment!: string;
|
|
41
|
-
id!: string;
|
|
42
|
-
replyCommentId?: string;
|
|
43
|
-
deleted!: boolean;
|
|
44
|
-
createDate!: Date;
|
|
45
|
-
updateDate!: Date;
|
|
46
|
-
modifiedComment?: string;
|
|
47
|
-
moderationScore?: number;
|
|
48
|
-
moderationLevel?: string;
|
|
49
|
-
strippedUrls?: object;
|
|
50
|
-
newsArticleId?: string;
|
|
51
|
-
merchItemId?: string;
|
|
52
|
-
|
|
53
|
-
// UserComments belongsTo AppUser via appUserId
|
|
54
|
-
appUser!: AppUser;
|
|
55
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
56
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
57
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
58
|
-
// UserComments belongsTo JukeboxSession via jukeboxId
|
|
59
|
-
jukebox!: JukeboxSession;
|
|
60
|
-
getJukebox!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
|
|
61
|
-
setJukebox!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
|
|
62
|
-
createJukebox!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
|
|
63
|
-
// UserComments belongsTo MerchItem via merchItemId
|
|
64
|
-
merchItem!: MerchItem;
|
|
65
|
-
getMerchItem!: Sequelize.BelongsToGetAssociationMixin<MerchItem>;
|
|
66
|
-
setMerchItem!: Sequelize.BelongsToSetAssociationMixin<MerchItem, MerchItemId>;
|
|
67
|
-
createMerchItem!: Sequelize.BelongsToCreateAssociationMixin<MerchItem>;
|
|
68
|
-
// UserComments belongsTo NewsArticle via newsArticleId
|
|
69
|
-
newsArticle!: NewsArticle;
|
|
70
|
-
getNewsArticle!: Sequelize.BelongsToGetAssociationMixin<NewsArticle>;
|
|
71
|
-
setNewsArticle!: Sequelize.BelongsToSetAssociationMixin<NewsArticle, NewsArticleId>;
|
|
72
|
-
createNewsArticle!: Sequelize.BelongsToCreateAssociationMixin<NewsArticle>;
|
|
73
|
-
// UserComments belongsTo PlatformUserPlaylist via playlistId
|
|
74
|
-
playlist!: PlatformUserPlaylist;
|
|
75
|
-
getPlaylist!: Sequelize.BelongsToGetAssociationMixin<PlatformUserPlaylist>;
|
|
76
|
-
setPlaylist!: Sequelize.BelongsToSetAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
|
|
77
|
-
createPlaylist!: Sequelize.BelongsToCreateAssociationMixin<PlatformUserPlaylist>;
|
|
78
|
-
// UserComments belongsTo RadioShow via radioShowId
|
|
79
|
-
radioShow!: RadioShow;
|
|
80
|
-
getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
|
|
81
|
-
setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
|
|
82
|
-
createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
|
|
83
|
-
// UserComments hasMany UserAbuseReports via commentId
|
|
84
|
-
userAbuseReports!: UserAbuseReports[];
|
|
85
|
-
getUserAbuseReports!: Sequelize.HasManyGetAssociationsMixin<UserAbuseReports>;
|
|
86
|
-
setUserAbuseReports!: Sequelize.HasManySetAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
87
|
-
addUserAbuseReport!: Sequelize.HasManyAddAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
88
|
-
addUserAbuseReports!: Sequelize.HasManyAddAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
89
|
-
createUserAbuseReport!: Sequelize.HasManyCreateAssociationMixin<UserAbuseReports>;
|
|
90
|
-
removeUserAbuseReport!: Sequelize.HasManyRemoveAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
91
|
-
removeUserAbuseReports!: Sequelize.HasManyRemoveAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
92
|
-
hasUserAbuseReport!: Sequelize.HasManyHasAssociationMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
93
|
-
hasUserAbuseReports!: Sequelize.HasManyHasAssociationsMixin<UserAbuseReports, UserAbuseReportsId>;
|
|
94
|
-
countUserAbuseReports!: Sequelize.HasManyCountAssociationsMixin;
|
|
95
|
-
// UserComments belongsTo UserComments via replyCommentId
|
|
96
|
-
replyComment!: UserComments;
|
|
97
|
-
getReplyComment!: Sequelize.BelongsToGetAssociationMixin<UserComments>;
|
|
98
|
-
setReplyComment!: Sequelize.BelongsToSetAssociationMixin<UserComments, UserCommentsId>;
|
|
99
|
-
createReplyComment!: Sequelize.BelongsToCreateAssociationMixin<UserComments>;
|
|
100
|
-
|
|
101
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof UserComments {
|
|
102
|
-
return UserComments.init({
|
|
103
|
-
appUserId: {
|
|
104
|
-
type: DataTypes.UUID,
|
|
105
|
-
allowNull: false,
|
|
106
|
-
references: {
|
|
107
|
-
model: 'app_user',
|
|
108
|
-
key: 'id'
|
|
109
|
-
},
|
|
110
|
-
field: 'app_user_id'
|
|
111
|
-
},
|
|
112
|
-
jukeboxId: {
|
|
113
|
-
type: DataTypes.UUID,
|
|
114
|
-
allowNull: true,
|
|
115
|
-
references: {
|
|
116
|
-
model: 'jukebox_session',
|
|
117
|
-
key: 'id'
|
|
118
|
-
},
|
|
119
|
-
field: 'jukebox_id'
|
|
120
|
-
},
|
|
121
|
-
playlistId: {
|
|
122
|
-
type: DataTypes.UUID,
|
|
123
|
-
allowNull: true,
|
|
124
|
-
references: {
|
|
125
|
-
model: 'platform_user_playlist',
|
|
126
|
-
key: 'id'
|
|
127
|
-
},
|
|
128
|
-
field: 'playlist_id'
|
|
129
|
-
},
|
|
130
|
-
radioShowId: {
|
|
131
|
-
type: DataTypes.UUID,
|
|
132
|
-
allowNull: true,
|
|
133
|
-
references: {
|
|
134
|
-
model: 'radio_show',
|
|
135
|
-
key: 'id'
|
|
136
|
-
},
|
|
137
|
-
field: 'radio_show_id'
|
|
138
|
-
},
|
|
139
|
-
comment: {
|
|
140
|
-
type: DataTypes.STRING(1000),
|
|
141
|
-
allowNull: false
|
|
142
|
-
},
|
|
143
|
-
id: {
|
|
144
|
-
type: DataTypes.UUID,
|
|
145
|
-
allowNull: false,
|
|
146
|
-
defaultValue: DataTypes.UUIDV4,
|
|
147
|
-
primaryKey: true
|
|
148
|
-
},
|
|
149
|
-
replyCommentId: {
|
|
150
|
-
type: DataTypes.UUID,
|
|
151
|
-
allowNull: true,
|
|
152
|
-
references: {
|
|
153
|
-
model: 'user_comments',
|
|
154
|
-
key: 'id'
|
|
155
|
-
},
|
|
156
|
-
field: 'reply_comment_id'
|
|
157
|
-
},
|
|
158
|
-
deleted: {
|
|
159
|
-
type: DataTypes.BOOLEAN,
|
|
160
|
-
allowNull: false,
|
|
161
|
-
defaultValue: false
|
|
162
|
-
},
|
|
163
|
-
createDate: {
|
|
164
|
-
type: DataTypes.DATE,
|
|
165
|
-
allowNull: false,
|
|
166
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
167
|
-
field: 'create_date'
|
|
168
|
-
},
|
|
169
|
-
updateDate: {
|
|
170
|
-
type: DataTypes.DATE,
|
|
171
|
-
allowNull: false,
|
|
172
|
-
defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
|
|
173
|
-
field: 'update_date'
|
|
174
|
-
},
|
|
175
|
-
modifiedComment: {
|
|
176
|
-
type: DataTypes.STRING(1000),
|
|
177
|
-
allowNull: true,
|
|
178
|
-
field: 'modified_comment'
|
|
179
|
-
},
|
|
180
|
-
moderationScore: {
|
|
181
|
-
type: DataTypes.DECIMAL,
|
|
182
|
-
allowNull: true,
|
|
183
|
-
field: 'moderation_score'
|
|
184
|
-
},
|
|
185
|
-
moderationLevel: {
|
|
186
|
-
type: DataTypes.STRING(10),
|
|
187
|
-
allowNull: true,
|
|
188
|
-
field: 'moderation_level'
|
|
189
|
-
},
|
|
190
|
-
strippedUrls: {
|
|
191
|
-
type: DataTypes.JSONB,
|
|
192
|
-
allowNull: true,
|
|
193
|
-
field: 'stripped_urls'
|
|
194
|
-
},
|
|
195
|
-
newsArticleId: {
|
|
196
|
-
type: DataTypes.UUID,
|
|
197
|
-
allowNull: true,
|
|
198
|
-
references: {
|
|
199
|
-
model: 'news_article',
|
|
200
|
-
key: 'id'
|
|
201
|
-
},
|
|
202
|
-
field: 'news_article_id'
|
|
203
|
-
},
|
|
204
|
-
merchItemId: {
|
|
205
|
-
type: DataTypes.UUID,
|
|
206
|
-
allowNull: true,
|
|
207
|
-
references: {
|
|
208
|
-
model: 'merch_item',
|
|
209
|
-
key: 'id'
|
|
210
|
-
},
|
|
211
|
-
field: 'merch_item_id'
|
|
212
|
-
}
|
|
213
|
-
}, {
|
|
214
|
-
sequelize,
|
|
215
|
-
tableName: 'user_comments',
|
|
216
|
-
schema: 'eb',
|
|
217
|
-
timestamps: false,
|
|
218
|
-
indexes: [
|
|
219
|
-
{
|
|
220
|
-
name: "idx_user_comments_jukebox",
|
|
221
|
-
fields: [
|
|
222
|
-
{ name: "jukebox_id" },
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: "idx_user_comments_merch_item",
|
|
227
|
-
fields: [
|
|
228
|
-
{ name: "merch_item_id" },
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: "idx_user_comments_news_article",
|
|
233
|
-
fields: [
|
|
234
|
-
{ name: "news_article_id" },
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
name: "idx_user_comments_playlist",
|
|
239
|
-
fields: [
|
|
240
|
-
{ name: "playlist_id" },
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
name: "idx_user_comments_radio_show",
|
|
245
|
-
fields: [
|
|
246
|
-
{ name: "radio_show_id" },
|
|
247
|
-
]
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: "idx_user_comments_reply",
|
|
251
|
-
fields: [
|
|
252
|
-
{ name: "reply_comment_id" },
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: "idx_user_comments_user",
|
|
257
|
-
fields: [
|
|
258
|
-
{ name: "app_user_id" },
|
|
259
|
-
]
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
name: "user_comments_pkey",
|
|
263
|
-
unique: true,
|
|
264
|
-
fields: [
|
|
265
|
-
{ name: "id" },
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
]
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
}
|
package/models/UserContacts.ts
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import * as Sequelize from 'sequelize';
|
|
2
|
-
import { DataTypes, Model, Optional } from 'sequelize';
|
|
3
|
-
import type { AppUser, AppUserId } from './AppUser';
|
|
4
|
-
|
|
5
|
-
export interface UserContactsAttributes {
|
|
6
|
-
appUserId: 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
|
-
contactId: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type UserContactsPk = "contactId";
|
|
24
|
-
export type UserContactsId = UserContacts[UserContactsPk];
|
|
25
|
-
export type UserContactsOptionalAttributes = "contactAppUserId" | "firstName" | "lastName" | "contactEmail1" | "contactEmail2" | "contactEmail3" | "contactPhone1" | "contactPhone1Type" | "contactPhone2" | "contactPhone2Type" | "contactPhone3" | "contactPhone3Type" | "active" | "contactId";
|
|
26
|
-
export type UserContactsCreationAttributes = Optional<UserContactsAttributes, UserContactsOptionalAttributes>;
|
|
27
|
-
|
|
28
|
-
export class UserContacts extends Model<UserContactsAttributes, UserContactsCreationAttributes> implements UserContactsAttributes {
|
|
29
|
-
appUserId!: string;
|
|
30
|
-
contactAppUserId?: string;
|
|
31
|
-
firstName?: string;
|
|
32
|
-
lastName?: string;
|
|
33
|
-
contactEmail1?: string;
|
|
34
|
-
contactEmail2?: string;
|
|
35
|
-
contactEmail3?: string;
|
|
36
|
-
contactPhone1?: string;
|
|
37
|
-
contactPhone1Type?: "mobile" | "work" | "home" | "main";
|
|
38
|
-
contactPhone2?: string;
|
|
39
|
-
contactPhone2Type?: "mobile" | "work" | "home" | "main";
|
|
40
|
-
contactPhone3?: string;
|
|
41
|
-
contactPhone3Type?: "mobile" | "work" | "home" | "main";
|
|
42
|
-
active?: boolean;
|
|
43
|
-
contactId!: string;
|
|
44
|
-
|
|
45
|
-
// UserContacts belongsTo AppUser via appUserId
|
|
46
|
-
appUser!: AppUser;
|
|
47
|
-
getAppUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
|
|
48
|
-
setAppUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
|
|
49
|
-
createAppUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
|
|
50
|
-
|
|
51
|
-
static initModel(sequelize: Sequelize.Sequelize): typeof UserContacts {
|
|
52
|
-
return UserContacts.init({
|
|
53
|
-
appUserId: {
|
|
54
|
-
type: DataTypes.UUID,
|
|
55
|
-
allowNull: false,
|
|
56
|
-
references: {
|
|
57
|
-
model: 'app_user',
|
|
58
|
-
key: 'id'
|
|
59
|
-
},
|
|
60
|
-
field: 'app_user_id'
|
|
61
|
-
},
|
|
62
|
-
contactAppUserId: {
|
|
63
|
-
type: DataTypes.UUID,
|
|
64
|
-
allowNull: true,
|
|
65
|
-
field: 'contact_app_user_id'
|
|
66
|
-
},
|
|
67
|
-
firstName: {
|
|
68
|
-
type: DataTypes.STRING(255),
|
|
69
|
-
allowNull: true,
|
|
70
|
-
field: 'first_name'
|
|
71
|
-
},
|
|
72
|
-
lastName: {
|
|
73
|
-
type: DataTypes.STRING(255),
|
|
74
|
-
allowNull: true,
|
|
75
|
-
field: 'last_name'
|
|
76
|
-
},
|
|
77
|
-
contactEmail1: {
|
|
78
|
-
type: DataTypes.STRING(255),
|
|
79
|
-
allowNull: true,
|
|
80
|
-
field: 'contact_email_1'
|
|
81
|
-
},
|
|
82
|
-
contactEmail2: {
|
|
83
|
-
type: DataTypes.STRING(255),
|
|
84
|
-
allowNull: true,
|
|
85
|
-
field: 'contact_email_2'
|
|
86
|
-
},
|
|
87
|
-
contactEmail3: {
|
|
88
|
-
type: DataTypes.STRING(255),
|
|
89
|
-
allowNull: true,
|
|
90
|
-
field: 'contact_email_3'
|
|
91
|
-
},
|
|
92
|
-
contactPhone1: {
|
|
93
|
-
type: DataTypes.STRING(255),
|
|
94
|
-
allowNull: true,
|
|
95
|
-
field: 'contact_phone_1'
|
|
96
|
-
},
|
|
97
|
-
contactPhone1Type: {
|
|
98
|
-
type: DataTypes.ENUM("mobile","work","home","main"),
|
|
99
|
-
allowNull: true,
|
|
100
|
-
field: 'contact_phone_1_type'
|
|
101
|
-
},
|
|
102
|
-
contactPhone2: {
|
|
103
|
-
type: DataTypes.STRING(255),
|
|
104
|
-
allowNull: true,
|
|
105
|
-
field: 'contact_phone_2'
|
|
106
|
-
},
|
|
107
|
-
contactPhone2Type: {
|
|
108
|
-
type: DataTypes.ENUM("mobile","work","home","main"),
|
|
109
|
-
allowNull: true,
|
|
110
|
-
field: 'contact_phone_2_type'
|
|
111
|
-
},
|
|
112
|
-
contactPhone3: {
|
|
113
|
-
type: DataTypes.STRING(255),
|
|
114
|
-
allowNull: true,
|
|
115
|
-
field: 'contact_phone_3'
|
|
116
|
-
},
|
|
117
|
-
contactPhone3Type: {
|
|
118
|
-
type: DataTypes.ENUM("mobile","work","home","main"),
|
|
119
|
-
allowNull: true,
|
|
120
|
-
field: 'contact_phone_3_type'
|
|
121
|
-
},
|
|
122
|
-
active: {
|
|
123
|
-
type: DataTypes.BOOLEAN,
|
|
124
|
-
allowNull: true
|
|
125
|
-
},
|
|
126
|
-
contactId: {
|
|
127
|
-
type: DataTypes.UUID,
|
|
128
|
-
allowNull: false,
|
|
129
|
-
defaultValue: DataTypes.UUIDV4,
|
|
130
|
-
primaryKey: true,
|
|
131
|
-
field: 'contact_id'
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
sequelize,
|
|
135
|
-
tableName: 'user_contacts',
|
|
136
|
-
schema: 'eb',
|
|
137
|
-
timestamps: false,
|
|
138
|
-
indexes: [
|
|
139
|
-
{
|
|
140
|
-
name: "idx_user_contacts_user",
|
|
141
|
-
fields: [
|
|
142
|
-
{ name: "app_user_id" },
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "user_contacts_pkey",
|
|
147
|
-
unique: true,
|
|
148
|
-
fields: [
|
|
149
|
-
{ name: "contact_id" },
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
]
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|