@earbug/db-models 0.0.59 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/AffinityRelationshipType.d.ts +2 -2
  2. package/dist/AffinityRelationshipType.js +6 -6
  3. package/dist/AppUser.d.ts +5 -5
  4. package/dist/AppUser.js +7 -7
  5. package/dist/AppUserDevice.d.ts +2 -2
  6. package/dist/AppUserDevice.js +6 -6
  7. package/dist/AppUserDeviceClassicBackup20260906.d.ts +23 -0
  8. package/dist/AppUserDeviceClassicBackup20260906.js +46 -0
  9. package/dist/AppUserFollowRelation.d.ts +3 -3
  10. package/dist/AppUserFollowRelation.js +6 -6
  11. package/dist/AppUserPlatformRelation.d.ts +13 -13
  12. package/dist/AppUserPlatformRelation.js +25 -25
  13. package/dist/CanonAlbum.d.ts +5 -5
  14. package/dist/CanonAlbum.js +10 -10
  15. package/dist/CanonArtist.d.ts +5 -5
  16. package/dist/CanonArtist.js +11 -11
  17. package/dist/CanonGenre.d.ts +3 -3
  18. package/dist/CanonGenre.js +6 -6
  19. package/dist/CanonLabel.d.ts +2 -2
  20. package/dist/CanonLabel.js +6 -6
  21. package/dist/CanonMember.d.ts +3 -3
  22. package/dist/CanonMember.js +6 -6
  23. package/dist/CanonMemberExternalReferenceRelation.d.ts +2 -2
  24. package/dist/CanonMemberExternalReferenceRelation.js +5 -5
  25. package/dist/CanonTrack.d.ts +5 -5
  26. package/dist/CanonTrack.js +11 -11
  27. package/dist/ConfigParam.d.ts +2 -2
  28. package/dist/ConfigParam.js +5 -5
  29. package/dist/ExternalReference.d.ts +2 -2
  30. package/dist/ExternalReference.js +5 -5
  31. package/dist/FeedContentType.d.ts +2 -2
  32. package/dist/FeedContentType.js +4 -4
  33. package/dist/GuestUser.d.ts +5 -5
  34. package/dist/GuestUser.js +13 -13
  35. package/dist/JukeboxAccessType.d.ts +2 -2
  36. package/dist/JukeboxAccessType.js +4 -4
  37. package/dist/JukeboxCanonGenreRelation.d.ts +2 -2
  38. package/dist/JukeboxCanonGenreRelation.js +6 -6
  39. package/dist/JukeboxInvite.d.ts +3 -3
  40. package/dist/JukeboxInvite.js +6 -6
  41. package/dist/JukeboxQueueEntry.d.ts +9 -9
  42. package/dist/JukeboxQueueEntry.js +25 -25
  43. package/dist/JukeboxQueueMode.d.ts +2 -2
  44. package/dist/JukeboxQueueMode.js +4 -4
  45. package/dist/JukeboxSession.d.ts +9 -9
  46. package/dist/JukeboxSession.js +20 -20
  47. package/dist/JukeboxSessionArtistAffinity.d.ts +2 -2
  48. package/dist/JukeboxSessionArtistAffinity.js +6 -6
  49. package/dist/JukeboxSessionGenreAffinity.d.ts +2 -2
  50. package/dist/JukeboxSessionGenreAffinity.js +6 -6
  51. package/dist/JukeboxTerminationCondition.d.ts +2 -2
  52. package/dist/JukeboxTerminationCondition.js +4 -4
  53. package/dist/JukeboxType.d.ts +2 -2
  54. package/dist/JukeboxType.js +4 -4
  55. package/dist/JukeboxUser.d.ts +7 -7
  56. package/dist/JukeboxUser.js +20 -20
  57. package/dist/KnexMigrations.d.ts +3 -3
  58. package/dist/KnexMigrations.js +6 -6
  59. package/dist/KnexMigrationsLock.d.ts +3 -3
  60. package/dist/KnexMigrationsLock.js +5 -5
  61. package/dist/MerchItem.d.ts +3 -3
  62. package/dist/MerchItem.js +6 -6
  63. package/dist/MerchOrchestration.d.ts +3 -3
  64. package/dist/MerchOrchestration.js +6 -6
  65. package/dist/MerchPlatform.d.ts +2 -2
  66. package/dist/MerchPlatform.js +6 -6
  67. package/dist/MerchType.d.ts +2 -2
  68. package/dist/MerchType.js +4 -4
  69. package/dist/MetricsDaily.d.ts +3 -3
  70. package/dist/MetricsDaily.js +4 -4
  71. package/dist/NewsSite.d.ts +3 -3
  72. package/dist/NewsSite.js +6 -6
  73. package/dist/Notification.d.ts +13 -13
  74. package/dist/Notification.js +33 -33
  75. package/dist/Platform.d.ts +2 -2
  76. package/dist/Platform.js +7 -7
  77. package/dist/PlatformAlbum.d.ts +5 -5
  78. package/dist/PlatformAlbum.js +10 -10
  79. package/dist/PlatformArtist.d.ts +5 -5
  80. package/dist/PlatformArtist.js +10 -10
  81. package/dist/PlatformGenre.d.ts +2 -2
  82. package/dist/PlatformGenre.js +6 -6
  83. package/dist/PlatformTrack.d.ts +3 -3
  84. package/dist/PlatformTrack.js +6 -6
  85. package/dist/PlatformUserAlbum.d.ts +2 -2
  86. package/dist/PlatformUserAlbum.js +6 -6
  87. package/dist/PlatformUserAlbumTrack.d.ts +4 -4
  88. package/dist/PlatformUserAlbumTrack.js +11 -11
  89. package/dist/PlatformUserPlaylist.d.ts +5 -5
  90. package/dist/PlatformUserPlaylist.js +11 -11
  91. package/dist/PlatformUserPlaylistArtistAffinity.d.ts +4 -4
  92. package/dist/PlatformUserPlaylistArtistAffinity.js +12 -12
  93. package/dist/PlatformUserPlaylistGenreAffinity.d.ts +2 -2
  94. package/dist/PlatformUserPlaylistGenreAffinity.js +6 -6
  95. package/dist/PlatformUserPlaylistTrack.d.ts +7 -7
  96. package/dist/PlatformUserPlaylistTrack.js +17 -17
  97. package/dist/PlaybackStatus.d.ts +2 -2
  98. package/dist/PlaybackStatus.js +4 -4
  99. package/dist/RadioShow.d.ts +3 -3
  100. package/dist/RadioShow.js +6 -6
  101. package/dist/RadioShowMedia.d.ts +3 -3
  102. package/dist/RadioShowMedia.js +6 -6
  103. package/dist/RadioShowPlacement.d.ts +3 -3
  104. package/dist/RadioShowPlacement.js +6 -6
  105. package/dist/RadioShowPublishRequests.d.ts +3 -3
  106. package/dist/RadioShowPublishRequests.js +6 -6
  107. package/dist/State.d.ts +2 -2
  108. package/dist/State.js +4 -4
  109. package/dist/UnmatchedAlbum.d.ts +2 -2
  110. package/dist/UnmatchedAlbum.js +6 -6
  111. package/dist/UnmatchedArtist.d.ts +2 -2
  112. package/dist/UnmatchedArtist.js +6 -6
  113. package/dist/UserAbuseReports.d.ts +7 -7
  114. package/dist/UserAbuseReports.js +18 -18
  115. package/dist/UserAffinity.d.ts +2 -2
  116. package/dist/UserAffinity.js +6 -6
  117. package/dist/UserArtistAffinity.d.ts +2 -2
  118. package/dist/UserArtistAffinity.js +6 -6
  119. package/dist/UserBookmarks.d.ts +3 -3
  120. package/dist/UserBookmarks.js +6 -6
  121. package/dist/UserComments.d.ts +5 -5
  122. package/dist/UserComments.js +12 -12
  123. package/dist/UserContacts.d.ts +3 -3
  124. package/dist/UserContacts.js +7 -7
  125. package/dist/UserEngagementFactor.d.ts +2 -2
  126. package/dist/UserEngagementFactor.js +6 -6
  127. package/dist/UserGenreAffinity.d.ts +2 -2
  128. package/dist/UserGenreAffinity.js +6 -6
  129. package/dist/UserLikes.d.ts +3 -3
  130. package/dist/UserLikes.js +6 -6
  131. package/dist/UserMessages.d.ts +5 -5
  132. package/dist/UserMessages.js +15 -15
  133. package/dist/Versus.d.ts +5 -5
  134. package/dist/Versus.js +11 -11
  135. package/dist/VersusCoCreator.d.ts +4 -4
  136. package/dist/VersusCoCreator.js +12 -12
  137. package/dist/VersusOption.d.ts +3 -3
  138. package/dist/VersusOption.js +6 -6
  139. package/dist/VersusPublishIssue.d.ts +3 -3
  140. package/dist/VersusPublishIssue.js +6 -6
  141. package/dist/VersusQuestion.d.ts +2 -2
  142. package/dist/VersusQuestion.js +6 -6
  143. package/dist/VersusVote.d.ts +2 -2
  144. package/dist/VersusVote.js +6 -6
  145. package/dist/init-models.d.ts +349 -3
  146. package/dist/init-models.js +905 -1
  147. package/package.json +5 -2
  148. package/.github/workflows/publish.yaml +0 -56
  149. package/.nvmrc +0 -1
  150. package/dist/CanonAlbumImageHarvested.d.ts +0 -30
  151. package/dist/CanonAlbumImageHarvested.js +0 -70
  152. package/dist/CanonArtistImageHarvested.d.ts +0 -30
  153. package/dist/CanonArtistImageHarvested.js +0 -70
  154. package/model_options.json +0 -3
  155. package/models/AccessControlPreference.ts +0 -53
  156. package/models/AffinityRelationshipType.ts +0 -96
  157. package/models/AffinityTier.ts +0 -131
  158. package/models/AppUser.ts +0 -577
  159. package/models/AppUserDevice.ts +0 -101
  160. package/models/AppUserFollowRelation.ts +0 -128
  161. package/models/AppUserPlatformRelation.ts +0 -150
  162. package/models/CanonAlbum.ts +0 -229
  163. package/models/CanonAlbumExternalReferenceRelation.ts +0 -92
  164. package/models/CanonAlbumGenreRelation.ts +0 -86
  165. package/models/CanonAlbumImageHarvested.ts +0 -98
  166. package/models/CanonAlbumLabelRelation.ts +0 -86
  167. package/models/CanonAlbumTrackRelation.ts +0 -92
  168. package/models/CanonArtist.ts +0 -356
  169. package/models/CanonArtistAlbumRelation.ts +0 -92
  170. package/models/CanonArtistExternalReferenceRelation.ts +0 -92
  171. package/models/CanonArtistGenreRelation.ts +0 -86
  172. package/models/CanonArtistImageHarvested.ts +0 -98
  173. package/models/CanonArtistMemberRelation.ts +0 -86
  174. package/models/CanonArtistTrackRelation.ts +0 -92
  175. package/models/CanonGenre.ts +0 -273
  176. package/models/CanonGenreExternalReferenceRelation.ts +0 -92
  177. package/models/CanonLabel.ts +0 -129
  178. package/models/CanonLabelExternalReferenceRelation.ts +0 -92
  179. package/models/CanonMember.ts +0 -130
  180. package/models/CanonMemberExternalReferenceRelation.ts +0 -99
  181. package/models/CanonToPlatformAlbumRelation.ts +0 -92
  182. package/models/CanonToPlatformArtistRelation.ts +0 -92
  183. package/models/CanonToPlatformGenreRelation.ts +0 -86
  184. package/models/CanonToPlatformTrackRelation.ts +0 -92
  185. package/models/CanonTrack.ts +0 -232
  186. package/models/ConfigParam.ts +0 -62
  187. package/models/ExternalReference.ts +0 -201
  188. package/models/FeedConfig.ts +0 -65
  189. package/models/FeedContentType.ts +0 -124
  190. package/models/GuestUser.ts +0 -137
  191. package/models/JukeboxAccessType.ts +0 -60
  192. package/models/JukeboxCanonGenreRelation.ts +0 -108
  193. package/models/JukeboxInvite.ts +0 -125
  194. package/models/JukeboxQueueEntry.ts +0 -247
  195. package/models/JukeboxQueueMode.ts +0 -60
  196. package/models/JukeboxSession.ts +0 -334
  197. package/models/JukeboxSessionArtistAffinity.ts +0 -136
  198. package/models/JukeboxSessionGenreAffinity.ts +0 -136
  199. package/models/JukeboxStatus.ts +0 -58
  200. package/models/JukeboxTerminationCondition.ts +0 -60
  201. package/models/JukeboxType.ts +0 -60
  202. package/models/JukeboxUser.ts +0 -182
  203. package/models/JukeboxUserType.ts +0 -58
  204. package/models/KnexMigrations.ts +0 -60
  205. package/models/KnexMigrationsLock.ts +0 -48
  206. package/models/MerchItem.ts +0 -198
  207. package/models/MerchOrchestration.ts +0 -130
  208. package/models/MerchPlatform.ts +0 -95
  209. package/models/MerchType.ts +0 -89
  210. package/models/MetricsDaily.ts +0 -79
  211. package/models/MetricsEvent.ts +0 -124
  212. package/models/NewsArticle.ts +0 -177
  213. package/models/NewsPlatform.ts +0 -76
  214. package/models/NewsSite.ts +0 -75
  215. package/models/Notification.ts +0 -214
  216. package/models/NotificationType.ts +0 -66
  217. package/models/PauseStatusType.ts +0 -58
  218. package/models/Platform.ts +0 -189
  219. package/models/PlatformAlbum.ts +0 -398
  220. package/models/PlatformAlbumGenreRelation.ts +0 -86
  221. package/models/PlatformAlbumTrackRelation.ts +0 -92
  222. package/models/PlatformArtist.ts +0 -358
  223. package/models/PlatformArtistAlbumRelation.ts +0 -92
  224. package/models/PlatformArtistGenreRelation.ts +0 -86
  225. package/models/PlatformArtistTrackRelation.ts +0 -92
  226. package/models/PlatformGenre.ts +0 -194
  227. package/models/PlatformTrack.ts +0 -339
  228. package/models/PlatformTrackGenreRelation.ts +0 -86
  229. package/models/PlatformUserAlbum.ts +0 -152
  230. package/models/PlatformUserAlbumTrack.ts +0 -138
  231. package/models/PlatformUserPlaylist.ts +0 -260
  232. package/models/PlatformUserPlaylistArtistAffinity.ts +0 -136
  233. package/models/PlatformUserPlaylistGenreAffinity.ts +0 -136
  234. package/models/PlatformUserPlaylistTrack.ts +0 -162
  235. package/models/PlaybackStatus.ts +0 -47
  236. package/models/PlaybackStatusType.ts +0 -58
  237. package/models/RadioShow.ts +0 -209
  238. package/models/RadioShowGenres.ts +0 -107
  239. package/models/RadioShowMedia.ts +0 -181
  240. package/models/RadioShowPlacement.ts +0 -115
  241. package/models/RadioShowPublishRequests.ts +0 -86
  242. package/models/State.ts +0 -86
  243. package/models/TrackDeletionReason.ts +0 -58
  244. package/models/UnmatchedAlbum.ts +0 -66
  245. package/models/UnmatchedArtist.ts +0 -81
  246. package/models/UserAbuseReports.ts +0 -232
  247. package/models/UserAffinity.ts +0 -117
  248. package/models/UserArtistAffinity.ts +0 -136
  249. package/models/UserBookmarks.ts +0 -235
  250. package/models/UserComments.ts +0 -271
  251. package/models/UserContacts.ts +0 -155
  252. package/models/UserEngagementFactor.ts +0 -109
  253. package/models/UserGenreAffinity.ts +0 -136
  254. package/models/UserLikes.ts +0 -235
  255. package/models/UserMessages.ts +0 -189
  256. package/models/Versus.ts +0 -438
  257. package/models/VersusAccessType.ts +0 -66
  258. package/models/VersusCoCreator.ts +0 -111
  259. package/models/VersusCreatorScope.ts +0 -66
  260. package/models/VersusEndMode.ts +0 -66
  261. package/models/VersusEndTimerDuration.ts +0 -81
  262. package/models/VersusEndVoteThreshold.ts +0 -67
  263. package/models/VersusEntityKind.ts +0 -79
  264. package/models/VersusOption.ts +0 -258
  265. package/models/VersusPublishIssue.ts +0 -146
  266. package/models/VersusQuestion.ts +0 -123
  267. package/models/VersusQuestionVariableType.ts +0 -66
  268. package/models/VersusVote.ts +0 -99
  269. package/models/VersusVotingListType.ts +0 -66
  270. package/models/VersusVotingMode.ts +0 -66
  271. package/models/index.ts +0 -3
  272. package/models/init-models.ts +0 -14
  273. package/models/initDb.ts +0 -72
  274. package/models/rdsCaBundle.ts +0 -5
  275. package/scripts/update-rds-ca-bundle.mjs +0 -44
  276. package/tsconfig.json +0 -52
