@earbug/db-models 0.0.60 → 0.0.63

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 (230) hide show
  1. package/.dockerignore +10 -0
  2. package/.github/workflows/publish.yaml +266 -19
  3. package/Dockerfile.generate +19 -0
  4. package/dist/AffinityRelationshipType.d.ts +2 -2
  5. package/dist/AffinityRelationshipType.js +6 -6
  6. package/dist/AppUser.d.ts +5 -5
  7. package/dist/AppUser.js +7 -7
  8. package/dist/AppUserDevice.d.ts +2 -2
  9. package/dist/AppUserDevice.js +6 -6
  10. package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
  11. package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
  12. package/dist/AppUserFollowRelation.d.ts +3 -3
  13. package/dist/AppUserFollowRelation.js +6 -6
  14. package/dist/AppUserPlatformRelation.d.ts +13 -13
  15. package/dist/AppUserPlatformRelation.js +25 -25
  16. package/dist/CanonAlbum.d.ts +5 -5
  17. package/dist/CanonAlbum.js +10 -10
  18. package/dist/CanonArtist.d.ts +5 -5
  19. package/dist/CanonArtist.js +11 -11
  20. package/dist/CanonGenre.d.ts +3 -3
  21. package/dist/CanonGenre.js +6 -6
  22. package/dist/CanonLabel.d.ts +2 -2
  23. package/dist/CanonLabel.js +6 -6
  24. package/dist/CanonMember.d.ts +3 -3
  25. package/dist/CanonMember.js +6 -6
  26. package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
  27. package/dist/CanonMemberExternalReferenceRelation.js +5 -5
  28. package/dist/CanonTrack.d.ts +5 -5
  29. package/dist/CanonTrack.js +11 -11
  30. package/dist/ConfigParam.d.ts +2 -2
  31. package/dist/ConfigParam.js +5 -5
  32. package/dist/ExternalReference.d.ts +2 -2
  33. package/dist/ExternalReference.js +5 -5
  34. package/dist/FeedContentType.d.ts +2 -2
  35. package/dist/FeedContentType.js +4 -4
  36. package/dist/GuestUser.d.ts +5 -5
  37. package/dist/GuestUser.js +13 -13
  38. package/dist/JukeboxAccessType.d.ts +2 -2
  39. package/dist/JukeboxAccessType.js +4 -4
  40. package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
  41. package/dist/JukeboxCanonGenreRelation.js +6 -6
  42. package/dist/JukeboxInvite.d.ts +3 -3
  43. package/dist/JukeboxInvite.js +6 -6
  44. package/dist/JukeboxQueueEntry.d.ts +9 -9
  45. package/dist/JukeboxQueueEntry.js +25 -25
  46. package/dist/JukeboxQueueMode.d.ts +2 -2
  47. package/dist/JukeboxQueueMode.js +4 -4
  48. package/dist/JukeboxSession.d.ts +9 -9
  49. package/dist/JukeboxSession.js +20 -20
  50. package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
  51. package/dist/JukeboxSessionArtistAffinity.js +6 -6
  52. package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
  53. package/dist/JukeboxSessionGenreAffinity.js +6 -6
  54. package/dist/JukeboxTerminationCondition.d.ts +2 -2
  55. package/dist/JukeboxTerminationCondition.js +4 -4
  56. package/dist/JukeboxType.d.ts +2 -2
  57. package/dist/JukeboxType.js +4 -4
  58. package/dist/JukeboxUser.d.ts +7 -7
  59. package/dist/JukeboxUser.js +20 -20
  60. package/dist/KnexMigrations.d.ts +3 -3
  61. package/dist/KnexMigrations.js +6 -6
  62. package/dist/KnexMigrationsLock.d.ts +3 -3
  63. package/dist/KnexMigrationsLock.js +5 -5
  64. package/dist/MerchItem.d.ts +3 -3
  65. package/dist/MerchItem.js +6 -6
  66. package/dist/MerchOrchestration.d.ts +3 -3
  67. package/dist/MerchOrchestration.js +6 -6
  68. package/dist/MerchPlatform.d.ts +2 -2
  69. package/dist/MerchPlatform.js +6 -6
  70. package/dist/MerchType.d.ts +2 -2
  71. package/dist/MerchType.js +4 -4
  72. package/dist/MetricsDaily.d.ts +3 -3
  73. package/dist/MetricsDaily.js +4 -4
  74. package/dist/NewsSite.d.ts +3 -3
  75. package/dist/NewsSite.js +6 -6
  76. package/dist/Notification.d.ts +13 -13
  77. package/dist/Notification.js +33 -33
  78. package/dist/Platform.d.ts +2 -2
  79. package/dist/Platform.js +7 -7
  80. package/dist/PlatformAlbum.d.ts +5 -5
  81. package/dist/PlatformAlbum.js +10 -10
  82. package/dist/PlatformArtist.d.ts +5 -5
  83. package/dist/PlatformArtist.js +10 -10
  84. package/dist/PlatformGenre.d.ts +2 -2
  85. package/dist/PlatformGenre.js +6 -6
  86. package/dist/PlatformTrack.d.ts +3 -3
  87. package/dist/PlatformTrack.js +6 -6
  88. package/dist/PlatformUserAlbum.d.ts +2 -2
  89. package/dist/PlatformUserAlbum.js +6 -6
  90. package/dist/PlatformUserAlbumTrack.d.ts +4 -4
  91. package/dist/PlatformUserAlbumTrack.js +11 -11
  92. package/dist/PlatformUserPlaylist.d.ts +5 -5
  93. package/dist/PlatformUserPlaylist.js +11 -11
  94. package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
  95. package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
  96. package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
  97. package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
  98. package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
  99. package/dist/PlatformUserPlaylistTrack.js +17 -17
  100. package/dist/PlaybackStatus.d.ts +2 -2
  101. package/dist/PlaybackStatus.js +4 -4
  102. package/dist/RadioShow.d.ts +3 -3
  103. package/dist/RadioShow.js +6 -6
  104. package/dist/RadioShowMedia.d.ts +3 -3
  105. package/dist/RadioShowMedia.js +6 -6
  106. package/dist/RadioShowPlacement.d.ts +3 -3
  107. package/dist/RadioShowPlacement.js +6 -6
  108. package/dist/RadioShowPublishRequests.d.ts +3 -3
  109. package/dist/RadioShowPublishRequests.js +6 -6
  110. package/dist/State.d.ts +2 -2
  111. package/dist/State.js +4 -4
  112. package/dist/UnmatchedAlbum.d.ts +2 -2
  113. package/dist/UnmatchedAlbum.js +6 -6
  114. package/dist/UnmatchedArtist.d.ts +2 -2
  115. package/dist/UnmatchedArtist.js +6 -6
  116. package/dist/UserAbuseReports.d.ts +7 -7
  117. package/dist/UserAbuseReports.js +18 -18
  118. package/dist/UserAffinity.d.ts +2 -2
  119. package/dist/UserAffinity.js +6 -6
  120. package/dist/UserArtistAffinity.d.ts +2 -2
  121. package/dist/UserArtistAffinity.js +6 -6
  122. package/dist/UserBookmarks.d.ts +3 -3
  123. package/dist/UserBookmarks.js +6 -6
  124. package/dist/UserComments.d.ts +5 -5
  125. package/dist/UserComments.js +12 -12
  126. package/dist/UserContacts.d.ts +3 -3
  127. package/dist/UserContacts.js +7 -7
  128. package/dist/UserEngagementFactor.d.ts +2 -2
  129. package/dist/UserEngagementFactor.js +6 -6
  130. package/dist/UserGenreAffinity.d.ts +2 -2
  131. package/dist/UserGenreAffinity.js +6 -6
  132. package/dist/UserLikes.d.ts +3 -3
  133. package/dist/UserLikes.js +6 -6
  134. package/dist/UserMessages.d.ts +5 -5
  135. package/dist/UserMessages.js +15 -15
  136. package/dist/Versus.d.ts +5 -5
  137. package/dist/Versus.js +11 -11
  138. package/dist/VersusCoCreator.d.ts +4 -4
  139. package/dist/VersusCoCreator.js +12 -12
  140. package/dist/VersusOption.d.ts +3 -3
  141. package/dist/VersusOption.js +6 -6
  142. package/dist/VersusPublishIssue.d.ts +3 -3
  143. package/dist/VersusPublishIssue.js +6 -6
  144. package/dist/VersusQuestion.d.ts +2 -2
  145. package/dist/VersusQuestion.js +6 -6
  146. package/dist/VersusVote.d.ts +2 -2
  147. package/dist/VersusVote.js +6 -6
  148. package/dist/init-models.d.ts +349 -3
  149. package/dist/init-models.js +905 -1
  150. package/models/AffinityRelationshipType.ts +8 -8
  151. package/models/AppUser.ts +12 -12
  152. package/models/AppUserDevice.ts +8 -8
  153. package/models/AppUserDeviceClassicBackup20260906.ts +66 -0
  154. package/models/AppUserFollowRelation.ts +9 -9
  155. package/models/AppUserPlatformRelation.ts +38 -38
  156. package/models/CanonAlbum.ts +15 -15
  157. package/models/CanonArtist.ts +16 -16
  158. package/models/CanonGenre.ts +9 -9
  159. package/models/CanonLabel.ts +8 -8
  160. package/models/CanonMember.ts +9 -9
  161. package/models/CanonMemberExternalReferenceRelation.ts +7 -7
  162. package/models/CanonTrack.ts +16 -16
  163. package/models/ConfigParam.ts +7 -7
  164. package/models/ExternalReference.ts +7 -7
  165. package/models/FeedContentType.ts +6 -6
  166. package/models/GuestUser.ts +18 -18
  167. package/models/JukeboxAccessType.ts +6 -6
  168. package/models/JukeboxCanonGenreRelation.ts +8 -8
  169. package/models/JukeboxInvite.ts +9 -9
  170. package/models/JukeboxQueueEntry.ts +34 -34
  171. package/models/JukeboxQueueMode.ts +6 -6
  172. package/models/JukeboxSession.ts +29 -29
  173. package/models/JukeboxSessionArtistAffinity.ts +8 -8
  174. package/models/JukeboxSessionGenreAffinity.ts +8 -8
  175. package/models/JukeboxTerminationCondition.ts +6 -6
  176. package/models/JukeboxType.ts +6 -6
  177. package/models/JukeboxUser.ts +27 -27
  178. package/models/KnexMigrations.ts +9 -9
  179. package/models/KnexMigrationsLock.ts +8 -8
  180. package/models/MerchItem.ts +9 -9
  181. package/models/MerchOrchestration.ts +9 -9
  182. package/models/MerchPlatform.ts +8 -8
  183. package/models/MerchType.ts +6 -6
  184. package/models/MetricsDaily.ts +7 -7
  185. package/models/NewsSite.ts +9 -9
  186. package/models/Notification.ts +46 -46
  187. package/models/Platform.ts +9 -9
  188. package/models/PlatformAlbum.ts +15 -15
  189. package/models/PlatformArtist.ts +15 -15
  190. package/models/PlatformGenre.ts +8 -8
  191. package/models/PlatformTrack.ts +9 -9
  192. package/models/PlatformUserAlbum.ts +8 -8
  193. package/models/PlatformUserAlbumTrack.ts +15 -15
  194. package/models/PlatformUserPlaylist.ts +16 -16
  195. package/models/PlatformUserPlaylistArtistAffinity.ts +16 -16
  196. package/models/PlatformUserPlaylistGenreAffinity.ts +8 -8
  197. package/models/PlatformUserPlaylistTrack.ts +24 -24
  198. package/models/PlaybackStatus.ts +6 -6
  199. package/models/RadioShow.ts +9 -9
  200. package/models/RadioShowMedia.ts +9 -9
  201. package/models/RadioShowPlacement.ts +9 -9
  202. package/models/RadioShowPublishRequests.ts +9 -9
  203. package/models/State.ts +6 -6
  204. package/models/UnmatchedAlbum.ts +8 -8
  205. package/models/UnmatchedArtist.ts +8 -8
  206. package/models/UserAbuseReports.ts +25 -25
  207. package/models/UserAffinity.ts +8 -8
  208. package/models/UserArtistAffinity.ts +8 -8
  209. package/models/UserBookmarks.ts +9 -9
  210. package/models/UserComments.ts +17 -17
  211. package/models/UserContacts.ts +10 -10
  212. package/models/UserEngagementFactor.ts +8 -8
  213. package/models/UserGenreAffinity.ts +8 -8
  214. package/models/UserLikes.ts +9 -9
  215. package/models/UserMessages.ts +20 -20
  216. package/models/Versus.ts +16 -16
  217. package/models/VersusCoCreator.ts +16 -16
  218. package/models/VersusOption.ts +9 -9
  219. package/models/VersusPublishIssue.ts +9 -9
  220. package/models/VersusQuestion.ts +8 -8
  221. package/models/VersusVote.ts +8 -8
  222. package/models/init-models.ts +1245 -0
  223. package/package.json +1 -1
  224. package/scripts/generate-and-upload.mjs +123 -0
  225. package/dist/CanonAlbumImageHarvested.d.ts +0 -30
  226. package/dist/CanonAlbumImageHarvested.js +0 -70
  227. package/dist/CanonArtistImageHarvested.d.ts +0 -30
  228. package/dist/CanonArtistImageHarvested.js +0 -70
  229. package/models/CanonAlbumImageHarvested.ts +0 -98
  230. package/models/CanonArtistImageHarvested.ts +0 -98
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UnmatchedArtist extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UnmatchedArtist.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,
@@ -43,12 +49,6 @@ class UnmatchedArtist extends sequelize_1.Model {
43
49
  allowNull: false,
44
50
  field: 'external_artist_id'
45
51
  },
