@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
package/dist/MerchItem.js CHANGED
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class MerchItem extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return MerchItem.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  canonArtistId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -77,12 +83,6 @@ class MerchItem extends sequelize_1.Model {
77
83
  type: sequelize_1.DataTypes.SMALLINT,
78
84
  allowNull: true
79
85
  },
80
- id: {
81
- type: sequelize_1.DataTypes.UUID,
82
- allowNull: false,
83
- defaultValue: sequelize_1.DataTypes.UUIDV4,
84
- primaryKey: true
85
- },
86
86
  inactive: {
87
87
  type: sequelize_1.DataTypes.BOOLEAN,
88
88
  allowNull: true,
@@ -4,26 +4,26 @@ import type { CanonArtist, CanonArtistId } from './CanonArtist';
4
4
  import type { MerchPlatform, MerchPlatformId } from './MerchPlatform';
5
5
  import type { MerchType, MerchTypeId } from './MerchType';
6
6
  export interface MerchOrchestrationAttributes {
7
+ id: string;
7
8
  canonArtistId: string;
8
9
  merchTypeId: string;
9
10
  merchPlatformId: string;
10
11
  errorMessage?: string;
11
12
  lastHarvestDate?: Date;
12
- id: string;
13
13
  createDate: Date;
14
14
  updateDate: Date;
15
15
  }
16
16
  export type MerchOrchestrationPk = "id";
17
17
  export type MerchOrchestrationId = MerchOrchestration[MerchOrchestrationPk];
18
- export type MerchOrchestrationOptionalAttributes = "errorMessage" | "lastHarvestDate" | "id" | "createDate" | "updateDate";
18
+ export type MerchOrchestrationOptionalAttributes = "id" | "errorMessage" | "lastHarvestDate" | "createDate" | "updateDate";
19
19
  export type MerchOrchestrationCreationAttributes = Optional<MerchOrchestrationAttributes, MerchOrchestrationOptionalAttributes>;
20
20
  export declare class MerchOrchestration extends Model<MerchOrchestrationAttributes, MerchOrchestrationCreationAttributes> implements MerchOrchestrationAttributes {
21
+ id: string;
21
22
  canonArtistId: string;
22
23
  merchTypeId: string;
23
24
  merchPlatformId: string;
24
25
  errorMessage?: string;
25
26
  lastHarvestDate?: Date;
26
- id: string;
27
27
  createDate: Date;
28
28
  updateDate: Date;
29
29
  canonArtist: CanonArtist;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class MerchOrchestration extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return MerchOrchestration.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  canonArtistId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -66,12 +72,6 @@ class MerchOrchestration extends sequelize_1.Model {
66
72
  allowNull: true,
67
73
  field: 'last_harvest_date'
68
74
  },
69
- id: {
70
- type: sequelize_1.DataTypes.UUID,
71
- allowNull: false,
72
- defaultValue: sequelize_1.DataTypes.UUIDV4,
73
- primaryKey: true
74
- },
75
75
  createDate: {
76
76
  type: sequelize_1.DataTypes.DATE,
77
77
  allowNull: false,
@@ -3,9 +3,9 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { MerchItem, MerchItemId } from './MerchItem';
4
4
  import type { MerchOrchestration, MerchOrchestrationId } from './MerchOrchestration';
5
5
  export interface MerchPlatformAttributes {
6
+ id: string;
6
7
  name: string;
7
8
  host: string;
8
- id: string;
9
9
  createDate: Date;
10
10
  updateDate: Date;
11
11
  }
@@ -14,9 +14,9 @@ export type MerchPlatformId = MerchPlatform[MerchPlatformPk];
14
14
  export type MerchPlatformOptionalAttributes = "id" | "createDate" | "updateDate";
15
15
  export type MerchPlatformCreationAttributes = Optional<MerchPlatformAttributes, MerchPlatformOptionalAttributes>;
16
16
  export declare class MerchPlatform extends Model<MerchPlatformAttributes, MerchPlatformCreationAttributes> implements MerchPlatformAttributes {
17
+ id: string;
17
18
  name: string;
18
19
  host: string;
19
- id: string;
20
20
  createDate: Date;
21
21
  updateDate: Date;
22
22
  merchItems: MerchItem[];
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class MerchPlatform extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return MerchPlatform.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  name: {
33
39
  type: sequelize_1.DataTypes.TEXT,
34
40
  allowNull: false
@@ -37,12 +43,6 @@ class MerchPlatform extends sequelize_1.Model {
37
43
  type: sequelize_1.DataTypes.TEXT,
38
44
  allowNull: false
39
45
  },
40
- id: {
41
- type: sequelize_1.DataTypes.UUID,
42
- allowNull: false,
43
- defaultValue: sequelize_1.DataTypes.UUIDV4,
44
- primaryKey: true
45
- },
46
46
  createDate: {
47
47
  type: sequelize_1.DataTypes.DATE,
48
48
  allowNull: false,
@@ -3,8 +3,8 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { MerchItem, MerchItemId } from './MerchItem';
4
4
  import type { MerchOrchestration, MerchOrchestrationId } from './MerchOrchestration';
5
5
  export interface MerchTypeAttributes {
6
- description: string;
7
6
  id: string;
7
+ description: string;
8
8
  createDate: Date;
9
9
  updateDate: Date;
10
10
  }
@@ -13,8 +13,8 @@ export type MerchTypeId = MerchType[MerchTypePk];
13
13
  export type MerchTypeOptionalAttributes = "id" | "createDate" | "updateDate";
14
14
  export type MerchTypeCreationAttributes = Optional<MerchTypeAttributes, MerchTypeOptionalAttributes>;
15
15
  export declare class MerchType extends Model<MerchTypeAttributes, MerchTypeCreationAttributes> implements MerchTypeAttributes {
16
- description: string;
17
16
  id: string;
17
+ description: string;
18
18
  createDate: Date;
19
19
  updateDate: Date;
20
20
  merchItems: MerchItem[];
package/dist/MerchType.js CHANGED
@@ -29,16 +29,16 @@ const sequelize_1 = require("sequelize");
29
29
  class MerchType extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return MerchType.init({
32
- description: {
33
- type: sequelize_1.DataTypes.TEXT,
34
- allowNull: false
35
- },
36
32
  id: {
37
33
  type: sequelize_1.DataTypes.UUID,
38
34
  allowNull: false,
39
35
  defaultValue: sequelize_1.DataTypes.UUIDV4,
40
36
  primaryKey: true
41
37
  },
38
+ description: {
39
+ type: sequelize_1.DataTypes.TEXT,
40
+ allowNull: false
41
+ },
42
42
  createDate: {
43
43
  type: sequelize_1.DataTypes.DATE,
44
44
  allowNull: false,
@@ -3,17 +3,17 @@ import { Model, Optional } from 'sequelize';
3
3
  export interface MetricsDailyAttributes {
4
4
  day?: string;
5
5
  eventType: string;
6
- metrics?: object;
7
6
  createdAt: Date;
8
7
  updatedAt: Date;
8
+ metrics?: object;
9
9
  }
10
- export type MetricsDailyOptionalAttributes = "day" | "metrics" | "createdAt" | "updatedAt";
10
+ export type MetricsDailyOptionalAttributes = "day" | "createdAt" | "updatedAt" | "metrics";
11
11
  export type MetricsDailyCreationAttributes = Optional<MetricsDailyAttributes, MetricsDailyOptionalAttributes>;
12
12
  export declare class MetricsDaily extends Model<MetricsDailyAttributes, MetricsDailyCreationAttributes> implements MetricsDailyAttributes {
13
13
  day?: string;
14
14
  eventType: string;
15
- metrics?: object;
16
15
  createdAt: Date;
17
16
  updatedAt: Date;
17
+ metrics?: object;
18
18
  static initModel(sequelize: Sequelize.Sequelize): typeof MetricsDaily;
19
19
  }
@@ -38,10 +38,6 @@ class MetricsDaily extends sequelize_1.Model {
38
38
  allowNull: false,
39
39
  field: 'event_type'
40
40
  },
41
- metrics: {
42
- type: sequelize_1.DataTypes.JSONB,
43
- allowNull: true
44
- },
45
41
  createdAt: {
46
42
  type: sequelize_1.DataTypes.DATE,
47
43
  allowNull: false,
@@ -53,6 +49,10 @@ class MetricsDaily extends sequelize_1.Model {
53
49
  allowNull: false,
54
50
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
55
51
  field: 'updated_at'
52
+ },
53
+ metrics: {
54
+ type: sequelize_1.DataTypes.JSONB,
55
+ allowNull: true
56
56
  }
57
57
  }, {
58
58
  sequelize,
@@ -1,21 +1,21 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
3
  export interface NewsSiteAttributes {
4
+ id: number;
4
5
  name: string;
5
6
  domain?: string;
6
7
  scrapingBaseUrl: string;
7
- id: number;
8
8
  active?: boolean;
9
9
  }
10
10
  export type NewsSitePk = "id";
11
11
  export type NewsSiteId = NewsSite[NewsSitePk];
12
- export type NewsSiteOptionalAttributes = "domain" | "id" | "active";
12
+ export type NewsSiteOptionalAttributes = "id" | "domain" | "active";
13
13
  export type NewsSiteCreationAttributes = Optional<NewsSiteAttributes, NewsSiteOptionalAttributes>;
14
14
  export declare class NewsSite extends Model<NewsSiteAttributes, NewsSiteCreationAttributes> implements NewsSiteAttributes {
15
+ id: number;
15
16
  name: string;
16
17
  domain?: string;
17
18
  scrapingBaseUrl: string;
18
- id: number;
19
19
  active?: boolean;
20
20
  static initModel(sequelize: Sequelize.Sequelize): typeof NewsSite;
21
21
  }
package/dist/NewsSite.js CHANGED
@@ -5,6 +5,12 @@ const sequelize_1 = require("sequelize");
5
5
  class NewsSite extends sequelize_1.Model {
6
6
  static initModel(sequelize) {
7
7
  return NewsSite.init({
8
+ id: {
9
+ autoIncrement: true,
10
+ type: sequelize_1.DataTypes.INTEGER,
11
+ allowNull: false,
12
+ primaryKey: true
13
+ },
8
14
  name: {
9
15
  type: sequelize_1.DataTypes.STRING(255),
10
16
  allowNull: false,
@@ -19,12 +25,6 @@ class NewsSite extends sequelize_1.Model {
19
25
  allowNull: false,
20
26
  field: 'scraping_base_url'
21
27
  },
22
- id: {
23
- autoIncrement: true,
24
- type: sequelize_1.DataTypes.INTEGER,
25
- allowNull: false,
26
- primaryKey: true
27
- },
28
28
  active: {
29
29
  type: sequelize_1.DataTypes.BOOLEAN,
30
30
  allowNull: true,
@@ -4,44 +4,44 @@ import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
5
5
  import type { NotificationType, NotificationTypeId } from './NotificationType';
6
6
  export interface NotificationAttributes {
7
+ id: string;
7
8
  targetUserId: string;
8
9
  notificationTypeId: number;
9
10
  metadata?: object;
11
+ isRead: boolean;
10
12
  readAt?: Date;
13
+ isDismissed: boolean;
11
14
  dismissedAt?: Date;
12
15
  sourceUserId?: string;
13
16
  jukeboxSessionId?: string;
14
- expiresAt?: Date;
15
- pushSentAt?: Date;
16
- pushError?: string;
17
- id: string;
18
- isRead: boolean;
19
- isDismissed: boolean;
20
17
  createdAt: Date;
21
18
  updatedAt: Date;
19
+ expiresAt?: Date;
22
20
  pushSent: boolean;
21
+ pushSentAt?: Date;
22
+ pushError?: string;
23
23
  }
24
24
  export type NotificationPk = "id";
25
25
  export type NotificationId = Notification[NotificationPk];
26
- export type NotificationOptionalAttributes = "metadata" | "readAt" | "dismissedAt" | "sourceUserId" | "jukeboxSessionId" | "expiresAt" | "pushSentAt" | "pushError" | "id" | "createdAt" | "updatedAt";
26
+ export type NotificationOptionalAttributes = "id" | "metadata" | "readAt" | "dismissedAt" | "sourceUserId" | "jukeboxSessionId" | "createdAt" | "updatedAt" | "expiresAt" | "pushSentAt" | "pushError";
27
27
  export type NotificationCreationAttributes = Optional<NotificationAttributes, NotificationOptionalAttributes>;
28
28
  export declare class Notification extends Model<NotificationAttributes, NotificationCreationAttributes> implements NotificationAttributes {
29
+ id: string;
29
30
  targetUserId: string;
30
31
  notificationTypeId: number;
31
32
  metadata?: object;
33
+ isRead: boolean;
32
34
  readAt?: Date;
35
+ isDismissed: boolean;
33
36
  dismissedAt?: Date;
34
37
  sourceUserId?: string;
35
38
  jukeboxSessionId?: string;
36
- expiresAt?: Date;
37
- pushSentAt?: Date;
38
- pushError?: string;
39
- id: string;
40
- isRead: boolean;
41
- isDismissed: boolean;
42
39
  createdAt: Date;
43
40
  updatedAt: Date;
41
+ expiresAt?: Date;
44
42
  pushSent: boolean;
43
+ pushSentAt?: Date;
44
+ pushError?: string;
45
45
  sourceUser: AppUser;
46
46
  getSourceUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
47
47
  setSourceUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class Notification extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return Notification.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  targetUserId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -51,11 +57,23 @@ class Notification extends sequelize_1.Model {
51
57
  type: sequelize_1.DataTypes.JSONB,
52
58
  allowNull: true
53
59
  },
60
+ isRead: {
61
+ type: sequelize_1.DataTypes.BOOLEAN,
62
+ allowNull: false,
63
+ defaultValue: false,
64
+ field: 'is_read'
65
+ },
54
66
  readAt: {
55
67
  type: sequelize_1.DataTypes.DATE,
56
68
  allowNull: true,
57
69
  field: 'read_at'
58
70
  },
71
+ isDismissed: {
72
+ type: sequelize_1.DataTypes.BOOLEAN,
73
+ allowNull: false,
74
+ defaultValue: false,
75
+ field: 'is_dismissed'
76
+ },
59
77
  dismissedAt: {
60
78
  type: sequelize_1.DataTypes.DATE,
61
79
  allowNull: true,
@@ -79,39 +97,6 @@ class Notification extends sequelize_1.Model {
79
97
  },
80
98
  field: 'jukebox_session_id'
81
99
  },
82
- expiresAt: {
83
- type: sequelize_1.DataTypes.DATE,
84
- allowNull: true,
85
- field: 'expires_at'
86
- },
87
- pushSentAt: {
88
- type: sequelize_1.DataTypes.DATE,
89
- allowNull: true,
90
- field: 'push_sent_at'
91
- },
92
- pushError: {
93
- type: sequelize_1.DataTypes.TEXT,
94
- allowNull: true,
95
- field: 'push_error'
96
- },
97
- id: {
98
- type: sequelize_1.DataTypes.UUID,
99
- allowNull: false,
100
- defaultValue: sequelize_1.DataTypes.UUIDV4,
101
- primaryKey: true
102
- },
103
- isRead: {
104
- type: sequelize_1.DataTypes.BOOLEAN,
105
- allowNull: false,
106
- defaultValue: false,
107
- field: 'is_read'
108
- },
109
- isDismissed: {
110
- type: sequelize_1.DataTypes.BOOLEAN,
111
- allowNull: false,
112
- defaultValue: false,
113
- field: 'is_dismissed'
114
- },
115
100
  createdAt: {
116
101
  type: sequelize_1.DataTypes.DATE,
117
102
  allowNull: false,
@@ -124,11 +109,26 @@ class Notification extends sequelize_1.Model {
124
109
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
125
110
  field: 'updated_at'
126
111
  },
112
+ expiresAt: {
113
+ type: sequelize_1.DataTypes.DATE,
114
+ allowNull: true,
115
+ field: 'expires_at'
116
+ },
127
117
  pushSent: {
128
118
  type: sequelize_1.DataTypes.BOOLEAN,
129
119
  allowNull: false,
130
120
  defaultValue: false,
131
121
  field: 'push_sent'
122
+ },
123
+ pushSentAt: {
124
+ type: sequelize_1.DataTypes.DATE,
125
+ allowNull: true,
126
+ field: 'push_sent_at'
127
+ },
128
+ pushError: {
129
+ type: sequelize_1.DataTypes.TEXT,
130
+ allowNull: true,
131
+ field: 'push_error'
132
132
  }
133
133
  }, {
134
134
  sequelize,
@@ -10,20 +10,20 @@ import type { PlatformUserAlbumTrack, PlatformUserAlbumTrackId } from './Platfor
10
10
  import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
11
11
  import type { UnmatchedArtist, UnmatchedArtistId } from './UnmatchedArtist';
12
12
  export interface PlatformAttributes {
13
+ id: number;
13
14
  name: string;
14
15
  createDate: Date;
15
16
  updateDate: Date;
16
- id: number;
17
17
  }
18
18
  export type PlatformPk = "id";
19
19
  export type PlatformId = Platform[PlatformPk];
20
20
  export type PlatformOptionalAttributes = "createDate" | "updateDate";
21
21
  export type PlatformCreationAttributes = Optional<PlatformAttributes, PlatformOptionalAttributes>;
22
22
  export declare class Platform extends Model<PlatformAttributes, PlatformCreationAttributes> implements PlatformAttributes {
23
+ id: number;
23
24
  name: string;
24
25
  createDate: Date;
25
26
  updateDate: Date;
26
- id: number;
27
27
  appUserPlatformRelations: AppUserPlatformRelation[];
28
28
  getAppUserPlatformRelations: Sequelize.HasManyGetAssociationsMixin<AppUserPlatformRelation>;
29
29
  setAppUserPlatformRelations: Sequelize.HasManySetAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
package/dist/Platform.js CHANGED
@@ -29,6 +29,13 @@ const sequelize_1 = require("sequelize");
29
29
  class Platform extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return Platform.init({
32
+ id: {
33
+ autoIncrement: true,
34
+ autoIncrementIdentity: true,
35
+ type: sequelize_1.DataTypes.SMALLINT,
36
+ allowNull: false,
37
+ primaryKey: true
38
+ },
32
39
  name: {
33
40
  type: sequelize_1.DataTypes.TEXT,
34
41
  allowNull: false,
@@ -45,13 +52,6 @@ class Platform extends sequelize_1.Model {
45
52
  allowNull: false,
46
53
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
47
54
  field: 'update_date'
48
- },
49
- id: {
50
- autoIncrement: true,
51
- autoIncrementIdentity: true,
52
- type: sequelize_1.DataTypes.SMALLINT,
53
- allowNull: false,
54
- primaryKey: true
55
55
  }
56
56
  }, {
57
57
  sequelize,
@@ -21,6 +21,7 @@ import type { Versus, VersusId } from './Versus';
21
21
  import type { VersusOption, VersusOptionId } from './VersusOption';
22
22
  import type { VersusPublishIssue, VersusPublishIssueId } from './VersusPublishIssue';
23
23
  export interface PlatformAlbumAttributes {
24
+ id: string;
24
25
  platformId: number;
25
26
  externalAlbumId: string;
26
27
  name: string;
@@ -29,18 +30,18 @@ export interface PlatformAlbumAttributes {
29
30
  releaseDate?: string;
30
31
  popularity?: number;
31
32
  recordLabel?: string;
32
- images?: object;
33
- id: string;
34
33
  createDate: Date;
35
34
  updateDate: Date;
35
+ images?: object;
36
36
  lastHarvestDate?: Date;
37
37
  lastHarvestLog?: string;
38
38
  }
39
39
  export type PlatformAlbumPk = "id";
40
40
  export type PlatformAlbumId = PlatformAlbum[PlatformAlbumPk];
41
- export type PlatformAlbumOptionalAttributes = "albumType" | "releaseDate" | "popularity" | "recordLabel" | "images" | "id" | "createDate" | "updateDate" | "lastHarvestDate" | "lastHarvestLog";
41
+ export type PlatformAlbumOptionalAttributes = "id" | "albumType" | "releaseDate" | "popularity" | "recordLabel" | "createDate" | "updateDate" | "images" | "lastHarvestDate" | "lastHarvestLog";
42
42
  export type PlatformAlbumCreationAttributes = Optional<PlatformAlbumAttributes, PlatformAlbumOptionalAttributes>;
43
43
  export declare class PlatformAlbum extends Model<PlatformAlbumAttributes, PlatformAlbumCreationAttributes> implements PlatformAlbumAttributes {
44
+ id: string;
44
45
  platformId: number;
45
46
  externalAlbumId: string;
46
47
  name: string;
@@ -49,10 +50,9 @@ export declare class PlatformAlbum extends Model<PlatformAlbumAttributes, Platfo
49
50
  releaseDate?: string;
50
51
  popularity?: number;
51
52
  recordLabel?: string;
52
- images?: object;
53
- id: string;
54
53
  createDate: Date;
55
54
  updateDate: Date;
55
+ images?: object;
56
56
  lastHarvestDate?: Date;
57
57
  lastHarvestLog?: string;
58
58
  platform: Platform;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformAlbum extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformAlbum.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
+ primaryKey: true
37
+ },
32
38
  platformId: {
33
39
  type: sequelize_1.DataTypes.SMALLINT,
34
40
  allowNull: false,
@@ -73,16 +79,6 @@ class PlatformAlbum extends sequelize_1.Model {
73
79
  allowNull: true,
74
80
  field: 'record_label'
75
81
  },
76
- images: {
77
- type: sequelize_1.DataTypes.JSONB,
78
- allowNull: true
79
- },
80
- id: {
81
- type: sequelize_1.DataTypes.UUID,
82
- allowNull: false,
83
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
84
- primaryKey: true
85
- },
86
82
  createDate: {
87
83
  type: sequelize_1.DataTypes.DATE,
88
84
  allowNull: false,
@@ -95,6 +91,10 @@ class PlatformAlbum extends sequelize_1.Model {
95
91
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
96
92
  field: 'update_date'
97
93
  },
94
+ images: {
95
+ type: sequelize_1.DataTypes.JSONB,
96
+ allowNull: true
97
+ },
98
98
  lastHarvestDate: {
99
99
  type: sequelize_1.DataTypes.DATE,
100
100
  allowNull: true,
@@ -19,33 +19,33 @@ import type { Versus, VersusId } from './Versus';
19
19
  import type { VersusOption, VersusOptionId } from './VersusOption';
20
20
  import type { VersusPublishIssue, VersusPublishIssueId } from './VersusPublishIssue';
21
21
  export interface PlatformArtistAttributes {
22
+ id: string;
22
23
  externalArtistId: string;
23
24
  platformId: number;
24
25
  name: string;
25
26
  asciiName: string;
26
27
  externalUri?: string;
27
- genres?: string[];
28
- id: string;
29
28
  createDate: Date;
30
29
  updateDate: Date;
30
+ genres?: string[];
31
31
  lastHarvestDate?: Date;
32
32
  lastHarvestLog?: string;
33
33
  images?: object;
34
34
  }
35
35
  export type PlatformArtistPk = "id";
36
36
  export type PlatformArtistId = PlatformArtist[PlatformArtistPk];
37
- export type PlatformArtistOptionalAttributes = "externalUri" | "genres" | "id" | "createDate" | "updateDate" | "lastHarvestDate" | "lastHarvestLog" | "images";
37
+ export type PlatformArtistOptionalAttributes = "id" | "externalUri" | "createDate" | "updateDate" | "genres" | "lastHarvestDate" | "lastHarvestLog" | "images";
38
38
  export type PlatformArtistCreationAttributes = Optional<PlatformArtistAttributes, PlatformArtistOptionalAttributes>;
39
39
  export declare class PlatformArtist extends Model<PlatformArtistAttributes, PlatformArtistCreationAttributes> implements PlatformArtistAttributes {
40
+ id: string;
40
41
  externalArtistId: string;
41
42
  platformId: number;
42
43
  name: string;
43
44
  asciiName: string;
44
45
  externalUri?: string;
45
- genres?: string[];
46
- id: string;
47
46
  createDate: Date;
48
47
  updateDate: Date;
48
+ genres?: string[];
49
49
  lastHarvestDate?: Date;
50
50
  lastHarvestLog?: string;
51
51
  images?: object;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformArtist extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformArtist.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
+ primaryKey: true
37
+ },
32
38
  externalArtistId: {
33
39
  type: sequelize_1.DataTypes.TEXT,
34
40
  allowNull: false,
@@ -59,16 +65,6 @@ class PlatformArtist extends sequelize_1.Model {
59
65
  allowNull: true,
60
66
  field: 'external_uri'
61
67
  },
62
- genres: {
63
- type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.TEXT),
64
- allowNull: true
65
- },
66
- id: {
67
- type: sequelize_1.DataTypes.UUID,
68
- allowNull: false,
69
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
70
- primaryKey: true
71
- },
72
68
  createDate: {
73
69
  type: sequelize_1.DataTypes.DATE,
74
70
  allowNull: false,
@@ -81,6 +77,10 @@ class PlatformArtist extends sequelize_1.Model {
81
77
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
82
78
  field: 'update_date'
83
79
  },
80
+ genres: {
81
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.TEXT),
82
+ allowNull: true
83
+ },
84
84
  lastHarvestDate: {
85
85
  type: sequelize_1.DataTypes.DATE,
86
86
  allowNull: true,
@@ -10,9 +10,9 @@ import type { PlatformArtistGenreRelation, PlatformArtistGenreRelationId } from
10
10
  import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
11
11
  import type { PlatformTrackGenreRelation, PlatformTrackGenreRelationId } from './PlatformTrackGenreRelation';
12
12
  export interface PlatformGenreAttributes {
13
+ id: string;
13
14
  platformId: number;
14
15
  name: string;
15
- id: string;
16
16
  createDate: Date;
17
17
  updateDate: Date;
18
18
  }
@@ -21,9 +21,9 @@ export type PlatformGenreId = PlatformGenre[PlatformGenrePk];
21
21
  export type PlatformGenreOptionalAttributes = "id" | "createDate" | "updateDate";
22
22
  export type PlatformGenreCreationAttributes = Optional<PlatformGenreAttributes, PlatformGenreOptionalAttributes>;
23
23
  export declare class PlatformGenre extends Model<PlatformGenreAttributes, PlatformGenreCreationAttributes> implements PlatformGenreAttributes {
24
+ id: string;
24
25
  platformId: number;
25
26
  name: string;
26
- id: string;
27
27
  createDate: Date;
28
28
  updateDate: Date;
29
29
  platform: Platform;