@@ -1,66 +0,0 @@
1
- import * as Sequelize from 'sequelize';
2
- import { DataTypes, Model, Optional } from 'sequelize';
3
- import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
4
-
5
- export interface UnmatchedAlbumAttributes {
6
- platformAlbumId: string;
7
- id: string;
8
- createDate: Date;
9
- }
10
-
11
- export type UnmatchedAlbumPk = "id";
12
- export type UnmatchedAlbumId = UnmatchedAlbum[UnmatchedAlbumPk];
13
- export type UnmatchedAlbumOptionalAttributes = "id" | "createDate";
14
- export type UnmatchedAlbumCreationAttributes = Optional<UnmatchedAlbumAttributes, UnmatchedAlbumOptionalAttributes>;
15
-
16
- export class UnmatchedAlbum extends Model<UnmatchedAlbumAttributes, UnmatchedAlbumCreationAttributes> implements UnmatchedAlbumAttributes {
17
- platformAlbumId!: string;
18
- id!: string;
19
- createDate!: Date;
20
-
21
- // UnmatchedAlbum belongsTo PlatformAlbum via platformAlbumId
22
- platformAlbum!: PlatformAlbum;
23
- getPlatformAlbum!: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
24
- setPlatformAlbum!: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
25
- createPlatformAlbum!: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
26
-
27
- static initModel(sequelize: Sequelize.Sequelize): typeof UnmatchedAlbum {
28
- return UnmatchedAlbum.init({
29
- platformAlbumId: {
30
- type: DataTypes.UUID,
31
- allowNull: false,
32
- references: {
33
- model: 'platform_album',
34
- key: 'id'
35
- },
36
- field: 'platform_album_id'
37
- },
38
- id: {
39
- type: DataTypes.UUID,
40
- allowNull: false,
41
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
42
- primaryKey: true
43
- },
44
- createDate: {
45
- type: DataTypes.DATE,
46
- allowNull: false,
47
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
48
- field: 'create_date'
49
- }
50
- }, {
51
- sequelize,
52
- tableName: 'unmatched_album',
53
- schema: 'eb',
54
- timestamps: false,
55
- indexes: [
56
- {
57
- name: "unmatched_album_pkey",
58
- unique: true,
59
- fields: [
60
- { name: "id" },
61
- ]
62
- },
63
- ]
64
- });
65
- }
66
- }
@@ -1,81 +0,0 @@
1
- import * as Sequelize from 'sequelize';
2
- import { DataTypes, Model, Optional } from 'sequelize';
3
- import type { Platform, PlatformId } from './Platform';
4
-
5
- export interface UnmatchedArtistAttributes {
6
- platformId: number;
7
- externalArtistId: number;
8
- id: string;
9
- createDate: Date;
10
- updateDate: Date;
11
- }
12
-
13
- export type UnmatchedArtistPk = "id";
14
- export type UnmatchedArtistId = UnmatchedArtist[UnmatchedArtistPk];
15
- export type UnmatchedArtistOptionalAttributes = "id" | "createDate" | "updateDate";
16
- export type UnmatchedArtistCreationAttributes = Optional<UnmatchedArtistAttributes, UnmatchedArtistOptionalAttributes>;
17
-
18
- export class UnmatchedArtist extends Model<UnmatchedArtistAttributes, UnmatchedArtistCreationAttributes> implements UnmatchedArtistAttributes {
19
- platformId!: number;
20
- externalArtistId!: number;
21
- id!: string;
22
- createDate!: Date;
23
- updateDate!: Date;
24
-
25
- // UnmatchedArtist belongsTo Platform via platformId
26
- platform!: Platform;
27
- getPlatform!: Sequelize.BelongsToGetAssociationMixin<Platform>;
28
- setPlatform!: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
29
- createPlatform!: Sequelize.BelongsToCreateAssociationMixin<Platform>;
30
-
31
- static initModel(sequelize: Sequelize.Sequelize): typeof UnmatchedArtist {
32
- return UnmatchedArtist.init({
33
- platformId: {
34
- type: DataTypes.SMALLINT,
35
- allowNull: false,
36
- references: {
37
- model: 'platform',
38
- key: 'id'
39
- },
40
- field: 'platform_id'
41
- },
42
- externalArtistId: {
43
- type: DataTypes.INTEGER,
44
- allowNull: false,
45
- field: 'external_artist_id'
46
- },
47
- id: {
48
- type: DataTypes.UUID,
49
- allowNull: false,
50
- defaultValue: Sequelize.Sequelize.fn('uuid_generate_v1'),
51
- primaryKey: true
52
- },
53
- createDate: {
54
- type: DataTypes.DATE,
55
- allowNull: false,
56
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
57
- field: 'create_date'
58
- },
59
- updateDate: {
60
- type: DataTypes.DATE,
61
- allowNull: false,
62
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
63
- field: 'update_date'
64
- }
65
- }, {
66
- sequelize,
67
- tableName: 'unmatched_artist',
68
- schema: 'eb',
69
- timestamps: false,
70
- indexes: [
71
- {
72
- name: "unmatched_artist_pkey",
73
- unique: true,
74
- fields: [
75
- { name: "id" },
76
- ]
77
- },
78
- ]
79
- });
80
- }
81
- }
@@ -1,232 +0,0 @@
1
- import * as Sequelize from 'sequelize';
2
- import { DataTypes, Model, Optional } from 'sequelize';
3
- import type { AppUser, AppUserId } from './AppUser';
4
- import type { JukeboxSession, JukeboxSessionId } from './JukeboxSession';
5
- import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
6
- import type { RadioShow, RadioShowId } from './RadioShow';
7
- import type { RadioShowMedia, RadioShowMediaId } from './RadioShowMedia';
8
- import type { UserComments, UserCommentsId } from './UserComments';
9
- import type { UserMessages, UserMessagesId } from './UserMessages';
10
-
11
- export interface UserAbuseReportsAttributes {
12
- reporterUserId: string;
13
- jukeboxId?: string;
14
- jukeboxChatMessageId?: string;
15
- radioShowId?: string;
16
- radioShowMediaId?: string;
17
- playlistId?: string;
18
- versusThemeTextId?: string;
19
- commentId?: string;
20
- directMessageId?: string;
21
- id: string;
22
- reportDate: Date;
23
- updateDate: Date;
24
- }
25
-
26
- export type UserAbuseReportsPk = "id";
27
- export type UserAbuseReportsId = UserAbuseReports[UserAbuseReportsPk];
28
- export type UserAbuseReportsOptionalAttributes = "jukeboxId" | "jukeboxChatMessageId" | "radioShowId" | "radioShowMediaId" | "playlistId" | "versusThemeTextId" | "commentId" | "directMessageId" | "id" | "reportDate" | "updateDate";
29
- export type UserAbuseReportsCreationAttributes = Optional<UserAbuseReportsAttributes, UserAbuseReportsOptionalAttributes>;
30
-
31
- export class UserAbuseReports extends Model<UserAbuseReportsAttributes, UserAbuseReportsCreationAttributes> implements UserAbuseReportsAttributes {
32
- reporterUserId!: string;
33
- jukeboxId?: string;
34
- jukeboxChatMessageId?: string;
35
- radioShowId?: string;
36
- radioShowMediaId?: string;
37
- playlistId?: string;
38
- versusThemeTextId?: string;
39
- commentId?: string;
40
- directMessageId?: string;
41
- id!: string;
42
- reportDate!: Date;
43
- updateDate!: Date;
44
-
45
- // UserAbuseReports belongsTo AppUser via reporterUserId
46
- reporterUser!: AppUser;
47
- getReporterUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
48
- setReporterUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
49
- createReporterUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
50
- // UserAbuseReports belongsTo JukeboxSession via jukeboxId
51
- jukebox!: JukeboxSession;
52
- getJukebox!: Sequelize.BelongsToGetAssociationMixin<JukeboxSession>;
53
- setJukebox!: Sequelize.BelongsToSetAssociationMixin<JukeboxSession, JukeboxSessionId>;
54
- createJukebox!: Sequelize.BelongsToCreateAssociationMixin<JukeboxSession>;
55
- // UserAbuseReports belongsTo PlatformUserPlaylist via playlistId
56
- playlist!: PlatformUserPlaylist;
57
- getPlaylist!: Sequelize.BelongsToGetAssociationMixin<PlatformUserPlaylist>;
58
- setPlaylist!: Sequelize.BelongsToSetAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
59
- createPlaylist!: Sequelize.BelongsToCreateAssociationMixin<PlatformUserPlaylist>;
60
- // UserAbuseReports belongsTo RadioShow via radioShowId
61
- radioShow!: RadioShow;
62
- getRadioShow!: Sequelize.BelongsToGetAssociationMixin<RadioShow>;
63
- setRadioShow!: Sequelize.BelongsToSetAssociationMixin<RadioShow, RadioShowId>;
64
- createRadioShow!: Sequelize.BelongsToCreateAssociationMixin<RadioShow>;
65
- // UserAbuseReports belongsTo RadioShowMedia via radioShowMediaId
66
- radioShowMedium!: RadioShowMedia;
67
- getRadioShowMedium!: Sequelize.BelongsToGetAssociationMixin<RadioShowMedia>;
68
- setRadioShowMedium!: Sequelize.BelongsToSetAssociationMixin<RadioShowMedia, RadioShowMediaId>;
69
- createRadioShowMedium!: Sequelize.BelongsToCreateAssociationMixin<RadioShowMedia>;
70
- // UserAbuseReports belongsTo UserComments via commentId
71
- comment!: UserComments;
72
- getComment!: Sequelize.BelongsToGetAssociationMixin<UserComments>;
73
- setComment!: Sequelize.BelongsToSetAssociationMixin<UserComments, UserCommentsId>;
74
- createComment!: Sequelize.BelongsToCreateAssociationMixin<UserComments>;
75
- // UserAbuseReports belongsTo UserMessages via directMessageId
76
- directMessage!: UserMessages;
77
- getDirectMessage!: Sequelize.BelongsToGetAssociationMixin<UserMessages>;
78
- setDirectMessage!: Sequelize.BelongsToSetAssociationMixin<UserMessages, UserMessagesId>;
79
- createDirectMessage!: Sequelize.BelongsToCreateAssociationMixin<UserMessages>;
80
-
81
- static initModel(sequelize: Sequelize.Sequelize): typeof UserAbuseReports {
82
- return UserAbuseReports.init({
83
- reporterUserId: {
84
- type: DataTypes.UUID,
85
- allowNull: false,
86
- references: {
87
- model: 'app_user',
88
- key: 'id'
89
- },
90
- field: 'reporter_user_id'
91
- },
92
- jukeboxId: {
93
- type: DataTypes.UUID,
94
- allowNull: true,
95
- references: {
96
- model: 'jukebox_session',
97
- key: 'id'
98
- },
99
- field: 'jukebox_id'
100
- },
101
- jukeboxChatMessageId: {
102
- type: DataTypes.STRING(50),
103
- allowNull: true,
104
- field: 'jukebox_chat_message_id'
105
- },
106
- radioShowId: {
107
- type: DataTypes.UUID,
108
- allowNull: true,
109
- references: {
110
- model: 'radio_show',
111
- key: 'id'
112
- },
113
- field: 'radio_show_id'
114
- },
115
- radioShowMediaId: {
116
- type: DataTypes.UUID,
117
- allowNull: true,
118
- references: {
119
- model: 'radio_show_media',
120
- key: 'id'
121
- },
122
- field: 'radio_show_media_id'
123
- },
124
- playlistId: {
125
- type: DataTypes.UUID,
126
- allowNull: true,
127
- references: {
128
- model: 'platform_user_playlist',
129
- key: 'id'
130
- },
131
- field: 'playlist_id'
132
- },
133
- versusThemeTextId: {
134
- type: DataTypes.UUID,
135
- allowNull: true,
136
- field: 'versus_theme_text_id'
137
- },
138
- commentId: {
139
- type: DataTypes.UUID,
140
- allowNull: true,
141
- references: {
142
- model: 'user_comments',
143
- key: 'id'
144
- },
145
- field: 'comment_id'
146
- },
147
- directMessageId: {
148
- type: DataTypes.UUID,
149
- allowNull: true,
150
- references: {
151
- model: 'user_messages',
152
- key: 'id'
153
- },
154
- field: 'direct_message_id'
155
- },
156
- id: {
157
- type: DataTypes.UUID,
158
- allowNull: false,
159
- defaultValue: DataTypes.UUIDV4,
160
- primaryKey: true
161
- },
162
- reportDate: {
163
- type: DataTypes.DATE,
164
- allowNull: false,
165
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
166
- field: 'report_date'
167
- },
168
- updateDate: {
169
- type: DataTypes.DATE,
170
- allowNull: false,
171
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
172
- field: 'update_date'
173
- }
174
- }, {
175
- sequelize,
176
- tableName: 'user_abuse_reports',
177
- schema: 'eb',
178
- timestamps: false,
179
- indexes: [
180
- {
181
- name: "idx_user_abuse_reports_comment",
182
- fields: [
183
- { name: "comment_id" },
184
- ]
185
- },
186
- {
187
- name: "idx_user_abuse_reports_direct_message",
188
- fields: [
189
- { name: "direct_message_id" },
190
- ]
191
- },
192
- {
193
- name: "idx_user_abuse_reports_jukebox",
194
- fields: [
195
- { name: "jukebox_id" },
196
- ]
197
- },
198
- {
199
- name: "idx_user_abuse_reports_playlist",
200
- fields: [
201
- { name: "playlist_id" },
202
- ]
203
- },
204
- {
205
- name: "idx_user_abuse_reports_radio_show",
206
- fields: [
207
- { name: "radio_show_id" },
208
- ]
209
- },
210
- {
211
- name: "idx_user_abuse_reports_radio_show_media",
212
- fields: [
213
- { name: "radio_show_media_id" },
214
- ]
215
- },
216
- {
217
- name: "idx_user_abuse_reports_reporter",
218
- fields: [
219
- { name: "reporter_user_id" },
220
- ]
221
- },
222
- {
223
- name: "user_abuse_reports_pkey",
224
- unique: true,
225
- fields: [
226
- { name: "id" },
227
- ]
228
- },
229
- ]
230
- });
231
- }
232
- }
@@ -1,117 +0,0 @@
1
- import * as Sequelize from 'sequelize';
2
- import { DataTypes, Model, Optional } from 'sequelize';
3
- import type { AffinityRelationshipType, AffinityRelationshipTypeId } from './AffinityRelationshipType';
4
- import type { AppUser, AppUserId } from './AppUser';
5
-
6
- export interface UserAffinityAttributes {
7
- userId: string;
8
- affinityRelationshipTypeId: string;
9
- relatedId: string;
10
- id: string;
11
- createDate?: Date;
12
- updateDate?: Date;
13
- }
14
-
15
- export type UserAffinityPk = "id";
16
- export type UserAffinityId = UserAffinity[UserAffinityPk];
17
- export type UserAffinityOptionalAttributes = "id" | "createDate" | "updateDate";
18
- export type UserAffinityCreationAttributes = Optional<UserAffinityAttributes, UserAffinityOptionalAttributes>;
19
-
20
- export class UserAffinity extends Model<UserAffinityAttributes, UserAffinityCreationAttributes> implements UserAffinityAttributes {
21
- userId!: string;
22
- affinityRelationshipTypeId!: string;
23
- relatedId!: string;
24
- id!: string;
25
- createDate?: Date;
26
- updateDate?: Date;
27
-
28
- // UserAffinity belongsTo AffinityRelationshipType via affinityRelationshipTypeId
29
- affinityRelationshipType!: AffinityRelationshipType;
30
- getAffinityRelationshipType!: Sequelize.BelongsToGetAssociationMixin<AffinityRelationshipType>;
31
- setAffinityRelationshipType!: Sequelize.BelongsToSetAssociationMixin<AffinityRelationshipType, AffinityRelationshipTypeId>;
32
- createAffinityRelationshipType!: Sequelize.BelongsToCreateAssociationMixin<AffinityRelationshipType>;
33
- // UserAffinity belongsTo AppUser via userId
34
- user!: AppUser;
35
- getUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
36
- setUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
37
- createUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
38
-
39
- static initModel(sequelize: Sequelize.Sequelize): typeof UserAffinity {
40
- return UserAffinity.init({
41
- userId: {
42
- type: DataTypes.UUID,
43
- allowNull: false,
44
- references: {
45
- model: 'app_user',
46
- key: 'id'
47
- },
48
- unique: "user_affinity_user_id_affinity_relationship_type_id_related_id_",
49
- field: 'user_id'
50
- },
51
- affinityRelationshipTypeId: {
52
- type: DataTypes.UUID,
53
- allowNull: false,
54
- references: {
55
- model: 'affinity_relationship_type',
56
- key: 'id'
57
- },
58
- unique: "user_affinity_user_id_affinity_relationship_type_id_related_id_",
59
- field: 'affinity_relationship_type_id'
60
- },
61
- relatedId: {
62
- type: DataTypes.UUID,
63
- allowNull: false,
64
- unique: "user_affinity_user_id_affinity_relationship_type_id_related_id_",
65
- field: 'related_id'
66
- },
67
- id: {
68
- type: DataTypes.UUID,
69
- allowNull: false,
70
- defaultValue: DataTypes.UUIDV4,
71
- primaryKey: true
72
- },
73
- createDate: {
74
- type: DataTypes.DATE,
75
- allowNull: true,
76
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
77
- field: 'create_date'
78
- },
79
- updateDate: {
80
- type: DataTypes.DATE,
81
- allowNull: true,
82
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
83
- field: 'update_date'
84
- }
85
- }, {
86
- sequelize,
87
- tableName: 'user_affinity',
88
- schema: 'eb',
89
- timestamps: false,
90
- indexes: [
91
- {
92
- name: "user_affinity_pkey",
93
- unique: true,
94
- fields: [
95
- { name: "id" },
96
- ]
97
- },
98
- {
99
- name: "user_affinity_user_id_affinity_relationship_type_id_index",
100
- fields: [
101
- { name: "user_id" },
102
- { name: "affinity_relationship_type_id" },
103
- ]
104
- },
105
- {
106
- name: "user_affinity_user_id_affinity_relationship_type_id_related_id_",
107
- unique: true,
108
- fields: [
109
- { name: "user_id" },
110
- { name: "affinity_relationship_type_id" },
111
- { name: "related_id" },
112
- ]
113
- },
114
- ]
115
- });
116
- }
117
- }
@@ -1,136 +0,0 @@
1
- import * as Sequelize from 'sequelize';
2
- import { DataTypes, Model, Optional } from 'sequelize';
3
- import type { AffinityTier, AffinityTierId } from './AffinityTier';
4
- import type { AppUser, AppUserId } from './AppUser';
5
- import type { CanonArtist, CanonArtistId } from './CanonArtist';
6
-
7
- export interface UserArtistAffinityAttributes {
8
- userId: string;
9
- canonArtistId: string;
10
- affinityTierId: number;
11
- rank: number;
12
- id: string;
13
- createdAt: Date;
14
- updatedAt: Date;
15
- }
16
-
17
- export type UserArtistAffinityPk = "id";
18
- export type UserArtistAffinityId = UserArtistAffinity[UserArtistAffinityPk];
19
- export type UserArtistAffinityOptionalAttributes = "id" | "createdAt" | "updatedAt";
20
- export type UserArtistAffinityCreationAttributes = Optional<UserArtistAffinityAttributes, UserArtistAffinityOptionalAttributes>;
21
-
22
- export class UserArtistAffinity extends Model<UserArtistAffinityAttributes, UserArtistAffinityCreationAttributes> implements UserArtistAffinityAttributes {
23
- userId!: string;
24
- canonArtistId!: string;
25
- affinityTierId!: number;
26
- rank!: number;
27
- id!: string;
28
- createdAt!: Date;
29
- updatedAt!: Date;
30
-
31
- // UserArtistAffinity belongsTo AffinityTier via affinityTierId
32
- affinityTier!: AffinityTier;
33
- getAffinityTier!: Sequelize.BelongsToGetAssociationMixin<AffinityTier>;
34
- setAffinityTier!: Sequelize.BelongsToSetAssociationMixin<AffinityTier, AffinityTierId>;
35
- createAffinityTier!: Sequelize.BelongsToCreateAssociationMixin<AffinityTier>;
36
- // UserArtistAffinity belongsTo AppUser via userId
37
- user!: AppUser;
38
- getUser!: Sequelize.BelongsToGetAssociationMixin<AppUser>;
39
- setUser!: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
40
- createUser!: Sequelize.BelongsToCreateAssociationMixin<AppUser>;
41
- // UserArtistAffinity belongsTo CanonArtist via canonArtistId
42
- canonArtist!: CanonArtist;
43
- getCanonArtist!: Sequelize.BelongsToGetAssociationMixin<CanonArtist>;
44
- setCanonArtist!: Sequelize.BelongsToSetAssociationMixin<CanonArtist, CanonArtistId>;
45
- createCanonArtist!: Sequelize.BelongsToCreateAssociationMixin<CanonArtist>;
46
-
47
- static initModel(sequelize: Sequelize.Sequelize): typeof UserArtistAffinity {
48
- return UserArtistAffinity.init({
49
- userId: {
50
- type: DataTypes.UUID,
51
- allowNull: false,
52
- references: {
53
- model: 'app_user',
54
- key: 'id'
55
- },
56
- unique: "user_artist_affinity_user_id_canon_artist_id_unique",
57
- field: 'user_id'
58
- },
59
- canonArtistId: {
60
- type: DataTypes.UUID,
61
- allowNull: false,
62
- references: {
63
- model: 'canon_artist',
64
- key: 'id'
65
- },
66
- unique: "user_artist_affinity_user_id_canon_artist_id_unique",
67
- field: 'canon_artist_id'
68
- },
69
- affinityTierId: {
70
- type: DataTypes.SMALLINT,
71
- allowNull: false,
72
- references: {
73
- model: 'affinity_tier',
74
- key: 'id'
75
- },
76
- field: 'affinity_tier_id'
77
- },
78
- rank: {
79
- type: DataTypes.INTEGER,
80
- allowNull: false
81
- },
82
- id: {
83
- type: DataTypes.UUID,
84
- allowNull: false,
85
- defaultValue: DataTypes.UUIDV4,
86
- primaryKey: true
87
- },
88
- createdAt: {
89
- type: DataTypes.DATE,
90
- allowNull: false,
91
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
92
- field: 'created_at'
93
- },
94
- updatedAt: {
95
- type: DataTypes.DATE,
96
- allowNull: false,
97
- defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
98
- field: 'updated_at'
99
- }
100
- }, {
101
- sequelize,
102
- tableName: 'user_artist_affinity',
103
- schema: 'eb',
104
- timestamps: false,
105
- indexes: [
106
- {
107
- name: "idx_user_artist_affinity_artist",
108
- fields: [
109
- { name: "canon_artist_id" },
110
- ]
111
- },
112
- {
113
- name: "idx_user_artist_affinity_session",
114
- fields: [
115
- { name: "user_id" },
116
- ]
117
- },
118
- {
119
- name: "user_artist_affinity_pkey",
120
- unique: true,
121
- fields: [
122
- { name: "id" },
123
- ]
124
- },
125
- {
126
- name: "user_artist_affinity_user_id_canon_artist_id_unique",
127
- unique: true,
128
- fields: [
129
- { name: "user_id" },
130
- { name: "canon_artist_id" },
131
- ]
132
- },
133
- ]
134
- });
135
- }
136
- }