@earbug/db-models 0.0.60 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -2,10 +2,10 @@ import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
3
  import type { UserAffinity, UserAffinityId } from './UserAffinity';
4
4
  export interface AffinityRelationshipTypeAttributes {
5
+ id: string;
5
6
  name: string;
6
7
  category: string;
7
8
  tier: string;
8
- id: string;
9
9
  createDate?: Date;
10
10
  updateDate?: Date;
11
11
  }
@@ -14,10 +14,10 @@ export type AffinityRelationshipTypeId = AffinityRelationshipType[AffinityRelati
14
14
  export type AffinityRelationshipTypeOptionalAttributes = "id" | "createDate" | "updateDate";
15
15
  export type AffinityRelationshipTypeCreationAttributes = Optional<AffinityRelationshipTypeAttributes, AffinityRelationshipTypeOptionalAttributes>;
16
16
  export declare class AffinityRelationshipType extends Model<AffinityRelationshipTypeAttributes, AffinityRelationshipTypeCreationAttributes> implements AffinityRelationshipTypeAttributes {
17
+ id: string;
17
18
  name: string;
18
19
  category: string;
19
20
  tier: string;
20
- id: string;
21
21
  createDate?: Date;
22
22
  updateDate?: Date;
23
23
  userAffinities: UserAffinity[];
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class AffinityRelationshipType extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return AffinityRelationshipType.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.STRING(50),
34
40
  allowNull: false,
@@ -42,12 +48,6 @@ class AffinityRelationshipType extends sequelize_1.Model {
42
48
  type: sequelize_1.DataTypes.STRING(20),
43
49
  allowNull: false
44
50
  },
45
- id: {
46
- type: sequelize_1.DataTypes.UUID,
47
- allowNull: false,
48
- defaultValue: sequelize_1.DataTypes.UUIDV4,
49
- primaryKey: true
50
- },
51
51
  createDate: {
52
52
  type: sequelize_1.DataTypes.DATE,
53
53
  allowNull: true,
package/dist/AppUser.d.ts CHANGED
@@ -26,9 +26,9 @@ import type { VersusCoCreator, VersusCoCreatorId } from './VersusCoCreator';
26
26
  import type { VersusOption, VersusOptionId } from './VersusOption';
27
27
  import type { VersusVote, VersusVoteId } from './VersusVote';
28
28
  export interface AppUserAttributes {
29
- firstName: string;
30
- email?: string;
31
29
  id: string;
30
+ email?: string;
31
+ firstName: string;
32
32
  createDate: Date;
33
33
  updateDate: Date;
34
34
  syncContacts?: boolean;
@@ -52,12 +52,12 @@ export interface AppUserAttributes {
52
52
  }
53
53
  export type AppUserPk = "id";
54
54
  export type AppUserId = AppUser[AppUserPk];
55
- export type AppUserOptionalAttributes = "email" | "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications" | "hardBounce" | "softBounce1" | "softBounce2" | "softBounce3" | "bio";
55
+ export type AppUserOptionalAttributes = "id" | "email" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications" | "hardBounce" | "softBounce1" | "softBounce2" | "softBounce3" | "bio";
56
56
  export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
57
57
  export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
58
- firstName: string;
59
- email?: string;
60
58
  id: string;
59
+ email?: string;
60
+ firstName: string;
61
61
  createDate: Date;
62
62
  updateDate: Date;
63
63
  syncContacts?: boolean;
package/dist/AppUser.js CHANGED
@@ -29,21 +29,21 @@ const sequelize_1 = require("sequelize");
29
29
  class AppUser extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return AppUser.init({
32
- firstName: {
33
- type: sequelize_1.DataTypes.TEXT,
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
34
  allowNull: false,
35
- field: 'first_name'
35
+ defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
36
+ primaryKey: true
36
37
  },
37
38
  email: {
38
39
  type: sequelize_1.DataTypes.TEXT,
39
40
  allowNull: true,
40
41
  unique: "uk_app_user_email"
41
42
  },
42
- id: {
43
- type: sequelize_1.DataTypes.UUID,
43
+ firstName: {
44
+ type: sequelize_1.DataTypes.TEXT,
44
45
  allowNull: false,
45
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
46
- primaryKey: true
46
+ field: 'first_name'
47
47
  },
48
48
  createDate: {
49
49
  type: sequelize_1.DataTypes.DATE,
@@ -3,10 +3,10 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  export interface AppUserDeviceAttributes {
5
5
  id: string;
6
- createdAt: Date;
7
6
  appUserId: string;
8
7
  devicePlatformId: number;
9
8
  endpointArn: string;
9
+ createdAt: Date;
10
10
  platformApplicationArn?: string;
11
11
  }
12
12
  export type AppUserDevicePk = "id";
@@ -15,10 +15,10 @@ export type AppUserDeviceOptionalAttributes = "id" | "createdAt" | "platformAppl
15
15
  export type AppUserDeviceCreationAttributes = Optional<AppUserDeviceAttributes, AppUserDeviceOptionalAttributes>;
16
16
  export declare class AppUserDevice extends Model<AppUserDeviceAttributes, AppUserDeviceCreationAttributes> implements AppUserDeviceAttributes {
17
17
  id: string;
18
- createdAt: Date;
19
18
  appUserId: string;
20
19
  devicePlatformId: number;
21
20
  endpointArn: string;
21
+ createdAt: Date;
22
22
  platformApplicationArn?: string;
23
23
  appUser: AppUser;
24
24
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
@@ -35,12 +35,6 @@ class AppUserDevice extends sequelize_1.Model {
35
35
  defaultValue: sequelize_1.DataTypes.UUIDV4,
36
36
  primaryKey: true
37
37
  },
38
- createdAt: {
39
- type: sequelize_1.DataTypes.DATE,
40
- allowNull: false,
41
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
42
- field: 'created_at'
43
- },
44
38
  appUserId: {
45
39
  type: sequelize_1.DataTypes.UUID,
46
40
  allowNull: false,
@@ -61,6 +55,12 @@ class AppUserDevice extends sequelize_1.Model {
61
55
  unique: "unique_app_user_device_endpoint_arn",
62
56
  field: 'endpoint_arn'
63
57
  },
58
+ createdAt: {
59
+ type: sequelize_1.DataTypes.DATE,
60
+ allowNull: false,
61
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
62
+ field: 'created_at'
63
+ },
64
64
  platformApplicationArn: {
65
65
  type: sequelize_1.DataTypes.TEXT,
66
66
  allowNull: true,
@@ -0,0 +1,23 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { Model, Optional } from 'sequelize';
3
+ export interface AppUserDeviceClassicBackup20260906Attributes {
4
+ id?: string;
5
+ appUserId?: string;
6
+ devicePlatformId?: number;
7
+ endpointArn?: string;
8
+ createdAt?: Date;
9
+ platformApplicationArn?: string;
10
+ }
11
+ export type AppUserDeviceClassicBackup20260906Pk = "id";
12
+ export type AppUserDeviceClassicBackup20260906Id = AppUserDeviceClassicBackup20260906[AppUserDeviceClassicBackup20260906Pk];
13
+ export type AppUserDeviceClassicBackup20260906OptionalAttributes = "id" | "appUserId" | "devicePlatformId" | "endpointArn" | "createdAt" | "platformApplicationArn";
14
+ export type AppUserDeviceClassicBackup20260906CreationAttributes = Optional<AppUserDeviceClassicBackup20260906Attributes, AppUserDeviceClassicBackup20260906OptionalAttributes>;
15
+ export declare class AppUserDeviceClassicBackup20260906 extends Model<AppUserDeviceClassicBackup20260906Attributes, AppUserDeviceClassicBackup20260906CreationAttributes> implements AppUserDeviceClassicBackup20260906Attributes {
16
+ id?: string;
17
+ appUserId?: string;
18
+ devicePlatformId?: number;
19
+ endpointArn?: string;
20
+ createdAt?: Date;
21
+ platformApplicationArn?: string;
22
+ static initModel(sequelize: Sequelize.Sequelize): typeof AppUserDeviceClassicBackup20260906;
23
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppUserDeviceClassicBackup20260906 = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ class AppUserDeviceClassicBackup20260906 extends sequelize_1.Model {
6
+ static initModel(sequelize) {
7
+ return AppUserDeviceClassicBackup20260906.init({
8
+ id: {
9
+ type: sequelize_1.DataTypes.UUID,
10
+ allowNull: true,
11
+ primaryKey: true
12
+ },
13
+ appUserId: {
14
+ type: sequelize_1.DataTypes.UUID,
15
+ allowNull: true,
16
+ field: 'app_user_id'
17
+ },
18
+ devicePlatformId: {
19
+ type: sequelize_1.DataTypes.SMALLINT,
20
+ allowNull: true,
21
+ field: 'device_platform_id'
22
+ },
23
+ endpointArn: {
24
+ type: sequelize_1.DataTypes.TEXT,
25
+ allowNull: true,
26
+ field: 'endpoint_arn'
27
+ },
28
+ createdAt: {
29
+ type: sequelize_1.DataTypes.DATE,
30
+ allowNull: true,
31
+ field: 'created_at'
32
+ },
33
+ platformApplicationArn: {
34
+ type: sequelize_1.DataTypes.TEXT,
35
+ allowNull: true,
36
+ field: 'platform_application_arn'
37
+ }
38
+ }, {
39
+ sequelize,
40
+ tableName: 'app_user_device_classic_backup_20260906',
41
+ schema: 'eb',
42
+ timestamps: false
43
+ });
44
+ }
45
+ }
46
+ exports.AppUserDeviceClassicBackup20260906 = AppUserDeviceClassicBackup20260906;
@@ -2,26 +2,26 @@ import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  export interface AppUserFollowRelationAttributes {
5
+ id: string;
5
6
  appUserId: string;
6
7
  followingAppUserId: string;
7
8
  stateId: number;
8
9
  isBlocked: boolean;
9
10
  createdAt: Date;
10
11
  updatedAt: Date;
11
- id: string;
12
12
  }
13
13
  export type AppUserFollowRelationPk = "id";
14
14
  export type AppUserFollowRelationId = AppUserFollowRelation[AppUserFollowRelationPk];
15
- export type AppUserFollowRelationOptionalAttributes = "stateId" | "createdAt" | "updatedAt" | "id";
15
+ export type AppUserFollowRelationOptionalAttributes = "id" | "stateId" | "createdAt" | "updatedAt";
16
16
  export type AppUserFollowRelationCreationAttributes = Optional<AppUserFollowRelationAttributes, AppUserFollowRelationOptionalAttributes>;
17
17
  export declare class AppUserFollowRelation extends Model<AppUserFollowRelationAttributes, AppUserFollowRelationCreationAttributes> implements AppUserFollowRelationAttributes {
18
+ id: string;
18
19
  appUserId: string;
19
20
  followingAppUserId: string;
20
21
  stateId: number;
21
22
  isBlocked: boolean;
22
23
  createdAt: Date;
23
24
  updatedAt: Date;
24
- id: string;
25
25
  appUser: AppUser;
26
26
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
27
27
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class AppUserFollowRelation extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return AppUserFollowRelation.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  appUserId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -72,12 +78,6 @@ class AppUserFollowRelation extends sequelize_1.Model {
72
78
  allowNull: false,
73
79
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
74
80
  field: 'updated_at'
75
- },
76
- id: {
77
- type: sequelize_1.DataTypes.UUID,
78
- allowNull: false,
79
- defaultValue: sequelize_1.DataTypes.UUIDV4,
80
- primaryKey: true
81
81
  }
82
82
  }, {
83
83
  sequelize,
@@ -3,34 +3,34 @@ import { Model, Optional } from 'sequelize';
3
3
  import type { AppUser, AppUserId } from './AppUser';
4
4
  import type { Platform, PlatformId } from './Platform';
5
5
  export interface AppUserPlatformRelationAttributes {
6
+ id: string;
6
7
  appUserId: string;
7
8
  platformId: number;
8
- externalUserId: string;
9
- accessToken: string;
10
- refreshToken?: string;
11
- expirationDate: Date;
12
- countryCode: string;
13
- id: string;
9
+ externalUserId?: string;
14
10
  createDate: Date;
15
11
  updateDate: Date;
12
+ accessToken?: string;
13
+ refreshToken?: string;
14
+ expirationDate: Date;
16
15
  stateId: number;
16
+ countryCode: string;
17
17
  }
18
18
  export type AppUserPlatformRelationPk = "id";
19
19
  export type AppUserPlatformRelationId = AppUserPlatformRelation[AppUserPlatformRelationPk];
20
- export type AppUserPlatformRelationOptionalAttributes = "refreshToken" | "id" | "createDate" | "updateDate" | "stateId";
20
+ export type AppUserPlatformRelationOptionalAttributes = "id" | "externalUserId" | "createDate" | "updateDate" | "accessToken" | "refreshToken" | "stateId";
21
21
  export type AppUserPlatformRelationCreationAttributes = Optional<AppUserPlatformRelationAttributes, AppUserPlatformRelationOptionalAttributes>;
22
22
  export declare class AppUserPlatformRelation extends Model<AppUserPlatformRelationAttributes, AppUserPlatformRelationCreationAttributes> implements AppUserPlatformRelationAttributes {
23
+ id: string;
23
24
  appUserId: string;
24
25
  platformId: number;
25
- externalUserId: string;
26
- accessToken: string;
27
- refreshToken?: string;
28
- expirationDate: Date;
29
- countryCode: string;
30
- id: string;
26
+ externalUserId?: string;
31
27
  createDate: Date;
32
28
  updateDate: Date;
29
+ accessToken?: string;
30
+ refreshToken?: string;
31
+ expirationDate: Date;
33
32
  stateId: number;
33
+ countryCode: string;
34
34
  appUser: AppUser;
35
35
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
36
36
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class AppUserPlatformRelation extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return AppUserPlatformRelation.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
  appUserId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -50,12 +56,24 @@ class AppUserPlatformRelation extends sequelize_1.Model {
50
56
  },
51
57
  externalUserId: {
52
58
  type: sequelize_1.DataTypes.TEXT,
53
- allowNull: false,
59
+ allowNull: true,
54
60
  field: 'external_user_id'
55
61
  },
62
+ createDate: {
63
+ type: sequelize_1.DataTypes.DATE,
64
+ allowNull: false,
65
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
66
+ field: 'create_date'
67
+ },
68
+ updateDate: {
69
+ type: sequelize_1.DataTypes.DATE,
70
+ allowNull: false,
71
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
72
+ field: 'update_date'
73
+ },
56
74
  accessToken: {
57
75
  type: sequelize_1.DataTypes.STRING,
58
- allowNull: false,
76
+ allowNull: true,
59
77
  field: 'access_token'
60
78
  },
61
79
  refreshToken: {
@@ -68,34 +86,16 @@ class AppUserPlatformRelation extends sequelize_1.Model {
68
86
  allowNull: false,
69
87
  field: 'expiration_date'
70
88
  },
71
- countryCode: {
72
- type: sequelize_1.DataTypes.STRING(2),
73
- allowNull: false,
74
- field: 'country_code'
75
- },
76
- id: {
77
- type: sequelize_1.DataTypes.UUID,
78
- allowNull: false,
79
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
80
- primaryKey: true
81
- },
82
- createDate: {
83
- type: sequelize_1.DataTypes.DATE,
84
- allowNull: false,
85
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
86
- field: 'create_date'
87
- },
88
- updateDate: {
89
- type: sequelize_1.DataTypes.DATE,
90
- allowNull: false,
91
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
92
- field: 'update_date'
93
- },
94
89
  stateId: {
95
90
  type: sequelize_1.DataTypes.SMALLINT,
96
91
  allowNull: false,
97
92
  defaultValue: 0,
98
93
  field: 'state_id'
94
+ },
95
+ countryCode: {
96
+ type: sequelize_1.DataTypes.STRING(2),
97
+ allowNull: false,
98
+ field: 'country_code'
99
99
  }
100
100
  }, {
101
101
  sequelize,
@@ -9,34 +9,34 @@ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
9
9
  import type { Versus, VersusId } from './Versus';
10
10
  import type { VersusOption, VersusOptionId } from './VersusOption';
11
11
  export interface CanonAlbumAttributes {
12
+ id: string;
12
13
  name: string;
13
14
  asciiName: string;
14
15
  releaseDate?: string;
15
16
  noOfDisc?: number;
16
- description?: string;
17
- id: string;
18
17
  createDate: Date;
19
18
  updateDate: Date;
20
19
  hasPhoto?: boolean;
21
20
  hasThumbnailPhoto?: boolean;
21
+ description?: string;
22
22
  images?: object;
23
23
  lastImageHarvestAttempt?: Date;
24
24
  }
25
25
  export type CanonAlbumPk = "id";
26
26
  export type CanonAlbumId = CanonAlbum[CanonAlbumPk];
27
- export type CanonAlbumOptionalAttributes = "releaseDate" | "noOfDisc" | "description" | "id" | "createDate" | "updateDate" | "hasPhoto" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt";
27
+ export type CanonAlbumOptionalAttributes = "id" | "releaseDate" | "noOfDisc" | "createDate" | "updateDate" | "hasPhoto" | "hasThumbnailPhoto" | "description" | "images" | "lastImageHarvestAttempt";
28
28
  export type CanonAlbumCreationAttributes = Optional<CanonAlbumAttributes, CanonAlbumOptionalAttributes>;
29
29
  export declare class CanonAlbum extends Model<CanonAlbumAttributes, CanonAlbumCreationAttributes> implements CanonAlbumAttributes {
30
+ id: string;
30
31
  name: string;
31
32
  asciiName: string;
32
33
  releaseDate?: string;
33
34
  noOfDisc?: number;
34
- description?: string;
35
- id: string;
36
35
  createDate: Date;
37
36
  updateDate: Date;
38
37
  hasPhoto?: boolean;
39
38
  hasThumbnailPhoto?: boolean;
39
+ description?: string;
40
40
  images?: object;
41
41
  lastImageHarvestAttempt?: Date;
42
42
  canonAlbumExternalReferenceRelations: CanonAlbumExternalReferenceRelation[];
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class CanonAlbum extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return CanonAlbum.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
  name: {
33
39
  type: sequelize_1.DataTypes.TEXT,
34
40
  allowNull: false
@@ -48,16 +54,6 @@ class CanonAlbum extends sequelize_1.Model {
48
54
  allowNull: true,
49
55
  field: 'no_of_disc'
50
56
  },
51
- description: {
52
- type: sequelize_1.DataTypes.TEXT,
53
- allowNull: true
54
- },
55
- id: {
56
- type: sequelize_1.DataTypes.UUID,
57
- allowNull: false,
58
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
59
- primaryKey: true
60
- },
61
57
  createDate: {
62
58
  type: sequelize_1.DataTypes.DATE,
63
59
  allowNull: false,
@@ -82,6 +78,10 @@ class CanonAlbum extends sequelize_1.Model {
82
78
  defaultValue: false,
83
79
  field: 'has_thumbnail_photo'
84
80
  },
81
+ description: {
82
+ type: sequelize_1.DataTypes.TEXT,
83
+ allowNull: true
84
+ },
85
85
  images: {
86
86
  type: sequelize_1.DataTypes.JSONB,
87
87
  allowNull: true
@@ -15,10 +15,10 @@ import type { UserArtistAffinity, UserArtistAffinityId } from './UserArtistAffin
15
15
  import type { Versus, VersusId } from './Versus';
16
16
  import type { VersusOption, VersusOptionId } from './VersusOption';
17
17
  export interface CanonArtistAttributes {
18
+ id: string;
18
19
  name: string;
19
20
  asciiName: string;
20
21
  description?: string;
21
- id: string;
22
22
  hasPhoto: boolean;
23
23
  createDate: Date;
24
24
  updateDate: Date;
@@ -27,20 +27,20 @@ export interface CanonArtistAttributes {
27
27
  lastImageHarvestAttempt?: Date;
28
28
  merchHarvestDay?: number;
29
29
  newsHarvestDay?: number;
30
+ popularityRank?: number;
30
31
  lastGenreHarvestAttempt?: Date;
31
32
  genreHarvestCount: number;
32
- popularityRank?: number;
33
33
  popularityScore: number;
34
34
  }
35
35
  export type CanonArtistPk = "id";
36
36
  export type CanonArtistId = CanonArtist[CanonArtistPk];
37
- export type CanonArtistOptionalAttributes = "description" | "id" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "lastGenreHarvestAttempt" | "genreHarvestCount" | "popularityRank" | "popularityScore";
37
+ export type CanonArtistOptionalAttributes = "id" | "description" | "createDate" | "updateDate" | "hasThumbnailPhoto" | "images" | "lastImageHarvestAttempt" | "merchHarvestDay" | "newsHarvestDay" | "popularityRank" | "lastGenreHarvestAttempt" | "genreHarvestCount" | "popularityScore";
38
38
  export type CanonArtistCreationAttributes = Optional<CanonArtistAttributes, CanonArtistOptionalAttributes>;
39
39
  export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtistCreationAttributes> implements CanonArtistAttributes {
40
+ id: string;
40
41
  name: string;
41
42
  asciiName: string;
42
43
  description?: string;
43
- id: string;
44
44
  hasPhoto: boolean;
45
45
  createDate: Date;
46
46
  updateDate: Date;
@@ -49,9 +49,9 @@ export declare class CanonArtist extends Model<CanonArtistAttributes, CanonArtis
49
49
  lastImageHarvestAttempt?: Date;
50
50
  merchHarvestDay?: number;
51
51
  newsHarvestDay?: number;
52
+ popularityRank?: number;
52
53
  lastGenreHarvestAttempt?: Date;
53
54
  genreHarvestCount: number;
54
- popularityRank?: number;
55
55
  popularityScore: number;
56
56
  canonArtistAlbumRelations: CanonArtistAlbumRelation[];
57
57
  getCanonArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class CanonArtist extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return CanonArtist.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
  name: {
33
39
  type: sequelize_1.DataTypes.TEXT,
34
40
  allowNull: false
@@ -42,12 +48,6 @@ class CanonArtist extends sequelize_1.Model {
42
48
  type: sequelize_1.DataTypes.TEXT,
43
49
  allowNull: true
44
50
  },
45
- id: {
46
- type: sequelize_1.DataTypes.UUID,
47
- allowNull: false,
48
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
49
- primaryKey: true
50
- },
51
51
  hasPhoto: {
52
52
  type: sequelize_1.DataTypes.BOOLEAN,
53
53
  allowNull: false,
@@ -91,6 +91,11 @@ class CanonArtist extends sequelize_1.Model {
91
91
  allowNull: true,
92
92
  field: 'news_harvest_day'
93
93
  },
94
+ popularityRank: {
95
+ type: sequelize_1.DataTypes.INTEGER,
96
+ allowNull: true,
97
+ field: 'popularity_rank'
98
+ },
94
99
  lastGenreHarvestAttempt: {
95
100
  type: sequelize_1.DataTypes.DATE,
96
101
  allowNull: true,
@@ -102,11 +107,6 @@ class CanonArtist extends sequelize_1.Model {
102
107
  defaultValue: 0,
103
108
  field: 'genre_harvest_count'
104
109
  },
105
- popularityRank: {
106
- type: sequelize_1.DataTypes.INTEGER,
107
- allowNull: true,
108
- field: 'popularity_rank'
109
- },
110
110
  popularityScore: {
111
111
  type: sequelize_1.DataTypes.INTEGER,
112
112
  allowNull: false,
@@ -15,24 +15,24 @@ import type { RadioShowGenres, RadioShowGenresId } from './RadioShowGenres';
15
15
  import type { UserGenreAffinity, UserGenreAffinityId } from './UserGenreAffinity';
16
16
  import type { Versus, VersusId } from './Versus';
17
17
  export interface CanonGenreAttributes {
18
+ id: string;
18
19
  name: string;
19
20
  asciiName: string;
20
21
  description: string;
21
22
  parentGenreId?: string;
22
- id: string;
23
23
  createDate: Date;
24
24
  updateDate: Date;
25
25
  }
26
26
  export type CanonGenrePk = "id";
27
27
  export type CanonGenreId = CanonGenre[CanonGenrePk];
28
- export type CanonGenreOptionalAttributes = "parentGenreId" | "id" | "createDate" | "updateDate";
28
+ export type CanonGenreOptionalAttributes = "id" | "parentGenreId" | "createDate" | "updateDate";
29
29
  export type CanonGenreCreationAttributes = Optional<CanonGenreAttributes, CanonGenreOptionalAttributes>;
30
30
  export declare class CanonGenre extends Model<CanonGenreAttributes, CanonGenreCreationAttributes> implements CanonGenreAttributes {
31
+ id: string;
31
32
  name: string;
32
33
  asciiName: string;
33
34
  description: string;
34
35
  parentGenreId?: string;
35
- id: string;
36
36
  createDate: Date;
37
37
  updateDate: Date;
38
38
  canonAlbumGenreRelations: CanonAlbumGenreRelation[];
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class CanonGenre extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return CanonGenre.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
  name: {
33
39
  type: sequelize_1.DataTypes.TEXT,
34
40
  allowNull: false,
@@ -48,12 +54,6 @@ class CanonGenre extends sequelize_1.Model {
48
54
  allowNull: true,
49
55
  field: 'parent_genre_id'
50
56
  },
51
- id: {
52
- type: sequelize_1.DataTypes.UUID,
53
- allowNull: false,
54
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
55
- primaryKey: true
56
- },
57
57
  createDate: {
58
58
  type: sequelize_1.DataTypes.DATE,
59
59
  allowNull: false,