@earbug/db-models 0.0.59 → 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.
Files changed (276) hide show
  1. package/dist/AffinityRelationshipType.d.ts +2 -2
  2. package/dist/AffinityRelationshipType.js +6 -6
  3. package/dist/AppUser.d.ts +5 -5
  4. package/dist/AppUser.js +7 -7
  5. package/dist/AppUserDevice.d.ts +2 -2
  6. package/dist/AppUserDevice.js +6 -6
  7. package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
  8. package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
  9. package/dist/AppUserFollowRelation.d.ts +3 -3
  10. package/dist/AppUserFollowRelation.js +6 -6
  11. package/dist/AppUserPlatformRelation.d.ts +13 -13
  12. package/dist/AppUserPlatformRelation.js +25 -25
  13. package/dist/CanonAlbum.d.ts +5 -5
  14. package/dist/CanonAlbum.js +10 -10
  15. package/dist/CanonArtist.d.ts +5 -5
  16. package/dist/CanonArtist.js +11 -11
  17. package/dist/CanonGenre.d.ts +3 -3
  18. package/dist/CanonGenre.js +6 -6
  19. package/dist/CanonLabel.d.ts +2 -2
  20. package/dist/CanonLabel.js +6 -6
  21. package/dist/CanonMember.d.ts +3 -3
  22. package/dist/CanonMember.js +6 -6
  23. package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
  24. package/dist/CanonMemberExternalReferenceRelation.js +5 -5
  25. package/dist/CanonTrack.d.ts +5 -5
  26. package/dist/CanonTrack.js +11 -11
  27. package/dist/ConfigParam.d.ts +2 -2
  28. package/dist/ConfigParam.js +5 -5
  29. package/dist/ExternalReference.d.ts +2 -2
  30. package/dist/ExternalReference.js +5 -5
  31. package/dist/FeedContentType.d.ts +2 -2
  32. package/dist/FeedContentType.js +4 -4
  33. package/dist/GuestUser.d.ts +5 -5
  34. package/dist/GuestUser.js +13 -13
  35. package/dist/JukeboxAccessType.d.ts +2 -2
  36. package/dist/JukeboxAccessType.js +4 -4
  37. package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
  38. package/dist/JukeboxCanonGenreRelation.js +6 -6
  39. package/dist/JukeboxInvite.d.ts +3 -3
  40. package/dist/JukeboxInvite.js +6 -6
  41. package/dist/JukeboxQueueEntry.d.ts +9 -9
  42. package/dist/JukeboxQueueEntry.js +25 -25
  43. package/dist/JukeboxQueueMode.d.ts +2 -2
  44. package/dist/JukeboxQueueMode.js +4 -4
  45. package/dist/JukeboxSession.d.ts +9 -9
  46. package/dist/JukeboxSession.js +20 -20
  47. package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
  48. package/dist/JukeboxSessionArtistAffinity.js +6 -6
  49. package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
  50. package/dist/JukeboxSessionGenreAffinity.js +6 -6
  51. package/dist/JukeboxTerminationCondition.d.ts +2 -2
  52. package/dist/JukeboxTerminationCondition.js +4 -4
  53. package/dist/JukeboxType.d.ts +2 -2
  54. package/dist/JukeboxType.js +4 -4
  55. package/dist/JukeboxUser.d.ts +7 -7
  56. package/dist/JukeboxUser.js +20 -20
  57. package/dist/KnexMigrations.d.ts +3 -3
  58. package/dist/KnexMigrations.js +6 -6
  59. package/dist/KnexMigrationsLock.d.ts +3 -3
  60. package/dist/KnexMigrationsLock.js +5 -5
  61. package/dist/MerchItem.d.ts +3 -3
  62. package/dist/MerchItem.js +6 -6
  63. package/dist/MerchOrchestration.d.ts +3 -3
  64. package/dist/MerchOrchestration.js +6 -6
  65. package/dist/MerchPlatform.d.ts +2 -2
  66. package/dist/MerchPlatform.js +6 -6
  67. package/dist/MerchType.d.ts +2 -2
  68. package/dist/MerchType.js +4 -4
  69. package/dist/MetricsDaily.d.ts +3 -3
  70. package/dist/MetricsDaily.js +4 -4
  71. package/dist/NewsSite.d.ts +3 -3
  72. package/dist/NewsSite.js +6 -6
  73. package/dist/Notification.d.ts +13 -13
  74. package/dist/Notification.js +33 -33
  75. package/dist/Platform.d.ts +2 -2
  76. package/dist/Platform.js +7 -7
  77. package/dist/PlatformAlbum.d.ts +5 -5
  78. package/dist/PlatformAlbum.js +10 -10
  79. package/dist/PlatformArtist.d.ts +5 -5
  80. package/dist/PlatformArtist.js +10 -10
  81. package/dist/PlatformGenre.d.ts +2 -2
  82. package/dist/PlatformGenre.js +6 -6
  83. package/dist/PlatformTrack.d.ts +3 -3
  84. package/dist/PlatformTrack.js +6 -6
  85. package/dist/PlatformUserAlbum.d.ts +2 -2
  86. package/dist/PlatformUserAlbum.js +6 -6
  87. package/dist/PlatformUserAlbumTrack.d.ts +4 -4
  88. package/dist/PlatformUserAlbumTrack.js +11 -11
  89. package/dist/PlatformUserPlaylist.d.ts +5 -5
  90. package/dist/PlatformUserPlaylist.js +11 -11
  91. package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
  92. package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
  93. package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
  94. package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
  95. package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
  96. package/dist/PlatformUserPlaylistTrack.js +17 -17
  97. package/dist/PlaybackStatus.d.ts +2 -2
  98. package/dist/PlaybackStatus.js +4 -4
  99. package/dist/RadioShow.d.ts +3 -3
  100. package/dist/RadioShow.js +6 -6
  101. package/dist/RadioShowMedia.d.ts +3 -3
  102. package/dist/RadioShowMedia.js +6 -6
  103. package/dist/RadioShowPlacement.d.ts +3 -3
  104. package/dist/RadioShowPlacement.js +6 -6
  105. package/dist/RadioShowPublishRequests.d.ts +3 -3
  106. package/dist/RadioShowPublishRequests.js +6 -6
  107. package/dist/State.d.ts +2 -2
  108. package/dist/State.js +4 -4
  109. package/dist/UnmatchedAlbum.d.ts +2 -2
  110. package/dist/UnmatchedAlbum.js +6 -6
  111. package/dist/UnmatchedArtist.d.ts +2 -2
  112. package/dist/UnmatchedArtist.js +6 -6
  113. package/dist/UserAbuseReports.d.ts +7 -7
  114. package/dist/UserAbuseReports.js +18 -18
  115. package/dist/UserAffinity.d.ts +2 -2
  116. package/dist/UserAffinity.js +6 -6
  117. package/dist/UserArtistAffinity.d.ts +2 -2
  118. package/dist/UserArtistAffinity.js +6 -6
  119. package/dist/UserBookmarks.d.ts +3 -3
  120. package/dist/UserBookmarks.js +6 -6
  121. package/dist/UserComments.d.ts +5 -5
  122. package/dist/UserComments.js +12 -12
  123. package/dist/UserContacts.d.ts +3 -3
  124. package/dist/UserContacts.js +7 -7
  125. package/dist/UserEngagementFactor.d.ts +2 -2
  126. package/dist/UserEngagementFactor.js +6 -6
  127. package/dist/UserGenreAffinity.d.ts +2 -2
  128. package/dist/UserGenreAffinity.js +6 -6
  129. package/dist/UserLikes.d.ts +3 -3
  130. package/dist/UserLikes.js +6 -6
  131. package/dist/UserMessages.d.ts +5 -5
  132. package/dist/UserMessages.js +15 -15
  133. package/dist/Versus.d.ts +5 -5
  134. package/dist/Versus.js +11 -11
  135. package/dist/VersusCoCreator.d.ts +4 -4
  136. package/dist/VersusCoCreator.js +12 -12
  137. package/dist/VersusOption.d.ts +3 -3
  138. package/dist/VersusOption.js +6 -6
  139. package/dist/VersusPublishIssue.d.ts +3 -3
  140. package/dist/VersusPublishIssue.js +6 -6
  141. package/dist/VersusQuestion.d.ts +2 -2
  142. package/dist/VersusQuestion.js +6 -6
  143. package/dist/VersusVote.d.ts +2 -2
  144. package/dist/VersusVote.js +6 -6
  145. package/dist/init-models.d.ts +349 -3
  146. package/dist/init-models.js +905 -1
  147. package/package.json +5 -2
  148. package/.github/workflows/publish.yaml +0 -56
  149. package/.nvmrc +0 -1
  150. package/dist/CanonAlbumImageHarvested.d.ts +0 -30
  151. package/dist/CanonAlbumImageHarvested.js +0 -70
  152. package/dist/CanonArtistImageHarvested.d.ts +0 -30
  153. package/dist/CanonArtistImageHarvested.js +0 -70
  154. package/model_options.json +0 -3
  155. package/models/AccessControlPreference.ts +0 -53
  156. package/models/AffinityRelationshipType.ts +0 -96
  157. package/models/AffinityTier.ts +0 -131
  158. package/models/AppUser.ts +0 -577
  159. package/models/AppUserDevice.ts +0 -101
  160. package/models/AppUserFollowRelation.ts +0 -128
  161. package/models/AppUserPlatformRelation.ts +0 -150
  162. package/models/CanonAlbum.ts +0 -229
  163. package/models/CanonAlbumExternalReferenceRelation.ts +0 -92
  164. package/models/CanonAlbumGenreRelation.ts +0 -86
  165. package/models/CanonAlbumImageHarvested.ts +0 -98
  166. package/models/CanonAlbumLabelRelation.ts +0 -86
  167. package/models/CanonAlbumTrackRelation.ts +0 -92
  168. package/models/CanonArtist.ts +0 -356
  169. package/models/CanonArtistAlbumRelation.ts +0 -92
  170. package/models/CanonArtistExternalReferenceRelation.ts +0 -92
  171. package/models/CanonArtistGenreRelation.ts +0 -86
  172. package/models/CanonArtistImageHarvested.ts +0 -98
  173. package/models/CanonArtistMemberRelation.ts +0 -86
  174. package/models/CanonArtistTrackRelation.ts +0 -92
  175. package/models/CanonGenre.ts +0 -273
  176. package/models/CanonGenreExternalReferenceRelation.ts +0 -92
  177. package/models/CanonLabel.ts +0 -129
  178. package/models/CanonLabelExternalReferenceRelation.ts +0 -92
  179. package/models/CanonMember.ts +0 -130
  180. package/models/CanonMemberExternalReferenceRelation.ts +0 -99
  181. package/models/CanonToPlatformAlbumRelation.ts +0 -92
  182. package/models/CanonToPlatformArtistRelation.ts +0 -92
  183. package/models/CanonToPlatformGenreRelation.ts +0 -86
  184. package/models/CanonToPlatformTrackRelation.ts +0 -92
  185. package/models/CanonTrack.ts +0 -232
  186. package/models/ConfigParam.ts +0 -62
  187. package/models/ExternalReference.ts +0 -201
  188. package/models/FeedConfig.ts +0 -65
  189. package/models/FeedContentType.ts +0 -124
  190. package/models/GuestUser.ts +0 -137
  191. package/models/JukeboxAccessType.ts +0 -60
  192. package/models/JukeboxCanonGenreRelation.ts +0 -108
  193. package/models/JukeboxInvite.ts +0 -125
  194. package/models/JukeboxQueueEntry.ts +0 -247
  195. package/models/JukeboxQueueMode.ts +0 -60
  196. package/models/JukeboxSession.ts +0 -334
  197. package/models/JukeboxSessionArtistAffinity.ts +0 -136
  198. package/models/JukeboxSessionGenreAffinity.ts +0 -136
  199. package/models/JukeboxStatus.ts +0 -58
  200. package/models/JukeboxTerminationCondition.ts +0 -60
  201. package/models/JukeboxType.ts +0 -60
  202. package/models/JukeboxUser.ts +0 -182
  203. package/models/JukeboxUserType.ts +0 -58
  204. package/models/KnexMigrations.ts +0 -60
  205. package/models/KnexMigrationsLock.ts +0 -48
  206. package/models/MerchItem.ts +0 -198
  207. package/models/MerchOrchestration.ts +0 -130
  208. package/models/MerchPlatform.ts +0 -95
  209. package/models/MerchType.ts +0 -89
  210. package/models/MetricsDaily.ts +0 -79
  211. package/models/MetricsEvent.ts +0 -124
  212. package/models/NewsArticle.ts +0 -177
  213. package/models/NewsPlatform.ts +0 -76
  214. package/models/NewsSite.ts +0 -75
  215. package/models/Notification.ts +0 -214
  216. package/models/NotificationType.ts +0 -66
  217. package/models/PauseStatusType.ts +0 -58
  218. package/models/Platform.ts +0 -189
  219. package/models/PlatformAlbum.ts +0 -398
  220. package/models/PlatformAlbumGenreRelation.ts +0 -86
  221. package/models/PlatformAlbumTrackRelation.ts +0 -92
  222. package/models/PlatformArtist.ts +0 -358
  223. package/models/PlatformArtistAlbumRelation.ts +0 -92
  224. package/models/PlatformArtistGenreRelation.ts +0 -86
  225. package/models/PlatformArtistTrackRelation.ts +0 -92
  226. package/models/PlatformGenre.ts +0 -194
  227. package/models/PlatformTrack.ts +0 -339
  228. package/models/PlatformTrackGenreRelation.ts +0 -86
  229. package/models/PlatformUserAlbum.ts +0 -152
  230. package/models/PlatformUserAlbumTrack.ts +0 -138
  231. package/models/PlatformUserPlaylist.ts +0 -260
  232. package/models/PlatformUserPlaylistArtistAffinity.ts +0 -136
  233. package/models/PlatformUserPlaylistGenreAffinity.ts +0 -136
  234. package/models/PlatformUserPlaylistTrack.ts +0 -162
  235. package/models/PlaybackStatus.ts +0 -47
  236. package/models/PlaybackStatusType.ts +0 -58
  237. package/models/RadioShow.ts +0 -209
  238. package/models/RadioShowGenres.ts +0 -107
  239. package/models/RadioShowMedia.ts +0 -181
  240. package/models/RadioShowPlacement.ts +0 -115
  241. package/models/RadioShowPublishRequests.ts +0 -86
  242. package/models/State.ts +0 -86
  243. package/models/TrackDeletionReason.ts +0 -58
  244. package/models/UnmatchedAlbum.ts +0 -66
  245. package/models/UnmatchedArtist.ts +0 -81
  246. package/models/UserAbuseReports.ts +0 -232
  247. package/models/UserAffinity.ts +0 -117
  248. package/models/UserArtistAffinity.ts +0 -136
  249. package/models/UserBookmarks.ts +0 -235
  250. package/models/UserComments.ts +0 -271
  251. package/models/UserContacts.ts +0 -155
  252. package/models/UserEngagementFactor.ts +0 -109
  253. package/models/UserGenreAffinity.ts +0 -136
  254. package/models/UserLikes.ts +0 -235
  255. package/models/UserMessages.ts +0 -189
  256. package/models/Versus.ts +0 -438
  257. package/models/VersusAccessType.ts +0 -66
  258. package/models/VersusCoCreator.ts +0 -111
  259. package/models/VersusCreatorScope.ts +0 -66
  260. package/models/VersusEndMode.ts +0 -66
  261. package/models/VersusEndTimerDuration.ts +0 -81
  262. package/models/VersusEndVoteThreshold.ts +0 -67
  263. package/models/VersusEntityKind.ts +0 -79
  264. package/models/VersusOption.ts +0 -258
  265. package/models/VersusPublishIssue.ts +0 -146
  266. package/models/VersusQuestion.ts +0 -123
  267. package/models/VersusQuestionVariableType.ts +0 -66
  268. package/models/VersusVote.ts +0 -99
  269. package/models/VersusVotingListType.ts +0 -66
  270. package/models/VersusVotingMode.ts +0 -66
  271. package/models/index.ts +0 -3
  272. package/models/init-models.ts +0 -14
  273. package/models/initDb.ts +0 -72
  274. package/models/rdsCaBundle.ts +0 -5
  275. package/scripts/update-rds-ca-bundle.mjs +0 -44
  276. package/tsconfig.json +0 -52
