@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
@@ -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;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformGenre extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformGenre.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,
@@ -44,12 +50,6 @@ class PlatformGenre extends sequelize_1.Model {
44
50
  allowNull: false,
45
51
  unique: "platform_genre_name_pkey"
46
52
  },
47
- id: {
48
- type: sequelize_1.DataTypes.UUID,
49
- allowNull: false,
50
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
51
- primaryKey: true
52
- },
53
53
  createDate: {
54
54
  type: sequelize_1.DataTypes.DATE,
55
55
  allowNull: false,
@@ -16,6 +16,7 @@ import type { Versus, VersusId } from './Versus';
16
16
  import type { VersusOption, VersusOptionId } from './VersusOption';
17
17
  import type { VersusPublishIssue, VersusPublishIssueId } from './VersusPublishIssue';
18
18
  export interface PlatformTrackAttributes {
19
+ id: string;
19
20
  platformId: number;
20
21
  externalTrackId: string;
21
22
  name: string;
@@ -25,7 +26,6 @@ export interface PlatformTrackAttributes {
25
26
  popularity?: number;
26
27
  discNumber?: number;
27
28
  discTrackNumber?: number;
28
- id: string;
29
29
  createDate: Date;
30
30
  updateDate: Date;
31
31
  lastHarvestDate?: Date;
@@ -33,9 +33,10 @@ export interface PlatformTrackAttributes {
33
33
  }
34
34
  export type PlatformTrackPk = "id";
35
35
  export type PlatformTrackId = PlatformTrack[PlatformTrackPk];
36
- export type PlatformTrackOptionalAttributes = "explicit" | "popularity" | "discNumber" | "discTrackNumber" | "id" | "createDate" | "updateDate" | "lastHarvestDate" | "lastHarvestLog";
36
+ export type PlatformTrackOptionalAttributes = "id" | "explicit" | "popularity" | "discNumber" | "discTrackNumber" | "createDate" | "updateDate" | "lastHarvestDate" | "lastHarvestLog";
37
37
  export type PlatformTrackCreationAttributes = Optional<PlatformTrackAttributes, PlatformTrackOptionalAttributes>;
38
38
  export declare class PlatformTrack extends Model<PlatformTrackAttributes, PlatformTrackCreationAttributes> implements PlatformTrackAttributes {
39
+ id: string;
39
40
  platformId: number;
40
41
  externalTrackId: string;
41
42
  name: string;
@@ -45,7 +46,6 @@ export declare class PlatformTrack extends Model<PlatformTrackAttributes, Platfo
45
46
  popularity?: number;
46
47
  discNumber?: number;
47
48
  discTrackNumber?: number;
48
- id: string;
49
49
  createDate: Date;
50
50
  updateDate: Date;
51
51
  lastHarvestDate?: Date;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformTrack extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformTrack.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,
@@ -77,12 +83,6 @@ class PlatformTrack extends sequelize_1.Model {
77
83
  allowNull: true,
78
84
  field: 'disc_track_number'
79
85
  },
80
- id: {
81
- type: sequelize_1.DataTypes.UUID,
82
- allowNull: false,
83
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
84
- primaryKey: true
85
- },
86
86
  createDate: {
87
87
  type: sequelize_1.DataTypes.DATE,
88
88
  allowNull: false,
@@ -5,11 +5,11 @@ import type { Platform, PlatformId } from './Platform';
5
5
  import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
6
6
  import type { PlatformUserAlbumTrack, PlatformUserAlbumTrackId } from './PlatformUserAlbumTrack';
7
7
  export interface PlatformUserAlbumAttributes {
8
+ id: string;
8
9
  appUserId: string;
9
10
  platformId: number;
10
11
  externalUserAlbumId: string;
11
12
  platformAlbumId: string;
12
- id: string;
13
13
  createdAt: Date;
14
14
  updatedAt: Date;
15
15
  stateId: number;
@@ -19,11 +19,11 @@ export type PlatformUserAlbumId = PlatformUserAlbum[PlatformUserAlbumPk];
19
19
  export type PlatformUserAlbumOptionalAttributes = "id" | "createdAt" | "updatedAt" | "stateId";
20
20
  export type PlatformUserAlbumCreationAttributes = Optional<PlatformUserAlbumAttributes, PlatformUserAlbumOptionalAttributes>;
21
21
  export declare class PlatformUserAlbum extends Model<PlatformUserAlbumAttributes, PlatformUserAlbumCreationAttributes> implements PlatformUserAlbumAttributes {
22
+ id: string;
22
23
  appUserId: string;
23
24
  platformId: number;
24
25
  externalUserAlbumId: string;
25
26
  platformAlbumId: string;
26
- id: string;
27
27
  createdAt: Date;
28
28
  updatedAt: Date;
29
29
  stateId: number;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformUserAlbum extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformUserAlbum.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,
@@ -63,12 +69,6 @@ class PlatformUserAlbum extends sequelize_1.Model {
63
69
  unique: "platform_user_album_app_user_id_platform_album_id_unique",
64
70
  field: 'platform_album_id'
65
71
  },
66
- id: {
67
- type: sequelize_1.DataTypes.UUID,
68
- allowNull: false,
69
- defaultValue: sequelize_1.DataTypes.UUIDV4,
70
- primaryKey: true
71
- },
72
72
  createdAt: {
73
73
  type: sequelize_1.DataTypes.DATE,
74
74
  allowNull: false,
@@ -4,28 +4,28 @@ import type { Platform, PlatformId } from './Platform';
4
4
  import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
5
5
  import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
6
6
  export interface PlatformUserAlbumTrackAttributes {
7
+ id: string;
7
8
  platformUserAlbumId: string;
8
9
  platformId: number;
9
10
  externalUserAlbumTrackId: string;
10
11
  platformTrackId: string;
11
- stateId: number;
12
- id: string;
13
12
  createdAt: Date;
14
13
  updatedAt: Date;
14
+ stateId: number;
15
15
  }
16
16
  export type PlatformUserAlbumTrackPk = "id";
17
17
  export type PlatformUserAlbumTrackId = PlatformUserAlbumTrack[PlatformUserAlbumTrackPk];
18
18
  export type PlatformUserAlbumTrackOptionalAttributes = "id" | "createdAt" | "updatedAt";
19
19
  export type PlatformUserAlbumTrackCreationAttributes = Optional<PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackOptionalAttributes>;
20
20
  export declare class PlatformUserAlbumTrack extends Model<PlatformUserAlbumTrackAttributes, PlatformUserAlbumTrackCreationAttributes> implements PlatformUserAlbumTrackAttributes {
21
+ id: string;
21
22
  platformUserAlbumId: string;
22
23
  platformId: number;
23
24
  externalUserAlbumTrackId: string;
24
25
  platformTrackId: string;
25
- stateId: number;
26
- id: string;
27
26
  createdAt: Date;
28
27
  updatedAt: Date;
28
+ stateId: number;
29
29
  platform: Platform;
30
30
  getPlatform: Sequelize.BelongsToGetAssociationMixin<Platform>;
31
31
  setPlatform: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
@@ -29,6 +29,12 @@ const sequelize_1 = require("sequelize");
29
29
  class PlatformUserAlbumTrack extends sequelize_1.Model {
30
30
  static initModel(sequelize) {
31
31
  return PlatformUserAlbumTrack.init({
32
+ id: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
36
+ primaryKey: true
37
+ },
32
38
  platformUserAlbumId: {
33
39
  type: sequelize_1.DataTypes.UUID,
34
40
  allowNull: false,
@@ -63,17 +69,6 @@ class PlatformUserAlbumTrack extends sequelize_1.Model {
63
69
  unique: "platform_user_album_track_platform_user_album_id_platform_track",
64
70
  field: 'platform_track_id'
65
71
  },
66
- stateId: {
67
- type: sequelize_1.DataTypes.SMALLINT,
68
- allowNull: false,
69
- field: 'state_id'
70
- },
71
- id: {
72
- type: sequelize_1.DataTypes.UUID,
73
- allowNull: false,
74
- defaultValue: sequelize_1.DataTypes.UUIDV4,
75
- primaryKey: true
76
- },
77
72
  createdAt: {
78
73
  type: sequelize_1.DataTypes.DATE,
79
74
  allowNull: false,
@@ -85,6 +80,11 @@ class PlatformUserAlbumTrack extends sequelize_1.Model {
85
80
  allowNull: false,
86
81
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
87
82
  field: 'updated_at'
83
+ },
84
+ stateId: {
85
+ type: sequelize_1.DataTypes.SMALLINT,
86
+ allowNull: false,
87
+ field: 'state_id'
88
88
  }
89
89
  }, {
90
90
  sequelize,
@@ -11,14 +11,14 @@ import type { UserBookmarks, UserBookmarksId } from './UserBookmarks';
11
11
  import type { UserComments, UserCommentsId } from './UserComments';
12
12
  import type { UserLikes, UserLikesId } from './UserLikes';
13
13
  export interface PlatformUserPlaylistAttributes {
14
+ id: string;
14
15
  appUserId: string;
15
16
  platformId: number;
16
17
  externalPlaylistId: string;
17
18
  name: string;
18
19
  description?: string;
19
- snapshotId: string;
20
- id: string;
21
20
  public?: boolean;
21
+ snapshotId: string;
22
22
  collaborative: boolean;
23
23
  createDate: Date;
24
24
  updateDate: Date;
@@ -27,17 +27,17 @@ export interface PlatformUserPlaylistAttributes {
27
27
  }
28
28
  export type PlatformUserPlaylistPk = "id";
29
29
  export type PlatformUserPlaylistId = PlatformUserPlaylist[PlatformUserPlaylistPk];
30
- export type PlatformUserPlaylistOptionalAttributes = "description" | "id" | "public" | "createDate" | "updateDate" | "stateId" | "earbugAccessControlPreference";
30
+ export type PlatformUserPlaylistOptionalAttributes = "id" | "description" | "public" | "createDate" | "updateDate" | "stateId" | "earbugAccessControlPreference";
31
31
  export type PlatformUserPlaylistCreationAttributes = Optional<PlatformUserPlaylistAttributes, PlatformUserPlaylistOptionalAttributes>;
32
32
  export declare class PlatformUserPlaylist extends Model<PlatformUserPlaylistAttributes, PlatformUserPlaylistCreationAttributes> implements PlatformUserPlaylistAttributes {
33
+ id: string;
33
34
  appUserId: string;
34
35
  platformId: number;
35
36
  externalPlaylistId: string;
36
37
  name: string;
37
38
  description?: string;
38
- snapshotId: string;
39
- id: string;
40
39
  public?: boolean;
40
+ snapshotId: string;
41
41
  collaborative: boolean;
42
42
  createDate: Date;
43
43
  updateDate: Date;