@earbug/db-models 0.0.1

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 (211) hide show
  1. package/.nvmrc +1 -0
  2. package/dist/AppUser.d.ts +161 -0
  3. package/dist/AppUser.js +121 -0
  4. package/dist/AppUserDevice.d.ts +26 -0
  5. package/dist/AppUserDevice.js +88 -0
  6. package/dist/AppUserFollowRelation.d.ts +34 -0
  7. package/dist/AppUserFollowRelation.js +113 -0
  8. package/dist/AppUserPlatformRelation.d.ts +43 -0
  9. package/dist/AppUserPlatformRelation.js +132 -0
  10. package/dist/CanonAlbum.d.ts +119 -0
  11. package/dist/CanonAlbum.js +117 -0
  12. package/dist/CanonAlbumExternalReferenceRelation.d.ts +31 -0
  13. package/dist/CanonAlbumExternalReferenceRelation.js +86 -0
  14. package/dist/CanonAlbumGenreRelation.d.ts +29 -0
  15. package/dist/CanonAlbumGenreRelation.js +82 -0
  16. package/dist/CanonAlbumImageHarvested.d.ts +30 -0
  17. package/dist/CanonAlbumImageHarvested.js +78 -0
  18. package/dist/CanonAlbumLabelRelation.d.ts +29 -0
  19. package/dist/CanonAlbumLabelRelation.js +82 -0
  20. package/dist/CanonAlbumTrackRelation.d.ts +29 -0
  21. package/dist/CanonAlbumTrackRelation.js +82 -0
  22. package/dist/CanonArtist.d.ts +91 -0
  23. package/dist/CanonArtist.js +114 -0
  24. package/dist/CanonArtistAlbumRelation.d.ts +29 -0
  25. package/dist/CanonArtistAlbumRelation.js +82 -0
  26. package/dist/CanonArtistExternalReferenceRelation.d.ts +31 -0
  27. package/dist/CanonArtistExternalReferenceRelation.js +86 -0
  28. package/dist/CanonArtistGenreRelation.d.ts +29 -0
  29. package/dist/CanonArtistGenreRelation.js +82 -0
  30. package/dist/CanonArtistImageHarvested.d.ts +30 -0
  31. package/dist/CanonArtistImageHarvested.js +70 -0
  32. package/dist/CanonArtistMemberRelation.d.ts +29 -0
  33. package/dist/CanonArtistMemberRelation.js +82 -0
  34. package/dist/CanonArtistTrackRelation.d.ts +29 -0
  35. package/dist/CanonArtistTrackRelation.js +82 -0
  36. package/dist/CanonGenre.d.ts +133 -0
  37. package/dist/CanonGenre.js +93 -0
  38. package/dist/CanonGenreExternalReferenceRelation.d.ts +31 -0
  39. package/dist/CanonGenreExternalReferenceRelation.js +86 -0
  40. package/dist/CanonLabel.d.ts +69 -0
  41. package/dist/CanonLabel.js +83 -0
  42. package/dist/CanonLabelExternalReferenceRelation.d.ts +31 -0
  43. package/dist/CanonLabelExternalReferenceRelation.js +86 -0
  44. package/dist/CanonMember.d.ts +71 -0
  45. package/dist/CanonMember.js +82 -0
  46. package/dist/CanonMemberExternalReferenceRelation.d.ts +33 -0
  47. package/dist/CanonMemberExternalReferenceRelation.js +91 -0
  48. package/dist/CanonToPlatformAlbumRelation.d.ts +29 -0
  49. package/dist/CanonToPlatformAlbumRelation.js +82 -0
  50. package/dist/CanonToPlatformArtistRelation.d.ts +29 -0
  51. package/dist/CanonToPlatformArtistRelation.js +82 -0
  52. package/dist/CanonToPlatformGenreRelation.d.ts +29 -0
  53. package/dist/CanonToPlatformGenreRelation.js +82 -0
  54. package/dist/CanonToPlatformTrackRelation.d.ts +29 -0
  55. package/dist/CanonToPlatformTrackRelation.js +82 -0
  56. package/dist/CanonTrack.d.ts +89 -0
  57. package/dist/CanonTrack.js +99 -0
  58. package/dist/ConfigParam.d.ts +19 -0
  59. package/dist/ConfigParam.js +70 -0
  60. package/dist/ExternalReference.d.ts +139 -0
  61. package/dist/ExternalReference.js +79 -0
  62. package/dist/JukeboxAccessType.d.ts +26 -0
  63. package/dist/JukeboxAccessType.js +36 -0
  64. package/dist/JukeboxCanonGenreRelation.d.ts +33 -0
  65. package/dist/JukeboxCanonGenreRelation.js +101 -0
  66. package/dist/JukeboxInvite.d.ts +39 -0
  67. package/dist/JukeboxInvite.js +98 -0
  68. package/dist/JukeboxQueueEntry.d.ts +74 -0
  69. package/dist/JukeboxQueueEntry.js +142 -0
  70. package/dist/JukeboxQueueMode.d.ts +26 -0
  71. package/dist/JukeboxQueueMode.js +36 -0
  72. package/dist/JukeboxSession.d.ts +108 -0
  73. package/dist/JukeboxSession.js +133 -0
  74. package/dist/JukeboxStatus.d.ts +26 -0
  75. package/dist/JukeboxStatus.js +34 -0
  76. package/dist/JukeboxTerminationCondition.d.ts +26 -0
  77. package/dist/JukeboxTerminationCondition.js +36 -0
  78. package/dist/JukeboxType.d.ts +26 -0
  79. package/dist/JukeboxType.js +36 -0
  80. package/dist/JukeboxUser.d.ts +56 -0
  81. package/dist/JukeboxUser.js +135 -0
  82. package/dist/JukeboxUserType.d.ts +26 -0
  83. package/dist/JukeboxUserType.js +34 -0
  84. package/dist/KnexMigrations.d.ts +19 -0
  85. package/dist/KnexMigrations.js +44 -0
  86. package/dist/KnexMigrationsLock.d.ts +15 -0
  87. package/dist/KnexMigrationsLock.js +36 -0
  88. package/dist/MetricsDaily.d.ts +19 -0
  89. package/dist/MetricsDaily.js +87 -0
  90. package/dist/MetricsEvent.d.ts +23 -0
  91. package/dist/MetricsEvent.js +117 -0
  92. package/dist/NewsSite.d.ts +21 -0
  93. package/dist/NewsSite.js +57 -0
  94. package/dist/PauseStatusType.d.ts +26 -0
  95. package/dist/PauseStatusType.js +34 -0
  96. package/dist/Platform.d.ts +127 -0
  97. package/dist/Platform.js +80 -0
  98. package/dist/PlatformAlbum.d.ts +232 -0
  99. package/dist/PlatformAlbum.js +123 -0
  100. package/dist/PlatformAlbumGenreRelation.d.ts +29 -0
  101. package/dist/PlatformAlbumGenreRelation.js +82 -0
  102. package/dist/PlatformAlbumTrackRelation.d.ts +29 -0
  103. package/dist/PlatformAlbumTrackRelation.js +82 -0
  104. package/dist/PlatformArtist.d.ts +225 -0
  105. package/dist/PlatformArtist.js +109 -0
  106. package/dist/PlatformArtistAlbumRelation.d.ts +29 -0
  107. package/dist/PlatformArtistAlbumRelation.js +82 -0
  108. package/dist/PlatformArtistGenreRelation.d.ts +29 -0
  109. package/dist/PlatformArtistGenreRelation.js +82 -0
  110. package/dist/PlatformArtistTrackRelation.d.ts +29 -0
  111. package/dist/PlatformArtistTrackRelation.js +82 -0
  112. package/dist/PlatformGenre.d.ts +122 -0
  113. package/dist/PlatformGenre.js +90 -0
  114. package/dist/PlatformTrack.d.ts +183 -0
  115. package/dist/PlatformTrack.js +129 -0
  116. package/dist/PlatformTrackGenreRelation.d.ts +29 -0
  117. package/dist/PlatformTrackGenreRelation.js +82 -0
  118. package/dist/PlatformUserAlbum.d.ts +54 -0
  119. package/dist/PlatformUserAlbum.js +121 -0
  120. package/dist/PlatformUserAlbumTrack.d.ts +42 -0
  121. package/dist/PlatformUserAlbumTrack.js +121 -0
  122. package/dist/PlatformUserPlaylist.d.ts +62 -0
  123. package/dist/PlatformUserPlaylist.js +135 -0
  124. package/dist/PlatformUserPlaylistTrack.d.ts +48 -0
  125. package/dist/PlatformUserPlaylistTrack.js +132 -0
  126. package/dist/PlaybackStatus.d.ts +26 -0
  127. package/dist/PlaybackStatus.js +36 -0
  128. package/dist/State.d.ts +50 -0
  129. package/dist/State.js +36 -0
  130. package/dist/TrackDeletionReason.d.ts +26 -0
  131. package/dist/TrackDeletionReason.js +34 -0
  132. package/dist/UnmatchedAlbum.d.ts +22 -0
  133. package/dist/UnmatchedAlbum.js +70 -0
  134. package/dist/UnmatchedArtist.d.ts +26 -0
  135. package/dist/UnmatchedArtist.js +81 -0
  136. package/dist/UserContacts.d.ts +46 -0
  137. package/dist/UserContacts.js +105 -0
  138. package/dist/init-models.d.ts +209 -0
  139. package/dist/init-models.js +507 -0
  140. package/model_options.json +3 -0
  141. package/models/AppUser.ts +267 -0
  142. package/models/AppUserDevice.ts +88 -0
  143. package/models/AppUserFollowRelation.ts +122 -0
  144. package/models/AppUserPlatformRelation.ts +150 -0
  145. package/models/CanonAlbum.ts +216 -0
  146. package/models/CanonAlbumExternalReferenceRelation.ts +92 -0
  147. package/models/CanonAlbumGenreRelation.ts +86 -0
  148. package/models/CanonAlbumImageHarvested.ts +106 -0
  149. package/models/CanonAlbumLabelRelation.ts +86 -0
  150. package/models/CanonAlbumTrackRelation.ts +86 -0
  151. package/models/CanonArtist.ts +183 -0
  152. package/models/CanonArtistAlbumRelation.ts +86 -0
  153. package/models/CanonArtistExternalReferenceRelation.ts +92 -0
  154. package/models/CanonArtistGenreRelation.ts +86 -0
  155. package/models/CanonArtistImageHarvested.ts +98 -0
  156. package/models/CanonArtistMemberRelation.ts +86 -0
  157. package/models/CanonArtistTrackRelation.ts +86 -0
  158. package/models/CanonGenre.ts +208 -0
  159. package/models/CanonGenreExternalReferenceRelation.ts +92 -0
  160. package/models/CanonLabel.ts +129 -0
  161. package/models/CanonLabelExternalReferenceRelation.ts +92 -0
  162. package/models/CanonMember.ts +130 -0
  163. package/models/CanonMemberExternalReferenceRelation.ts +99 -0
  164. package/models/CanonToPlatformAlbumRelation.ts +86 -0
  165. package/models/CanonToPlatformArtistRelation.ts +86 -0
  166. package/models/CanonToPlatformGenreRelation.ts +86 -0
  167. package/models/CanonToPlatformTrackRelation.ts +86 -0
  168. package/models/CanonTrack.ts +167 -0
  169. package/models/ConfigParam.ts +62 -0
  170. package/models/ExternalReference.ts +201 -0
  171. package/models/JukeboxAccessType.ts +60 -0
  172. package/models/JukeboxCanonGenreRelation.ts +109 -0
  173. package/models/JukeboxInvite.ts +113 -0
  174. package/models/JukeboxQueueEntry.ts +195 -0
  175. package/models/JukeboxQueueMode.ts +60 -0
  176. package/models/JukeboxSession.ts +223 -0
  177. package/models/JukeboxStatus.ts +58 -0
  178. package/models/JukeboxTerminationCondition.ts +60 -0
  179. package/models/JukeboxType.ts +60 -0
  180. package/models/JukeboxUser.ts +169 -0
  181. package/models/JukeboxUserType.ts +58 -0
  182. package/models/KnexMigrations.ts +60 -0
  183. package/models/KnexMigrationsLock.ts +48 -0
  184. package/models/MetricsDaily.ts +79 -0
  185. package/models/MetricsEvent.ts +114 -0
  186. package/models/NewsSite.ts +75 -0
  187. package/models/PauseStatusType.ts +58 -0
  188. package/models/Platform.ts +189 -0
  189. package/models/PlatformAlbum.ts +345 -0
  190. package/models/PlatformAlbumGenreRelation.ts +86 -0
  191. package/models/PlatformAlbumTrackRelation.ts +86 -0
  192. package/models/PlatformArtist.ts +324 -0
  193. package/models/PlatformArtistAlbumRelation.ts +86 -0
  194. package/models/PlatformArtistGenreRelation.ts +86 -0
  195. package/models/PlatformArtistTrackRelation.ts +86 -0
  196. package/models/PlatformGenre.ts +194 -0
  197. package/models/PlatformTrack.ts +298 -0
  198. package/models/PlatformTrackGenreRelation.ts +86 -0
  199. package/models/PlatformUserAlbum.ts +152 -0
  200. package/models/PlatformUserAlbumTrack.ts +139 -0
  201. package/models/PlatformUserPlaylist.ts +174 -0
  202. package/models/PlatformUserPlaylistTrack.ts +156 -0
  203. package/models/PlaybackStatus.ts +60 -0
  204. package/models/State.ts +86 -0
  205. package/models/TrackDeletionReason.ts +58 -0
  206. package/models/UnmatchedAlbum.ts +66 -0
  207. package/models/UnmatchedArtist.ts +81 -0
  208. package/models/UserContacts.ts +149 -0
  209. package/models/init-models.ts +716 -0
  210. package/package.json +19 -0
  211. package/tsconfig.json +52 -0