46
- id: {
47
- type: sequelize_1.DataTypes.UUID,
48
- allowNull: false,
49
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
50
- primaryKey: true
51
- },
52
52
  createDate: {
53
53
  type: sequelize_1.DataTypes.DATE,
54
54
  allowNull: false,
@@ -8,7 +8,10 @@ import type { RadioShowMedia, RadioShowMediaId } from './RadioShowMedia';
8
8
  import type { UserComments, UserCommentsId } from './UserComments';
9
9
  import type { UserMessages, UserMessagesId } from './UserMessages';
10
10
  export interface UserAbuseReportsAttributes {
11
+ id: string;
11
12
  reporterUserId: string;
13
+ reportDate: Date;
14
+ updateDate: Date;
12
15
  jukeboxId?: string;
13
16
  jukeboxChatMessageId?: string;
14
17
  radioShowId?: string;
@@ -17,16 +20,16 @@ export interface UserAbuseReportsAttributes {
17
20
  versusThemeTextId?: string;
18
21
  commentId?: string;
19
22
  directMessageId?: string;
20
- id: string;
21
- reportDate: Date;
22
- updateDate: Date;
23
23
  }
24
24
  export type UserAbuseReportsPk = "id";
25
25
  export type UserAbuseReportsId = UserAbuseReports[UserAbuseReportsPk];
26
- export type UserAbuseReportsOptionalAttributes = "jukeboxId" | "jukeboxChatMessageId" | "radioShowId" | "radioShowMediaId" | "playlistId" | "versusThemeTextId" | "commentId" | "directMessageId" | "id" | "reportDate" | "updateDate";
26
+ export type UserAbuseReportsOptionalAttributes = "id" | "reportDate" | "updateDate" | "jukeboxId" | "jukeboxChatMessageId" | "radioShowId" | "radioShowMediaId" | "playlistId" | "versusThemeTextId" | "commentId" | "directMessageId";
27
27
  export type UserAbuseReportsCreationAttributes = Optional<UserAbuseReportsAttributes, UserAbuseReportsOptionalAttributes>;
28
28
  export declare class UserAbuseReports extends Model<UserAbuseReportsAttributes, UserAbuseReportsCreationAttributes> implements UserAbuseReportsAttributes {
29
+ id: string;
29
30
  reporterUserId: string;
31
+ reportDate: Date;
32
+ updateDate: Date;
30
33
  jukeboxId?: string;
31
34
  jukeboxChatMessageId?: string;
32
35
  radioShowId?: string;
@@ -35,9 +38,6 @@ export declare class UserAbuseReports extends Model<UserAbuseReportsAttributes,
35
38
  versusThemeTextId?: string;
36
39
  commentId?: string;
37
40
  directMessageId?: string;
38
- id: string;
39
- reportDate: Date;
40
- updateDate: Date;
41
41
  reporterUser: AppUser;
42
42
  getReporterUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
43
43
  setReporterUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserAbuseReports extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserAbuseReports.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  reporterUserId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -38,6 +44,18 @@ class UserAbuseReports extends sequelize_1.Model {
38
44
  },
39
45
  field: 'reporter_user_id'
40
46
  },
47
+ reportDate: {
48
+ type: sequelize_1.DataTypes.DATE,
49
+ allowNull: false,
50
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
51
+ field: 'report_date'
52
+ },
53
+ updateDate: {
54
+ type: sequelize_1.DataTypes.DATE,
55
+ allowNull: false,
56
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
57
+ field: 'update_date'
58
+ },
41
59
  jukeboxId: {
42
60
  type: sequelize_1.DataTypes.UUID,
43
61
  allowNull: true,
@@ -101,24 +119,6 @@ class UserAbuseReports extends sequelize_1.Model {
101
119
  key: 'id'
102
120
  },
103
121
  field: 'direct_message_id'
104
- },
105
- id: {
106
- type: sequelize_1.DataTypes.UUID,
107
- allowNull: false,
108
- defaultValue: sequelize_1.DataTypes.UUIDV4,
109
- primaryKey: true
110
- },
111
- reportDate: {
112
- type: sequelize_1.DataTypes.DATE,
113
- allowNull: false,
114
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
115
- field: 'report_date'
116
- },
117
- updateDate: {
118
- type: sequelize_1.DataTypes.DATE,
119
- allowNull: false,
120
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
121
- field: 'update_date'
122
122
  }
123
123
  }, {
124
124
  sequelize,
@@ -3,10 +3,10 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AffinityRelationshipType, AffinityRelationshipTypeId } from './AffinityRelationshipType';
4
4
  import type { AppUser, AppUserId } from './AppUser';
5
5
  export interface UserAffinityAttributes {
6
+ id: string;
6
7
  userId: string;
7
8
  affinityRelationshipTypeId: string;
8
9
  relatedId: string;
9
- id: string;
10
10
  createDate?: Date;
11
11
  updateDate?: Date;
12
12
  }
@@ -15,10 +15,10 @@ export type UserAffinityId = UserAffinity[UserAffinityPk];
15
15
  export type UserAffinityOptionalAttributes = "id" | "createDate" | "updateDate";
16
16
  export type UserAffinityCreationAttributes = Optional<UserAffinityAttributes, UserAffinityOptionalAttributes>;
17
17
  export declare class UserAffinity extends Model<UserAffinityAttributes, UserAffinityCreationAttributes> implements UserAffinityAttributes {
18
+ id: string;
18
19
  userId: string;
19
20
  affinityRelationshipTypeId: string;
20
21
  relatedId: string;
21
- id: string;
22
22
  createDate?: Date;
23
23
  updateDate?: Date;
24
24
  affinityRelationshipType: AffinityRelationshipType;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserAffinity extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserAffinity.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,
@@ -55,12 +61,6 @@ class UserAffinity extends sequelize_1.Model {
55
61
  unique: "user_affinity_user_id_affinity_relationship_type_id_related_id_",
56
62
  field: 'related_id'
57
63
  },
58
- id: {
59
- type: sequelize_1.DataTypes.UUID,
60
- allowNull: false,
61
- defaultValue: sequelize_1.DataTypes.UUIDV4,
62
- primaryKey: true
63
- },
64
64
  createDate: {
65
65
  type: sequelize_1.DataTypes.DATE,
66
66
  allowNull: true,
@@ -4,11 +4,11 @@ import type { AffinityTier, AffinityTierId } from './AffinityTier';
4
4
  import type { AppUser, AppUserId } from './AppUser';
5
5
  import type { CanonArtist, CanonArtistId } from './CanonArtist';
6
6
  export interface UserArtistAffinityAttributes {
7
+ id: string;
7
8
  userId: string;
8
9
  canonArtistId: 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 UserArtistAffinityId = UserArtistAffinity[UserArtistAffinityPk];
17
17
  export type UserArtistAffinityOptionalAttributes = "id" | "createdAt" | "updatedAt";
18
18
  export type UserArtistAffinityCreationAttributes = Optional<UserArtistAffinityAttributes, UserArtistAffinityOptionalAttributes>;
19
19
  export declare class UserArtistAffinity extends Model<UserArtistAffinityAttributes, UserArtistAffinityCreationAttributes> implements UserArtistAffinityAttributes {
20
+ id: string;
20
21
  userId: string;
21
22
  canonArtistId: 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 UserArtistAffinity extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserArtistAffinity.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 UserArtistAffinity 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,28 +7,28 @@ 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 UserBookmarksAttributes {
10
+ id: string;
10
11
  appUserId: string;
11
12
  jukeboxId?: string;
12
13
  playlistId?: string;
13
14
  radioShowId?: string;
14
15
  merchItemId?: string;
15
16
  newsArticleId?: string;
16
- id: string;
17
17
  createDate: Date;
18
18
  updateDate: Date;
19
19
  }
20
20
  export type UserBookmarksPk = "id";
21
21
  export type UserBookmarksId = UserBookmarks[UserBookmarksPk];
22
- export type UserBookmarksOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "merchItemId" | "newsArticleId" | "id" | "createDate" | "updateDate";
22
+ export type UserBookmarksOptionalAttributes = "id" | "jukeboxId" | "playlistId" | "radioShowId" | "merchItemId" | "newsArticleId" | "createDate" | "updateDate";
23
23
  export type UserBookmarksCreationAttributes = Optional<UserBookmarksAttributes, UserBookmarksOptionalAttributes>;
24
24
  export declare class UserBookmarks extends Model<UserBookmarksAttributes, UserBookmarksCreationAttributes> implements UserBookmarksAttributes {
25
+ id: string;
25
26
  appUserId: string;
26
27
  jukeboxId?: string;
27
28
  playlistId?: string;
28
29
  radioShowId?: string;
29
30
  merchItemId?: string;
30
31
  newsArticleId?: string;
31
- id: string;
32
32
  createDate: Date;
33
33
  updateDate: Date;
34
34
  appUser: AppUser;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserBookmarks extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserBookmarks.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,
@@ -83,12 +89,6 @@ class UserBookmarks extends sequelize_1.Model {
83
89
  },
84
90
  field: 'news_article_id'
85
91
  },
86
- id: {
87
- type: sequelize_1.DataTypes.UUID,
88
- allowNull: false,
89
- defaultValue: sequelize_1.DataTypes.UUIDV4,
90
- primaryKey: true
91
- },
92
92
  createDate: {
93
93
  type: sequelize_1.DataTypes.DATE,
94
94
  allowNull: false,
@@ -8,12 +8,12 @@ import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUse
8
8
  import type { RadioShow, RadioShowId } from './RadioShow';
9
9
  import type { UserAbuseReports, UserAbuseReportsId } from './UserAbuseReports';
10
10
  export interface UserCommentsAttributes {
11
+ id: string;
11
12
  appUserId: string;
12
13
  jukeboxId?: string;
13
14
  playlistId?: string;
14
15
  radioShowId?: string;
15
16
  comment: string;
16
- id: string;
17
17
  replyCommentId?: string;
18
18
  deleted: boolean;
19
19
  createDate: Date;
@@ -22,20 +22,20 @@ export interface UserCommentsAttributes {
22
22
  moderationScore?: number;
23
23
  moderationLevel?: string;
24
24
  strippedUrls?: object;
25
- newsArticleId?: string;
26
25
  merchItemId?: string;
26
+ newsArticleId?: string;
27
27
  }
28
28
  export type UserCommentsPk = "id";
29
29
  export type UserCommentsId = UserComments[UserCommentsPk];
30
- export type UserCommentsOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "replyCommentId" | "createDate" | "updateDate" | "modifiedComment" | "moderationScore" | "moderationLevel" | "strippedUrls" | "newsArticleId" | "merchItemId";
30
+ export type UserCommentsOptionalAttributes = "id" | "jukeboxId" | "playlistId" | "radioShowId" | "replyCommentId" | "createDate" | "updateDate" | "modifiedComment" | "moderationScore" | "moderationLevel" | "strippedUrls" | "merchItemId" | "newsArticleId";
31
31
  export type UserCommentsCreationAttributes = Optional<UserCommentsAttributes, UserCommentsOptionalAttributes>;
32
32
  export declare class UserComments extends Model<UserCommentsAttributes, UserCommentsCreationAttributes> implements UserCommentsAttributes {
33
+ id: string;
33
34
  appUserId: string;
34
35
  jukeboxId?: string;
35
36
  playlistId?: string;
36
37
  radioShowId?: string;
37
38
  comment: string;
38
- id: string;
39
39
  replyCommentId?: string;
40
40
  deleted: boolean;
41
41
  createDate: Date;
@@ -44,8 +44,8 @@ export declare class UserComments extends Model<UserCommentsAttributes, UserComm
44
44
  moderationScore?: number;
45
45
  moderationLevel?: string;
46
46
  strippedUrls?: object;
47
- newsArticleId?: string;
48
47
  merchItemId?: string;
48
+ newsArticleId?: string;
49
49
  appUser: AppUser;
50
50
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
51
51
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class UserComments extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return UserComments.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,
@@ -69,12 +75,6 @@ class UserComments extends sequelize_1.Model {
69
75
  type: sequelize_1.DataTypes.STRING(1000),
70
76
  allowNull: false
71
77
  },
72
- id: {
73
- type: sequelize_1.DataTypes.UUID,
74
- allowNull: false,
75
- defaultValue: sequelize_1.DataTypes.UUIDV4,
76
- primaryKey: true
77
- },
78
78
  replyCommentId: {
79
79
  type: sequelize_1.DataTypes.UUID,
80
80
  allowNull: true,
@@ -121,23 +121,23 @@ class UserComments extends sequelize_1.Model {
121
121
  allowNull: true,
122
122
  field: 'stripped_urls'
123
123
  },
124
- newsArticleId: {
124
+ merchItemId: {
125
125
  type: sequelize_1.DataTypes.UUID,
126
126
  allowNull: true,
127
127
  references: {
128
- model: 'news_article',
128
+ model: 'merch_item',
129
129
  key: 'id'
130
130
  },
131
- field: 'news_article_id'
131
+ field: 'merch_item_id'
132
132
  },
133
- merchItemId: {
133
+ newsArticleId: {
134
134
  type: sequelize_1.DataTypes.UUID,
135
135
  allowNull: true,
136
136
  references: {
137
- model: 'merch_item',
137
+ model: 'news_article',
138
138
  key: 'id'
139
139
  },
140
- field: 'merch_item_id'
140
+ field: 'news_article_id'
141
141
  }
142
142
  }, {
143
143
  sequelize,
@@ -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;