@@ -3,6 +3,7 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  export interface UserContactsAttributes {
5
5
  appUserId: string;
6
+ contactId: string;
6
7
  contactAppUserId?: string;
7
8
  firstName?: string;
8
9
  lastName?: string;
@@ -16,14 +17,14 @@ export interface UserContactsAttributes {
16
17
  contactPhone3?: string;
17
18
  contactPhone3Type?: "mobile" | "work" | "home" | "main";
18
19
  active?: boolean;
19
- contactId: string;
20
20
  }
21
21
  export type UserContactsPk = "contactId";
22
22
  export type UserContactsId = UserContacts[UserContactsPk];
23
- export type UserContactsOptionalAttributes = "contactAppUserId" | "firstName" | "lastName" | "contactEmail1" | "contactEmail2" | "contactEmail3" | "contactPhone1" | "contactPhone1Type" | "contactPhone2" | "contactPhone2Type" | "contactPhone3" | "contactPhone3Type" | "active" | "contactId";
23
+ export type UserContactsOptionalAttributes = "contactId" | "contactAppUserId" | "firstName" | "lastName" | "contactEmail1" | "contactEmail2" | "contactEmail3" | "contactPhone1" | "contactPhone1Type" | "contactPhone2" | "contactPhone2Type" | "contactPhone3" | "contactPhone3Type" | "active";
24
24
  export type UserContactsCreationAttributes = Optional<UserContactsAttributes, UserContactsOptionalAttributes>;
25
25
  export declare class UserContacts extends Model<UserContactsAttributes, UserContactsCreationAttributes> implements UserContactsAttributes {
26
26
  appUserId: string;
27
+ contactId: string;
27
28
  contactAppUserId?: string;
28
29
  firstName?: string;
29
30
  lastName?: string;
@@ -37,7 +38,6 @@ export declare class UserContacts extends Model<UserContactsAttributes, UserCont
37
38
  contactPhone3?: string;
38
39
  contactPhone3Type?: "mobile" | "work" | "home" | "main";
39
40
  active?: boolean;
40
- contactId: string;
41
41
  appUser: AppUser;
42
42
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
43
43
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -14,6 +14,13 @@ class UserContacts extends sequelize_1.Model {
14
14
  },
15
15
  field: 'app_user_id'
16
16
  },
17
+ contactId: {
18
+ type: sequelize_1.DataTypes.UUID,
19
+ allowNull: false,
20
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
21
+ primaryKey: true,
22
+ field: 'contact_id'
23
+ },
17
24
  contactAppUserId: {
18
25
  type: sequelize_1.DataTypes.UUID,
19
26
  allowNull: true,
@@ -77,13 +84,6 @@ class UserContacts extends sequelize_1.Model {
77
84
  active: {
78
85
  type: sequelize_1.DataTypes.BOOLEAN,
79
86
  allowNull: true
80
- },
81
- contactId: {
82
- type: sequelize_1.DataTypes.UUID,
83
- allowNull: false,
84
- defaultValue: sequelize_1.DataTypes.UUIDV4,
85
- primaryKey: true,
86
- field: 'contact_id'
87
87
  }
88
88
  }, {
89
89
  sequelize,
@@ -3,9 +3,9 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { FeedContentType, FeedContentTypeId } from './FeedContentType';
5
5
  export interface UserEngagementFactorAttributes {
6
+ id: string;
6
7
  userId: string;
7
8
  contentTypeId: string;
8
- id: string;
9
9
  engagementFactor: number;
10
10
  createDate?: Date;
11
11
  updateDate?: Date;
@@ -15,9 +15,9 @@ export type UserEngagementFactorId = UserEngagementFactor[UserEngagementFactorPk
15
15
  export type UserEngagementFactorOptionalAttributes = "id" | "engagementFactor" | "createDate" | "updateDate";
16
16
  export type UserEngagementFactorCreationAttributes = Optional<UserEngagementFactorAttributes, UserEngagementFactorOptionalAttributes>;
17
17
  export declare class UserEngagementFactor extends Model<UserEngagementFactorAttributes, UserEngagementFactorCreationAttributes> implements UserEngagementFactorAttributes {
18
+ id: string;
18
19
  userId: string;
19
20
  contentTypeId: string;
20
- id: string;
21
21
  engagementFactor: number;
22
22
  createDate?: Date;
23
23
  updateDate?: Date;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserEngagementFactor extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserEngagementFactor.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  userId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -49,12 +55,6 @@ class UserEngagementFactor extends sequelize_1.Model {
49
55
  unique: "user_engagement_factor_user_id_content_type_id_unique",
50
56
  field: 'content_type_id'
51
57
  },
52
- id: {
53
- type: sequelize_1.DataTypes.UUID,
54
- allowNull: false,
55
- defaultValue: sequelize_1.DataTypes.UUIDV4,
56
- primaryKey: true
57
- },
58
58
  engagementFactor: {
59
59
  type: sequelize_1.DataTypes.DECIMAL,
60
60
  allowNull: false,
@@ -4,11 +4,11 @@ import type { AffinityTier, AffinityTierId } from './AffinityTier';
4
4
  import type { AppUser, AppUserId } from './AppUser';
5
5
  import type { CanonGenre, CanonGenreId } from './CanonGenre';
6
6
  export interface UserGenreAffinityAttributes {
7
+ id: string;
7
8
  userId: string;
8
9
  canonGenreId: string;
9
10
  affinityTierId: number;
10
11
  rank: number;
11
- id: string;
12
12
  createdAt: Date;
13
13
  updatedAt: Date;
14
14
  }
@@ -17,11 +17,11 @@ export type UserGenreAffinityId = UserGenreAffinity[UserGenreAffinityPk];
17
17
  export type UserGenreAffinityOptionalAttributes = "id" | "createdAt" | "updatedAt";
18
18
  export type UserGenreAffinityCreationAttributes = Optional<UserGenreAffinityAttributes, UserGenreAffinityOptionalAttributes>;
19
19
  export declare class UserGenreAffinity extends Model<UserGenreAffinityAttributes, UserGenreAffinityCreationAttributes> implements UserGenreAffinityAttributes {
20
+ id: string;
20
21
  userId: string;
21
22
  canonGenreId: string;
22
23
  affinityTierId: number;
23
24
  rank: number;
24
- id: string;
25
25
  createdAt: Date;
26
26
  updatedAt: Date;
27
27
  affinityTier: AffinityTier;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserGenreAffinity extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserGenreAffinity.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  userId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -62,12 +68,6 @@ class UserGenreAffinity extends sequelize_1.Model {
62
68
  type: sequelize_1.DataTypes.INTEGER,
63
69
  allowNull: false
64
70
  },
65
- id: {
66
- type: sequelize_1.DataTypes.UUID,
67
- allowNull: false,
68
- defaultValue: sequelize_1.DataTypes.UUIDV4,
69
- primaryKey: true
70
- },
71
71
  createdAt: {
72
72
  type: sequelize_1.DataTypes.DATE,
73
73
  allowNull: false,
@@ -7,11 +7,11 @@ import type { NewsArticle, NewsArticleId } from './NewsArticle';
7
7
  import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
8
8
  import type { RadioShow, RadioShowId } from './RadioShow';
9
9
  export interface UserLikesAttributes {
10
+ id: string;
10
11
  appUserId: string;
11
12
  jukeboxId?: string;
12
13
  playlistId?: string;
13
14
  radioShowId?: string;
14
- id: string;
15
15
  createDate: Date;
16
16
  updateDate: Date;
17
17
  merchItemId?: string;
@@ -19,14 +19,14 @@ export interface UserLikesAttributes {
19
19
  }
20
20
  export type UserLikesPk = "id";
21
21
  export type UserLikesId = UserLikes[UserLikesPk];
22
- export type UserLikesOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "createDate" | "updateDate" | "merchItemId" | "newsArticleId";
22
+ export type UserLikesOptionalAttributes = "id" | "jukeboxId" | "playlistId" | "radioShowId" | "createDate" | "updateDate" | "merchItemId" | "newsArticleId";
23
23
  export type UserLikesCreationAttributes = Optional<UserLikesAttributes, UserLikesOptionalAttributes>;
24
24
  export declare class UserLikes extends Model<UserLikesAttributes, UserLikesCreationAttributes> implements UserLikesAttributes {
25
+ id: string;
25
26
  appUserId: string;
26
27
  jukeboxId?: string;
27
28
  playlistId?: string;
28
29
  radioShowId?: string;
29
- id: string;
30
30
  createDate: Date;
31
31
  updateDate: Date;
32
32
  merchItemId?: string;
package/dist/UserLikes.js CHANGED
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserLikes extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserLikes.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  appUserId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -65,12 +71,6 @@ class UserLikes extends sequelize_1.Model {
65
71
  },
66
72
  field: 'radio_show_id'
67
73
  },
68
- id: {
69
- type: sequelize_1.DataTypes.UUID,
70
- allowNull: false,
71
- defaultValue: sequelize_1.DataTypes.UUIDV4,
72
- primaryKey: true
73
- },
74
74
  createDate: {
75
75
  type: sequelize_1.DataTypes.DATE,
76
76
  allowNull: false,
@@ -3,32 +3,32 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
5
5
  export interface UserMessagesAttributes {
6
+ id: string;
6
7
  senderId: string;
7
8
  recipientId: string;
8
9
  message: string;
9
- replyMessageId?: string;
10
- id: string;
11
10
  hasBeenRead: boolean;
12
11
  hasBeenEdited: boolean;
13
12
  hasDeletedBySender: boolean;
14
13
  hasDeletedByReceiver: boolean;
14
+ replyMessageId?: string;
15
15
  createDate: Date;
16
16
  updateDate: Date;
17
17
  }
18
18
  export type UserMessagesPk = "id";
19
19
  export type UserMessagesId = UserMessages[UserMessagesPk];
20
- export type UserMessagesOptionalAttributes = "replyMessageId" | "id" | "createDate" | "updateDate";
20
+ export type UserMessagesOptionalAttributes = "id" | "replyMessageId" | "createDate" | "updateDate";
21
21
  export type UserMessagesCreationAttributes = Optional<UserMessagesAttributes, UserMessagesOptionalAttributes>;
22
22
  export declare class UserMessages extends Model<UserMessagesAttributes, UserMessagesCreationAttributes> implements UserMessagesAttributes {
23
+ id: string;
23
24
  senderId: string;
24
25
  recipientId: string;
25
26
  message: string;
26
- replyMessageId?: string;
27
- id: string;
28
27
  hasBeenRead: boolean;
29
28
  hasBeenEdited: boolean;
30
29
  hasDeletedBySender: boolean;
31
30
  hasDeletedByReceiver: boolean;
31
+ replyMessageId?: string;
32
32
  createDate: Date;
33
33
  updateDate: Date;
34
34
  recipient: AppUser;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserMessages extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserMessages.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  senderId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -51,21 +57,6 @@ class UserMessages extends sequelize_1.Model {
51
57
  type: sequelize_1.DataTypes.STRING(1000),
52
58
  allowNull: false
53
59
  },
54
- replyMessageId: {
55
- type: sequelize_1.DataTypes.UUID,
56
- allowNull: true,
57
- references: {
58
- model: 'user_messages',
59
- key: 'id'
60
- },
61
- field: 'reply_message_id'
62
- },
63
- id: {
64
- type: sequelize_1.DataTypes.UUID,
65
- allowNull: false,
66
- defaultValue: sequelize_1.DataTypes.UUIDV4,
67
- primaryKey: true
68
- },
69
60
  hasBeenRead: {
70
61
  type: sequelize_1.DataTypes.BOOLEAN,
71
62
  allowNull: false,
@@ -90,6 +81,15 @@ class UserMessages extends sequelize_1.Model {
90
81
  defaultValue: false,
91
82
  field: 'has_deleted_by_receiver'
92
83
  },
84
+ replyMessageId: {
85
+ type: sequelize_1.DataTypes.UUID,
86
+ allowNull: true,
87
+ references: {
88
+ model: 'user_messages',
89
+ key: 'id'
90
+ },
91
+ field: 'reply_message_id'
92
+ },
93
93
  createDate: {
94
94
  type: sequelize_1.DataTypes.DATE,
95
95
  allowNull: false,
package/dist/Versus.d.ts CHANGED
@@ -21,6 +21,7 @@ import type { VersusQuestion, VersusQuestionId } from './VersusQuestion';
21
21
  import type { VersusVote, VersusVoteId } from './VersusVote';
22
22
  import type { VersusVotingMode, VersusVotingModeId } from './VersusVotingMode';
23
23
  export interface VersusAttributes {
24
+ id: string;
24
25
  versusQuestionId: string;
25
26
  canonTrackId?: string;
26
27
  platformTrackId?: string;
@@ -39,18 +40,18 @@ export interface VersusAttributes {
39
40
  startsAt?: Date;
40
41
  endsAt?: Date;
41
42
  creatorUserId: string;
42
- publishedAt?: Date;
43
- id: string;
44
43
  publishRequested: boolean;
44
+ publishedAt?: Date;
45
45
  deleted: boolean;
46
46
  createdAt: Date;
47
47
  updatedAt: Date;
48
48
  }
49
49
  export type VersusPk = "id";
50
50
  export type VersusId = Versus[VersusPk];
51
- export type VersusOptionalAttributes = "canonTrackId" | "platformTrackId" | "canonAlbumId" | "platformAlbumId" | "canonArtistId" | "platformArtistId" | "canonGenreId" | "themeText" | "versusEndVoteThresholdId" | "versusEndTimerDurationId" | "startsAt" | "endsAt" | "publishedAt" | "id" | "createdAt" | "updatedAt";
51
+ export type VersusOptionalAttributes = "id" | "canonTrackId" | "platformTrackId" | "canonAlbumId" | "platformAlbumId" | "canonArtistId" | "platformArtistId" | "canonGenreId" | "themeText" | "versusEndVoteThresholdId" | "versusEndTimerDurationId" | "startsAt" | "endsAt" | "publishedAt" | "createdAt" | "updatedAt";
52
52
  export type VersusCreationAttributes = Optional<VersusAttributes, VersusOptionalAttributes>;
53
53
  export declare class Versus extends Model<VersusAttributes, VersusCreationAttributes> implements VersusAttributes {
54
+ id: string;
54
55
  versusQuestionId: string;
55
56
  canonTrackId?: string;
56
57
  platformTrackId?: string;
@@ -69,9 +70,8 @@ export declare class Versus extends Model<VersusAttributes, VersusCreationAttrib
69
70
  startsAt?: Date;
70
71
  endsAt?: Date;
71
72
  creatorUserId: string;
72
- publishedAt?: Date;
73
- id: string;
74
73
  publishRequested: boolean;
74
+ publishedAt?: Date;
75
75
  deleted: boolean;
76
76
  createdAt: Date;
77
77
  updatedAt: Date;
package/dist/Versus.js CHANGED
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class Versus extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return Versus.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  versusQuestionId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -179,23 +185,17 @@ class Versus extends sequelize_1.Model {
179
185
  },
180
186
  field: 'creator_user_id'
181
187
  },
182
- publishedAt: {
183
- type: sequelize_1.DataTypes.DATE,
184
- allowNull: true,
185
- field: 'published_at'
186
- },
187
- id: {
188
- type: sequelize_1.DataTypes.UUID,
189
- allowNull: false,
190
- defaultValue: sequelize_1.DataTypes.UUIDV4,
191
- primaryKey: true
192
- },
193
188
  publishRequested: {
194
189
  type: sequelize_1.DataTypes.BOOLEAN,
195
190
  allowNull: false,
196
191
  defaultValue: false,
197
192
  field: 'publish_requested'
198
193
  },
194
+ publishedAt: {
195
+ type: sequelize_1.DataTypes.DATE,
196
+ allowNull: true,
197
+ field: 'published_at'
198
+ },
199
199
  deleted: {
200
200
  type: sequelize_1.DataTypes.BOOLEAN,
201
201
  allowNull: false,
@@ -3,22 +3,22 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { Versus, VersusId } from './Versus';
5
5
  export interface VersusCoCreatorAttributes {
6
- versusId: string;
7
6
  id: string;
7
+ versusId: string;
8
+ appUserId: string;
8
9
  createdAt: Date;
9
10
  updatedAt: Date;
10
- appUserId: string;
11
11
  }
12
12
  export type VersusCoCreatorPk = "id";
13
13
  export type VersusCoCreatorId = VersusCoCreator[VersusCoCreatorPk];
14
14
  export type VersusCoCreatorOptionalAttributes = "id" | "createdAt" | "updatedAt";
15
15
  export type VersusCoCreatorCreationAttributes = Optional<VersusCoCreatorAttributes, VersusCoCreatorOptionalAttributes>;
16
16
  export declare class VersusCoCreator extends Model<VersusCoCreatorAttributes, VersusCoCreatorCreationAttributes> implements VersusCoCreatorAttributes {
17
- versusId: string;
18
17
  id: string;
18
+ versusId: string;
19
+ appUserId: string;
19
20
  createdAt: Date;
20
21
  updatedAt: Date;
21
- appUserId: string;
22
22
  appUser: AppUser;
23
23
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
24
24
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class VersusCoCreator extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return VersusCoCreator.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  versusId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -38,11 +44,14 @@ class VersusCoCreator extends sequelize_1.Model {
38
44
  },
39
45
  field: 'versus_id'
40
46
  },
41
- id: {
47
+ appUserId: {
42
48
  type: sequelize_1.DataTypes.UUID,
43
49
  allowNull: false,
44
- defaultValue: sequelize_1.DataTypes.UUIDV4,
45
- primaryKey: true
50
+ references: {
51
+ model: 'app_user',
52
+ key: 'id'
53
+ },
54
+ field: 'app_user_id'
46
55
  },
47
56
  createdAt: {
48
57
  type: sequelize_1.DataTypes.DATE,
@@ -55,15 +64,6 @@ class VersusCoCreator extends sequelize_1.Model {
55
64
  allowNull: false,
56
65
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
57
66
  field: 'updated_at'
58
- },
59
- appUserId: {
60
- type: sequelize_1.DataTypes.UUID,
61
- allowNull: false,
62
- references: {
63
- model: 'app_user',
64
- key: 'id'
65
- },
66
- field: 'app_user_id'
67
67
  }
68
68
  }, {
69
69
  sequelize,
@@ -10,6 +10,7 @@ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
10
10
  import type { Versus, VersusId } from './Versus';
11
11
  import type { VersusEntityKind, VersusEntityKindId } from './VersusEntityKind';
12
12
  export interface VersusOptionAttributes {
13
+ id: string;
13
14
  versusId: string;
14
15
  entityKindId: number;
15
16
  sortOrder: number;
@@ -21,7 +22,6 @@ export interface VersusOptionAttributes {
21
22
  platformArtistId?: string;
22
23
  voteScore?: number;
23
24
  resultsScore?: number;
24
- id: string;
25
25
  createdAt: Date;
26
26
  updatedAt: Date;
27
27
  deleted: boolean;
@@ -29,9 +29,10 @@ export interface VersusOptionAttributes {
29
29
  }
30
30
  export type VersusOptionPk = "id";
31
31
  export type VersusOptionId = VersusOption[VersusOptionPk];
32
- export type VersusOptionOptionalAttributes = "canonTrackId" | "platformTrackId" | "canonAlbumId" | "platformAlbumId" | "canonArtistId" | "platformArtistId" | "voteScore" | "resultsScore" | "id" | "createdAt" | "updatedAt" | "appUserId";
32
+ export type VersusOptionOptionalAttributes = "id" | "canonTrackId" | "platformTrackId" | "canonAlbumId" | "platformAlbumId" | "canonArtistId" | "platformArtistId" | "voteScore" | "resultsScore" | "createdAt" | "updatedAt" | "appUserId";
33
33
  export type VersusOptionCreationAttributes = Optional<VersusOptionAttributes, VersusOptionOptionalAttributes>;
34
34
  export declare class VersusOption extends Model<VersusOptionAttributes, VersusOptionCreationAttributes> implements VersusOptionAttributes {
35
+ id: string;
35
36
  versusId: string;
36
37
  entityKindId: number;
37
38
  sortOrder: number;
@@ -43,7 +44,6 @@ export declare class VersusOption extends Model<VersusOptionAttributes, VersusOp
43
44
  platformArtistId?: string;
44
45
  voteScore?: number;
45
46
  resultsScore?: number;
46
- id: string;
47
47
  createdAt: Date;
48
48
  updatedAt: Date;
49
49
  deleted: boolean;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class VersusOption extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return VersusOption.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  versusId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -116,12 +122,6 @@ class VersusOption extends sequelize_1.Model {
116
122
  allowNull: true,
117
123
  field: 'results_score'
118
124
  },
119
- id: {
120
- type: sequelize_1.DataTypes.UUID,
121
- allowNull: false,
122
- defaultValue: sequelize_1.DataTypes.UUIDV4,
123
- primaryKey: true
124
- },
125
125
  createdAt: {
126
126
  type: sequelize_1.DataTypes.DATE,
127
127
  allowNull: false,
@@ -6,27 +6,27 @@ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
6
6
  import type { Versus, VersusId } from './Versus';
7
7
  import type { VersusEntityKind, VersusEntityKindId } from './VersusEntityKind';
8
8
  export interface VersusPublishIssueAttributes {
9
+ id: string;
9
10
  versusId: string;
10
11
  entityKindId: number;
11
12
  platformTrackId?: string;
12
13
  platformAlbumId?: string;
13
14
  platformArtistId?: string;
14
15
  detail?: string;
15
- id: string;
16
16
  createdAt: Date;
17
17
  }
18
18
  export type VersusPublishIssuePk = "id";
19
19
  export type VersusPublishIssueId = VersusPublishIssue[VersusPublishIssuePk];
20
- export type VersusPublishIssueOptionalAttributes = "platformTrackId" | "platformAlbumId" | "platformArtistId" | "detail" | "id" | "createdAt";
20
+ export type VersusPublishIssueOptionalAttributes = "id" | "platformTrackId" | "platformAlbumId" | "platformArtistId" | "detail" | "createdAt";
21
21
  export type VersusPublishIssueCreationAttributes = Optional<VersusPublishIssueAttributes, VersusPublishIssueOptionalAttributes>;
22
22
  export declare class VersusPublishIssue extends Model<VersusPublishIssueAttributes, VersusPublishIssueCreationAttributes> implements VersusPublishIssueAttributes {
23
+ id: string;
23
24
  versusId: string;
24
25
  entityKindId: number;
25
26
  platformTrackId?: string;
26
27
  platformAlbumId?: string;
27
28
  platformArtistId?: string;
28
29
  detail?: string;
29
- id: string;
30
30
  createdAt: Date;
31
31
  platformAlbum: PlatformAlbum;
32
32
  getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class VersusPublishIssue extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return VersusPublishIssue.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  versusId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -78,12 +84,6 @@ class VersusPublishIssue extends sequelize_1.Model {
78
84
  type: sequelize_1.DataTypes.TEXT,
79
85
  allowNull: true
80
86
  },
81
- id: {
82
- type: sequelize_1.DataTypes.UUID,
83
- allowNull: false,
84
- defaultValue: sequelize_1.DataTypes.UUIDV4,
85
- primaryKey: true
86
- },
87
87
  createdAt: {
88
88
  type: sequelize_1.DataTypes.DATE,
89
89
  allowNull: false,
@@ -4,10 +4,10 @@ import type { Versus, VersusId } from './Versus';
4
4
  import type { VersusQuestionVariableType, VersusQuestionVariableTypeId } from './VersusQuestionVariableType';
5
5
  import type { VersusVotingListType, VersusVotingListTypeId } from './VersusVotingListType';
6
6
  export interface VersusQuestionAttributes {
7
+ id: string;
7
8
  questionTemplate: string;
8
9
  questionVariableTypeId: number;
9
10
  votingListTypeId: number;
10
- id: string;
11
11
  createdAt: Date;
12
12
  updatedAt: Date;
13
13
  }
@@ -16,10 +16,10 @@ export type VersusQuestionId = VersusQuestion[VersusQuestionPk];
16
16
  export type VersusQuestionOptionalAttributes = "id" | "createdAt" | "updatedAt";
17
17
  export type VersusQuestionCreationAttributes = Optional<VersusQuestionAttributes, VersusQuestionOptionalAttributes>;
18
18
  export declare class VersusQuestion extends Model<VersusQuestionAttributes, VersusQuestionCreationAttributes> implements VersusQuestionAttributes {
19
+ id: string;
19
20
  questionTemplate: string;
20
21
  questionVariableTypeId: number;
21
22
  votingListTypeId: number;
22
- id: string;
23
23
  createdAt: Date;
24
24
  updatedAt: Date;
25
25
  versus: Versus[];
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class VersusQuestion extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return VersusQuestion.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  questionTemplate: {
33
39
  type: sequelize_1.DataTypes.TEXT,
34
40
  allowNull: false,
@@ -52,12 +58,6 @@ class VersusQuestion extends sequelize_1.Model {
52
58
  },
53
59
  field: 'voting_list_type_id'
54
60
  },
55
- id: {
56
- type: sequelize_1.DataTypes.UUID,
57
- allowNull: false,
58
- defaultValue: sequelize_1.DataTypes.UUIDV4,
59
- primaryKey: true
60
- },
61
61
  createdAt: {
62
62
  type: sequelize_1.DataTypes.DATE,
63
63
  allowNull: false,
@@ -3,9 +3,9 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { Versus, VersusId } from './Versus';
5
5
  export interface VersusVoteAttributes {
6
+ id: string;
6
7
  versusId: string;
7
8
  appUserId: string;
8
- id: string;
9
9
  createdAt: Date;
10
10
  }
11
11
  export type VersusVotePk = "id";
@@ -13,9 +13,9 @@ export type VersusVoteId = VersusVote[VersusVotePk];
13
13
  export type VersusVoteOptionalAttributes = "id" | "createdAt";
14
14
  export type VersusVoteCreationAttributes = Optional<VersusVoteAttributes, VersusVoteOptionalAttributes>;
15
15
  export declare class VersusVote extends Model<VersusVoteAttributes, VersusVoteCreationAttributes> implements VersusVoteAttributes {
16
+ id: string;
16
17
  versusId: string;
17
18
  appUserId: string;
18
- id: string;
19
19
  createdAt: Date;
20
20
  appUser: AppUser;
21
21
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;