@@ -0,0 +1,232 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { Model, Optional } from 'sequelize';
3
+ import type { CanonAlbum, CanonAlbumId } from './CanonAlbum';
4
+ import type { CanonAlbumGenreRelation, CanonAlbumGenreRelationId } from './CanonAlbumGenreRelation';
5
+ import type { CanonAlbumLabelRelation, CanonAlbumLabelRelationId } from './CanonAlbumLabelRelation';
6
+ import type { CanonArtist, CanonArtistId } from './CanonArtist';
7
+ import type { CanonArtistAlbumRelation, CanonArtistAlbumRelationId } from './CanonArtistAlbumRelation';
8
+ import type { CanonGenre, CanonGenreId } from './CanonGenre';
9
+ import type { CanonLabel, CanonLabelId } from './CanonLabel';
10
+ import type { CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId } from './CanonToPlatformAlbumRelation';
11
+ import type { Platform, PlatformId } from './Platform';
12
+ import type { PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId } from './PlatformAlbumGenreRelation';
13
+ import type { PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId } from './PlatformAlbumTrackRelation';
14
+ import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
15
+ import type { PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId } from './PlatformArtistAlbumRelation';
16
+ import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
17
+ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
18
+ import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
19
+ import type { UnmatchedAlbum, UnmatchedAlbumId } from './UnmatchedAlbum';
20
+ export interface PlatformAlbumAttributes {
21
+ id: string;
22
+ platformId: number;
23
+ externalAlbumId: string;
24
+ name: string;
25
+ asciiName: string;
26
+ albumType?: string;
27
+ releaseDate?: string;
28
+ popularity?: number;
29
+ recordLabel?: string;
30
+ createDate: Date;
31
+ updateDate: Date;
32
+ images?: object;
33
+ }
34
+ export type PlatformAlbumPk = "id";
35
+ export type PlatformAlbumId = PlatformAlbum[PlatformAlbumPk];
36
+ export type PlatformAlbumOptionalAttributes = "id" | "albumType" | "releaseDate" | "popularity" | "recordLabel" | "createDate" | "updateDate" | "images";
37
+ export type PlatformAlbumCreationAttributes = Optional<PlatformAlbumAttributes, PlatformAlbumOptionalAttributes>;
38
+ export declare class PlatformAlbum extends Model<PlatformAlbumAttributes, PlatformAlbumCreationAttributes> implements PlatformAlbumAttributes {
39
+ id: string;
40
+ platformId: number;
41
+ externalAlbumId: string;
42
+ name: string;
43
+ asciiName: string;
44
+ albumType?: string;
45
+ releaseDate?: string;
46
+ popularity?: number;
47
+ recordLabel?: string;
48
+ createDate: Date;
49
+ updateDate: Date;
50
+ images?: object;
51
+ platform: Platform;
52
+ getPlatform: Sequelize.BelongsToGetAssociationMixin<Platform>;
53
+ setPlatform: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
54
+ createPlatform: Sequelize.BelongsToCreateAssociationMixin<Platform>;
55
+ canonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: CanonAlbum[];
56
+ getCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyGetAssociationsMixin<CanonAlbum>;
57
+ setCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManySetAssociationsMixin<CanonAlbum, CanonAlbumId>;
58
+ addCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyAddAssociationMixin<CanonAlbum, CanonAlbumId>;
59
+ addCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyAddAssociationsMixin<CanonAlbum, CanonAlbumId>;
60
+ createCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyCreateAssociationMixin<CanonAlbum>;
61
+ removeCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyRemoveAssociationMixin<CanonAlbum, CanonAlbumId>;
62
+ removeCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonAlbum, CanonAlbumId>;
63
+ hasCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelation: Sequelize.BelongsToManyHasAssociationMixin<CanonAlbum, CanonAlbumId>;
64
+ hasCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyHasAssociationsMixin<CanonAlbum, CanonAlbumId>;
65
+ countCanonAlbumIdCanonAlbumCanonToPlatformAlbumRelations: Sequelize.BelongsToManyCountAssociationsMixin;
66
+ canonAlbumGenreRelations: CanonAlbumGenreRelation[];
67
+ getCanonAlbumGenreRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumGenreRelation>;
68
+ setCanonAlbumGenreRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
69
+ addCanonAlbumGenreRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
70
+ addCanonAlbumGenreRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
71
+ createCanonAlbumGenreRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumGenreRelation>;
72
+ removeCanonAlbumGenreRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
73
+ removeCanonAlbumGenreRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
74
+ hasCanonAlbumGenreRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
75
+ hasCanonAlbumGenreRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumGenreRelation, CanonAlbumGenreRelationId>;
76
+ countCanonAlbumGenreRelations: Sequelize.HasManyCountAssociationsMixin;
77
+ canonAlbumLabelRelations: CanonAlbumLabelRelation[];
78
+ getCanonAlbumLabelRelations: Sequelize.HasManyGetAssociationsMixin<CanonAlbumLabelRelation>;
79
+ setCanonAlbumLabelRelations: Sequelize.HasManySetAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
80
+ addCanonAlbumLabelRelation: Sequelize.HasManyAddAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
81
+ addCanonAlbumLabelRelations: Sequelize.HasManyAddAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
82
+ createCanonAlbumLabelRelation: Sequelize.HasManyCreateAssociationMixin<CanonAlbumLabelRelation>;
83
+ removeCanonAlbumLabelRelation: Sequelize.HasManyRemoveAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
84
+ removeCanonAlbumLabelRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
85
+ hasCanonAlbumLabelRelation: Sequelize.HasManyHasAssociationMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
86
+ hasCanonAlbumLabelRelations: Sequelize.HasManyHasAssociationsMixin<CanonAlbumLabelRelation, CanonAlbumLabelRelationId>;
87
+ countCanonAlbumLabelRelations: Sequelize.HasManyCountAssociationsMixin;
88
+ canonArtistIdCanonArtists: CanonArtist[];
89
+ getCanonArtistIdCanonArtists: Sequelize.BelongsToManyGetAssociationsMixin<CanonArtist>;
90
+ setCanonArtistIdCanonArtists: Sequelize.BelongsToManySetAssociationsMixin<CanonArtist, CanonArtistId>;
91
+ addCanonArtistIdCanonArtist: Sequelize.BelongsToManyAddAssociationMixin<CanonArtist, CanonArtistId>;
92
+ addCanonArtistIdCanonArtists: Sequelize.BelongsToManyAddAssociationsMixin<CanonArtist, CanonArtistId>;
93
+ createCanonArtistIdCanonArtist: Sequelize.BelongsToManyCreateAssociationMixin<CanonArtist>;
94
+ removeCanonArtistIdCanonArtist: Sequelize.BelongsToManyRemoveAssociationMixin<CanonArtist, CanonArtistId>;
95
+ removeCanonArtistIdCanonArtists: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonArtist, CanonArtistId>;
96
+ hasCanonArtistIdCanonArtist: Sequelize.BelongsToManyHasAssociationMixin<CanonArtist, CanonArtistId>;
97
+ hasCanonArtistIdCanonArtists: Sequelize.BelongsToManyHasAssociationsMixin<CanonArtist, CanonArtistId>;
98
+ countCanonArtistIdCanonArtists: Sequelize.BelongsToManyCountAssociationsMixin;
99
+ canonArtistAlbumRelations: CanonArtistAlbumRelation[];
100
+ getCanonArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonArtistAlbumRelation>;
101
+ setCanonArtistAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
102
+ addCanonArtistAlbumRelation: Sequelize.HasManyAddAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
103
+ addCanonArtistAlbumRelations: Sequelize.HasManyAddAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
104
+ createCanonArtistAlbumRelation: Sequelize.HasManyCreateAssociationMixin<CanonArtistAlbumRelation>;
105
+ removeCanonArtistAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
106
+ removeCanonArtistAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
107
+ hasCanonArtistAlbumRelation: Sequelize.HasManyHasAssociationMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
108
+ hasCanonArtistAlbumRelations: Sequelize.HasManyHasAssociationsMixin<CanonArtistAlbumRelation, CanonArtistAlbumRelationId>;
109
+ countCanonArtistAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
110
+ canonGenreIdCanonGenres: CanonGenre[];
111
+ getCanonGenreIdCanonGenres: Sequelize.BelongsToManyGetAssociationsMixin<CanonGenre>;
112
+ setCanonGenreIdCanonGenres: Sequelize.BelongsToManySetAssociationsMixin<CanonGenre, CanonGenreId>;
113
+ addCanonGenreIdCanonGenre: Sequelize.BelongsToManyAddAssociationMixin<CanonGenre, CanonGenreId>;
114
+ addCanonGenreIdCanonGenres: Sequelize.BelongsToManyAddAssociationsMixin<CanonGenre, CanonGenreId>;
115
+ createCanonGenreIdCanonGenre: Sequelize.BelongsToManyCreateAssociationMixin<CanonGenre>;
116
+ removeCanonGenreIdCanonGenre: Sequelize.BelongsToManyRemoveAssociationMixin<CanonGenre, CanonGenreId>;
117
+ removeCanonGenreIdCanonGenres: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonGenre, CanonGenreId>;
118
+ hasCanonGenreIdCanonGenre: Sequelize.BelongsToManyHasAssociationMixin<CanonGenre, CanonGenreId>;
119
+ hasCanonGenreIdCanonGenres: Sequelize.BelongsToManyHasAssociationsMixin<CanonGenre, CanonGenreId>;
120
+ countCanonGenreIdCanonGenres: Sequelize.BelongsToManyCountAssociationsMixin;
121
+ canonLabelIdCanonLabels: CanonLabel[];
122
+ getCanonLabelIdCanonLabels: Sequelize.BelongsToManyGetAssociationsMixin<CanonLabel>;
123
+ setCanonLabelIdCanonLabels: Sequelize.BelongsToManySetAssociationsMixin<CanonLabel, CanonLabelId>;
124
+ addCanonLabelIdCanonLabel: Sequelize.BelongsToManyAddAssociationMixin<CanonLabel, CanonLabelId>;
125
+ addCanonLabelIdCanonLabels: Sequelize.BelongsToManyAddAssociationsMixin<CanonLabel, CanonLabelId>;
126
+ createCanonLabelIdCanonLabel: Sequelize.BelongsToManyCreateAssociationMixin<CanonLabel>;
127
+ removeCanonLabelIdCanonLabel: Sequelize.BelongsToManyRemoveAssociationMixin<CanonLabel, CanonLabelId>;
128
+ removeCanonLabelIdCanonLabels: Sequelize.BelongsToManyRemoveAssociationsMixin<CanonLabel, CanonLabelId>;
129
+ hasCanonLabelIdCanonLabel: Sequelize.BelongsToManyHasAssociationMixin<CanonLabel, CanonLabelId>;
130
+ hasCanonLabelIdCanonLabels: Sequelize.BelongsToManyHasAssociationsMixin<CanonLabel, CanonLabelId>;
131
+ countCanonLabelIdCanonLabels: Sequelize.BelongsToManyCountAssociationsMixin;
132
+ canonToPlatformAlbumRelations: CanonToPlatformAlbumRelation[];
133
+ getCanonToPlatformAlbumRelations: Sequelize.HasManyGetAssociationsMixin<CanonToPlatformAlbumRelation>;
134
+ setCanonToPlatformAlbumRelations: Sequelize.HasManySetAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
135
+ addCanonToPlatformAlbumRelation: Sequelize.HasManyAddAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
136
+ addCanonToPlatformAlbumRelations: Sequelize.HasManyAddAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
137
+ createCanonToPlatformAlbumRelation: Sequelize.HasManyCreateAssociationMixin<CanonToPlatformAlbumRelation>;
138
+ removeCanonToPlatformAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
139
+ removeCanonToPlatformAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
140
+ hasCanonToPlatformAlbumRelation: Sequelize.HasManyHasAssociationMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
141
+ hasCanonToPlatformAlbumRelations: Sequelize.HasManyHasAssociationsMixin<CanonToPlatformAlbumRelation, CanonToPlatformAlbumRelationId>;
142
+ countCanonToPlatformAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
143
+ platformAlbumGenreRelations: PlatformAlbumGenreRelation[];
144
+ getPlatformAlbumGenreRelations: Sequelize.HasManyGetAssociationsMixin<PlatformAlbumGenreRelation>;
145
+ setPlatformAlbumGenreRelations: Sequelize.HasManySetAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
146
+ addPlatformAlbumGenreRelation: Sequelize.HasManyAddAssociationMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
147
+ addPlatformAlbumGenreRelations: Sequelize.HasManyAddAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
148
+ createPlatformAlbumGenreRelation: Sequelize.HasManyCreateAssociationMixin<PlatformAlbumGenreRelation>;
149
+ removePlatformAlbumGenreRelation: Sequelize.HasManyRemoveAssociationMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
150
+ removePlatformAlbumGenreRelations: Sequelize.HasManyRemoveAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
151
+ hasPlatformAlbumGenreRelation: Sequelize.HasManyHasAssociationMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
152
+ hasPlatformAlbumGenreRelations: Sequelize.HasManyHasAssociationsMixin<PlatformAlbumGenreRelation, PlatformAlbumGenreRelationId>;
153
+ countPlatformAlbumGenreRelations: Sequelize.HasManyCountAssociationsMixin;
154
+ platformAlbumTrackRelations: PlatformAlbumTrackRelation[];
155
+ getPlatformAlbumTrackRelations: Sequelize.HasManyGetAssociationsMixin<PlatformAlbumTrackRelation>;
156
+ setPlatformAlbumTrackRelations: Sequelize.HasManySetAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
157
+ addPlatformAlbumTrackRelation: Sequelize.HasManyAddAssociationMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
158
+ addPlatformAlbumTrackRelations: Sequelize.HasManyAddAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
159
+ createPlatformAlbumTrackRelation: Sequelize.HasManyCreateAssociationMixin<PlatformAlbumTrackRelation>;
160
+ removePlatformAlbumTrackRelation: Sequelize.HasManyRemoveAssociationMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
161
+ removePlatformAlbumTrackRelations: Sequelize.HasManyRemoveAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
162
+ hasPlatformAlbumTrackRelation: Sequelize.HasManyHasAssociationMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
163
+ hasPlatformAlbumTrackRelations: Sequelize.HasManyHasAssociationsMixin<PlatformAlbumTrackRelation, PlatformAlbumTrackRelationId>;
164
+ countPlatformAlbumTrackRelations: Sequelize.HasManyCountAssociationsMixin;
165
+ platformArtistIdPlatformArtistPlatformArtistAlbumRelations: PlatformArtist[];
166
+ getPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformArtist>;
167
+ setPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
168
+ addPlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
169
+ addPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
170
+ createPlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformArtist>;
171
+ removePlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
172
+ removePlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
173
+ hasPlatformArtistIdPlatformArtistPlatformArtistAlbumRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
174
+ hasPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
175
+ countPlatformArtistIdPlatformArtistPlatformArtistAlbumRelations: Sequelize.BelongsToManyCountAssociationsMixin;
176
+ platformArtistAlbumRelations: PlatformArtistAlbumRelation[];
177
+ getPlatformArtistAlbumRelations: Sequelize.HasManyGetAssociationsMixin<PlatformArtistAlbumRelation>;
178
+ setPlatformArtistAlbumRelations: Sequelize.HasManySetAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
179
+ addPlatformArtistAlbumRelation: Sequelize.HasManyAddAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
180
+ addPlatformArtistAlbumRelations: Sequelize.HasManyAddAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
181
+ createPlatformArtistAlbumRelation: Sequelize.HasManyCreateAssociationMixin<PlatformArtistAlbumRelation>;
182
+ removePlatformArtistAlbumRelation: Sequelize.HasManyRemoveAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
183
+ removePlatformArtistAlbumRelations: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
184
+ hasPlatformArtistAlbumRelation: Sequelize.HasManyHasAssociationMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
185
+ hasPlatformArtistAlbumRelations: Sequelize.HasManyHasAssociationsMixin<PlatformArtistAlbumRelation, PlatformArtistAlbumRelationId>;
186
+ countPlatformArtistAlbumRelations: Sequelize.HasManyCountAssociationsMixin;
187
+ platformGenreIdPlatformGenrePlatformAlbumGenreRelations: PlatformGenre[];
188
+ getPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformGenre>;
189
+ setPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformGenre, PlatformGenreId>;
190
+ addPlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformGenre, PlatformGenreId>;
191
+ addPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformGenre, PlatformGenreId>;
192
+ createPlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformGenre>;
193
+ removePlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformGenre, PlatformGenreId>;
194
+ removePlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformGenre, PlatformGenreId>;
195
+ hasPlatformGenreIdPlatformGenrePlatformAlbumGenreRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformGenre, PlatformGenreId>;
196
+ hasPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformGenre, PlatformGenreId>;
197
+ countPlatformGenreIdPlatformGenrePlatformAlbumGenreRelations: Sequelize.BelongsToManyCountAssociationsMixin;
198
+ platformTrackIdPlatformTrackPlatformAlbumTrackRelations: PlatformTrack[];
199
+ getPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyGetAssociationsMixin<PlatformTrack>;
200
+ setPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManySetAssociationsMixin<PlatformTrack, PlatformTrackId>;
201
+ addPlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyAddAssociationMixin<PlatformTrack, PlatformTrackId>;
202
+ addPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyAddAssociationsMixin<PlatformTrack, PlatformTrackId>;
203
+ createPlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyCreateAssociationMixin<PlatformTrack>;
204
+ removePlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyRemoveAssociationMixin<PlatformTrack, PlatformTrackId>;
205
+ removePlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyRemoveAssociationsMixin<PlatformTrack, PlatformTrackId>;
206
+ hasPlatformTrackIdPlatformTrackPlatformAlbumTrackRelation: Sequelize.BelongsToManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
207
+ hasPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
208
+ countPlatformTrackIdPlatformTrackPlatformAlbumTrackRelations: Sequelize.BelongsToManyCountAssociationsMixin;
209
+ platformUserAlbums: PlatformUserAlbum[];
210
+ getPlatformUserAlbums: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbum>;
211
+ setPlatformUserAlbums: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
212
+ addPlatformUserAlbum: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
213
+ addPlatformUserAlbums: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
214
+ createPlatformUserAlbum: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbum>;
215
+ removePlatformUserAlbum: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
216
+ removePlatformUserAlbums: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
217
+ hasPlatformUserAlbum: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
218
+ hasPlatformUserAlbums: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
219
+ countPlatformUserAlbums: Sequelize.HasManyCountAssociationsMixin;
220
+ unmatchedAlbums: UnmatchedAlbum[];
221
+ getUnmatchedAlbums: Sequelize.HasManyGetAssociationsMixin<UnmatchedAlbum>;
222
+ setUnmatchedAlbums: Sequelize.HasManySetAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
223
+ addUnmatchedAlbum: Sequelize.HasManyAddAssociationMixin<UnmatchedAlbum, UnmatchedAlbumId>;
224
+ addUnmatchedAlbums: Sequelize.HasManyAddAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
225
+ createUnmatchedAlbum: Sequelize.HasManyCreateAssociationMixin<UnmatchedAlbum>;
226
+ removeUnmatchedAlbum: Sequelize.HasManyRemoveAssociationMixin<UnmatchedAlbum, UnmatchedAlbumId>;
227
+ removeUnmatchedAlbums: Sequelize.HasManyRemoveAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
228
+ hasUnmatchedAlbum: Sequelize.HasManyHasAssociationMixin<UnmatchedAlbum, UnmatchedAlbumId>;
229
+ hasUnmatchedAlbums: Sequelize.HasManyHasAssociationsMixin<UnmatchedAlbum, UnmatchedAlbumId>;
230
+ countUnmatchedAlbums: Sequelize.HasManyCountAssociationsMixin;
231
+ static initModel(sequelize: Sequelize.Sequelize): typeof PlatformAlbum;
232
+ }
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PlatformAlbum = void 0;
27
+ const Sequelize = __importStar(require("sequelize"));
28
+ const sequelize_1 = require("sequelize");
29
+ class PlatformAlbum extends sequelize_1.Model {
30
+ static initModel(sequelize) {
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
+ },
38
+ platformId: {
39
+ type: sequelize_1.DataTypes.SMALLINT,
40
+ allowNull: false,
41
+ references: {
42
+ model: 'platform',
43
+ key: 'id'
44
+ },
45
+ unique: "uk_platform_id_external_album_id",
46
+ field: 'platform_id'
47
+ },
48
+ externalAlbumId: {
49
+ type: sequelize_1.DataTypes.TEXT,
50
+ allowNull: false,
51
+ unique: "uk_platform_id_external_album_id",
52
+ field: 'external_album_id'
53
+ },
54
+ name: {
55
+ type: sequelize_1.DataTypes.TEXT,
56
+ allowNull: false
57
+ },
58
+ asciiName: {
59
+ type: sequelize_1.DataTypes.TEXT,
60
+ allowNull: false,
61
+ field: 'ascii_name'
62
+ },
63
+ albumType: {
64
+ type: sequelize_1.DataTypes.TEXT,
65
+ allowNull: true,
66
+ field: 'album_type'
67
+ },
68
+ releaseDate: {
69
+ type: sequelize_1.DataTypes.TEXT,
70
+ allowNull: true,
71
+ field: 'release_date'
72
+ },
73
+ popularity: {
74
+ type: sequelize_1.DataTypes.SMALLINT,
75
+ allowNull: true
76
+ },
77
+ recordLabel: {
78
+ type: sequelize_1.DataTypes.TEXT,
79
+ allowNull: true,
80
+ field: 'record_label'
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
+ images: {
95
+ type: sequelize_1.DataTypes.JSONB,
96
+ allowNull: true
97
+ }
98
+ }, {
99
+ sequelize,
100
+ tableName: 'platform_album',
101
+ schema: 'eb',
102
+ timestamps: false,
103
+ indexes: [
104
+ {
105
+ name: "platform_album_pkey",
106
+ unique: true,
107
+ fields: [
108
+ { name: "id" },
109
+ ]
110
+ },
111
+ {
112
+ name: "uk_platform_id_external_album_id",
113
+ unique: true,
114
+ fields: [
115
+ { name: "platform_id" },
116
+ { name: "external_album_id" },
117
+ ]
118
+ },
119
+ ]
120
+ });
121
+ }
122
+ }
123
+ exports.PlatformAlbum = PlatformAlbum;
@@ -0,0 +1,29 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { Model, Optional } from 'sequelize';
3
+ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
4
+ import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
5
+ export interface PlatformAlbumGenreRelationAttributes {
6
+ platformAlbumId: string;
7
+ platformGenreId: string;
8
+ createDate: Date;
9
+ updateDate: Date;
10
+ }
11
+ export type PlatformAlbumGenreRelationPk = "platformAlbumId" | "platformGenreId";
12
+ export type PlatformAlbumGenreRelationId = PlatformAlbumGenreRelation[PlatformAlbumGenreRelationPk];
13
+ export type PlatformAlbumGenreRelationOptionalAttributes = "createDate" | "updateDate";
14
+ export type PlatformAlbumGenreRelationCreationAttributes = Optional<PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationOptionalAttributes>;
15
+ export declare class PlatformAlbumGenreRelation extends Model<PlatformAlbumGenreRelationAttributes, PlatformAlbumGenreRelationCreationAttributes> implements PlatformAlbumGenreRelationAttributes {
16
+ platformAlbumId: string;
17
+ platformGenreId: string;
18
+ createDate: Date;
19
+ updateDate: Date;
20
+ platformAlbum: PlatformAlbum;
21
+ getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
22
+ setPlatformAlbum: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
23
+ createPlatformAlbum: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
24
+ platformGenre: PlatformGenre;
25
+ getPlatformGenre: Sequelize.BelongsToGetAssociationMixin<PlatformGenre>;
26
+ setPlatformGenre: Sequelize.BelongsToSetAssociationMixin<PlatformGenre, PlatformGenreId>;
27
+ createPlatformGenre: Sequelize.BelongsToCreateAssociationMixin<PlatformGenre>;
28
+ static initModel(sequelize: Sequelize.Sequelize): typeof PlatformAlbumGenreRelation;
29
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PlatformAlbumGenreRelation = void 0;
27
+ const Sequelize = __importStar(require("sequelize"));
28
+ const sequelize_1 = require("sequelize");
29
+ class PlatformAlbumGenreRelation extends sequelize_1.Model {
30
+ static initModel(sequelize) {
31
+ return PlatformAlbumGenreRelation.init({
32
+ platformAlbumId: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ primaryKey: true,
36
+ references: {
37
+ model: 'platform_album',
38
+ key: 'id'
39
+ },
40
+ field: 'platform_album_id'
41
+ },
42
+ platformGenreId: {
43
+ type: sequelize_1.DataTypes.UUID,
44
+ allowNull: false,
45
+ primaryKey: true,
46
+ references: {
47
+ model: 'platform_genre',
48
+ key: 'id'
49
+ },
50
+ field: 'platform_genre_id'
51
+ },
52
+ createDate: {
53
+ type: sequelize_1.DataTypes.DATE,
54
+ allowNull: false,
55
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
56
+ field: 'create_date'
57
+ },
58
+ updateDate: {
59
+ type: sequelize_1.DataTypes.DATE,
60
+ allowNull: false,
61
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
62
+ field: 'update_date'
63
+ }
64
+ }, {
65
+ sequelize,
66
+ tableName: 'platform_album_genre_relation',
67
+ schema: 'eb',
68
+ timestamps: false,
69
+ indexes: [
70
+ {
71
+ name: "platform_album_genre_relation_pkey",
72
+ unique: true,
73
+ fields: [
74
+ { name: "platform_album_id" },
75
+ { name: "platform_genre_id" },
76
+ ]
77
+ },
78
+ ]
79
+ });
80
+ }
81
+ }
82
+ exports.PlatformAlbumGenreRelation = PlatformAlbumGenreRelation;
@@ -0,0 +1,29 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { Model, Optional } from 'sequelize';
3
+ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
4
+ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
5
+ export interface PlatformAlbumTrackRelationAttributes {
6
+ platformAlbumId: string;
7
+ platformTrackId: string;
8
+ createDate: Date;
9
+ updateDate: Date;
10
+ }
11
+ export type PlatformAlbumTrackRelationPk = "platformAlbumId" | "platformTrackId";
12
+ export type PlatformAlbumTrackRelationId = PlatformAlbumTrackRelation[PlatformAlbumTrackRelationPk];
13
+ export type PlatformAlbumTrackRelationOptionalAttributes = "createDate" | "updateDate";
14
+ export type PlatformAlbumTrackRelationCreationAttributes = Optional<PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationOptionalAttributes>;
15
+ export declare class PlatformAlbumTrackRelation extends Model<PlatformAlbumTrackRelationAttributes, PlatformAlbumTrackRelationCreationAttributes> implements PlatformAlbumTrackRelationAttributes {
16
+ platformAlbumId: string;
17
+ platformTrackId: string;
18
+ createDate: Date;
19
+ updateDate: Date;
20
+ platformAlbum: PlatformAlbum;
21
+ getPlatformAlbum: Sequelize.BelongsToGetAssociationMixin<PlatformAlbum>;
22
+ setPlatformAlbum: Sequelize.BelongsToSetAssociationMixin<PlatformAlbum, PlatformAlbumId>;
23
+ createPlatformAlbum: Sequelize.BelongsToCreateAssociationMixin<PlatformAlbum>;
24
+ platformTrack: PlatformTrack;
25
+ getPlatformTrack: Sequelize.BelongsToGetAssociationMixin<PlatformTrack>;
26
+ setPlatformTrack: Sequelize.BelongsToSetAssociationMixin<PlatformTrack, PlatformTrackId>;
27
+ createPlatformTrack: Sequelize.BelongsToCreateAssociationMixin<PlatformTrack>;
28
+ static initModel(sequelize: Sequelize.Sequelize): typeof PlatformAlbumTrackRelation;
29
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PlatformAlbumTrackRelation = void 0;
27
+ const Sequelize = __importStar(require("sequelize"));
28
+ const sequelize_1 = require("sequelize");
29
+ class PlatformAlbumTrackRelation extends sequelize_1.Model {
30
+ static initModel(sequelize) {
31
+ return PlatformAlbumTrackRelation.init({
32
+ platformAlbumId: {
33
+ type: sequelize_1.DataTypes.UUID,
34
+ allowNull: false,
35
+ primaryKey: true,
36
+ references: {
37
+ model: 'platform_album',
38
+ key: 'id'
39
+ },
40
+ field: 'platform_album_id'
41
+ },
42
+ platformTrackId: {
43
+ type: sequelize_1.DataTypes.UUID,
44
+ allowNull: false,
45
+ primaryKey: true,
46
+ references: {
47
+ model: 'platform_track',
48
+ key: 'id'
49
+ },
50
+ field: 'platform_track_id'
51
+ },
52
+ createDate: {
53
+ type: sequelize_1.DataTypes.DATE,
54
+ allowNull: false,
55
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
56
+ field: 'create_date'
57
+ },
58
+ updateDate: {
59
+ type: sequelize_1.DataTypes.DATE,
60
+ allowNull: false,
61
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
62
+ field: 'update_date'
63
+ }
64
+ }, {
65
+ sequelize,
66
+ tableName: 'platform_album_track_relation',
67
+ schema: 'eb',
68
+ timestamps: false,
69
+ indexes: [
70
+ {
71
+ name: "platform_album_track_relation_pkey",
72
+ unique: true,
73
+ fields: [
74
+ { name: "platform_album_id" },
75
+ { name: "platform_track_id" },
76
+ ]
77
+ },
78
+ ]
79
+ });
80
+ }
81
+ }
82
+ exports.PlatformAlbumTrackRelation = PlatformAlbumTrackRelation;