@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,75 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { DataTypes, Model, Optional } from 'sequelize';
3
+
4
+ export interface NewsSiteAttributes {
5
+ id: number;
6
+ name: string;
7
+ domain?: string;
8
+ scrapingBaseUrl: string;
9
+ active?: boolean;
10
+ }
11
+
12
+ export type NewsSitePk = "id";
13
+ export type NewsSiteId = NewsSite[NewsSitePk];
14
+ export type NewsSiteOptionalAttributes = "id" | "domain" | "active";
15
+ export type NewsSiteCreationAttributes = Optional<NewsSiteAttributes, NewsSiteOptionalAttributes>;
16
+
17
+ export class NewsSite extends Model<NewsSiteAttributes, NewsSiteCreationAttributes> implements NewsSiteAttributes {
18
+ id!: number;
19
+ name!: string;
20
+ domain?: string;
21
+ scrapingBaseUrl!: string;
22
+ active?: boolean;
23
+
24
+
25
+ static initModel(sequelize: Sequelize.Sequelize): typeof NewsSite {
26
+ return NewsSite.init({
27
+ id: {
28
+ autoIncrement: true,
29
+ type: DataTypes.INTEGER,
30
+ allowNull: false,
31
+ primaryKey: true
32
+ },
33
+ name: {
34
+ type: DataTypes.STRING(255),
35
+ allowNull: false,
36
+ unique: "news_site_name_unique"
37
+ },
38
+ domain: {
39
+ type: DataTypes.STRING(255),
40
+ allowNull: true
41
+ },
42
+ scrapingBaseUrl: {
43
+ type: DataTypes.STRING(255),
44
+ allowNull: false,
45
+ field: 'scraping_base_url'
46
+ },
47
+ active: {
48
+ type: DataTypes.BOOLEAN,
49
+ allowNull: true,
50
+ defaultValue: false
51
+ }
52
+ }, {
53
+ sequelize,
54
+ tableName: 'news_site',
55
+ schema: 'eb',
56
+ timestamps: false,
57
+ indexes: [
58
+ {
59
+ name: "news_site_name_unique",
60
+ unique: true,
61
+ fields: [
62
+ { name: "name" },
63
+ ]
64
+ },
65
+ {
66
+ name: "news_site_pkey",
67
+ unique: true,
68
+ fields: [
69
+ { name: "id" },
70
+ ]
71
+ },
72
+ ]
73
+ });
74
+ }
75
+ }
@@ -0,0 +1,58 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { DataTypes, Model, Optional } from 'sequelize';
3
+ import type { JukeboxUser, JukeboxUserId } from './JukeboxUser';
4
+
5
+ export interface PauseStatusTypeAttributes {
6
+ id: number;
7
+ description: string;
8
+ }
9
+
10
+ export type PauseStatusTypePk = "id";
11
+ export type PauseStatusTypeId = PauseStatusType[PauseStatusTypePk];
12
+ export type PauseStatusTypeCreationAttributes = PauseStatusTypeAttributes;
13
+
14
+ export class PauseStatusType extends Model<PauseStatusTypeAttributes, PauseStatusTypeCreationAttributes> implements PauseStatusTypeAttributes {
15
+ id!: number;
16
+ description!: string;
17
+
18
+ // PauseStatusType hasMany JukeboxUser via pauseStatusTypeId
19
+ jukeboxUsers!: JukeboxUser[];
20
+ getJukeboxUsers!: Sequelize.HasManyGetAssociationsMixin<JukeboxUser>;
21
+ setJukeboxUsers!: Sequelize.HasManySetAssociationsMixin<JukeboxUser, JukeboxUserId>;
22
+ addJukeboxUser!: Sequelize.HasManyAddAssociationMixin<JukeboxUser, JukeboxUserId>;
23
+ addJukeboxUsers!: Sequelize.HasManyAddAssociationsMixin<JukeboxUser, JukeboxUserId>;
24
+ createJukeboxUser!: Sequelize.HasManyCreateAssociationMixin<JukeboxUser>;
25
+ removeJukeboxUser!: Sequelize.HasManyRemoveAssociationMixin<JukeboxUser, JukeboxUserId>;
26
+ removeJukeboxUsers!: Sequelize.HasManyRemoveAssociationsMixin<JukeboxUser, JukeboxUserId>;
27
+ hasJukeboxUser!: Sequelize.HasManyHasAssociationMixin<JukeboxUser, JukeboxUserId>;
28
+ hasJukeboxUsers!: Sequelize.HasManyHasAssociationsMixin<JukeboxUser, JukeboxUserId>;
29
+ countJukeboxUsers!: Sequelize.HasManyCountAssociationsMixin;
30
+
31
+ static initModel(sequelize: Sequelize.Sequelize): typeof PauseStatusType {
32
+ return PauseStatusType.init({
33
+ id: {
34
+ type: DataTypes.SMALLINT,
35
+ allowNull: false,
36
+ primaryKey: true
37
+ },
38
+ description: {
39
+ type: DataTypes.STRING(255),
40
+ allowNull: false
41
+ }
42
+ }, {
43
+ sequelize,
44
+ tableName: 'pause_status_type',
45
+ schema: 'eb',
46
+ timestamps: false,
47
+ indexes: [
48
+ {
49
+ name: "pause_status_type_pkey",
50
+ unique: true,
51
+ fields: [
52
+ { name: "id" },
53
+ ]
54
+ },
55
+ ]
56
+ });
57
+ }
58
+ }
@@ -0,0 +1,189 @@
1
+ import * as Sequelize from 'sequelize';
2
+ import { DataTypes, Model, Optional } from 'sequelize';
3
+ import type { AppUserPlatformRelation, AppUserPlatformRelationId } from './AppUserPlatformRelation';
4
+ import type { PlatformAlbum, PlatformAlbumId } from './PlatformAlbum';
5
+ import type { PlatformArtist, PlatformArtistId } from './PlatformArtist';
6
+ import type { PlatformGenre, PlatformGenreId } from './PlatformGenre';
7
+ import type { PlatformTrack, PlatformTrackId } from './PlatformTrack';
8
+ import type { PlatformUserAlbum, PlatformUserAlbumId } from './PlatformUserAlbum';
9
+ import type { PlatformUserAlbumTrack, PlatformUserAlbumTrackId } from './PlatformUserAlbumTrack';
10
+ import type { PlatformUserPlaylist, PlatformUserPlaylistId } from './PlatformUserPlaylist';
11
+ import type { UnmatchedArtist, UnmatchedArtistId } from './UnmatchedArtist';
12
+
13
+ export interface PlatformAttributes {
14
+ id: number;
15
+ name: string;
16
+ createDate: Date;
17
+ updateDate: Date;
18
+ }
19
+
20
+ export type PlatformPk = "id";
21
+ export type PlatformId = Platform[PlatformPk];
22
+ export type PlatformOptionalAttributes = "createDate" | "updateDate";
23
+ export type PlatformCreationAttributes = Optional<PlatformAttributes, PlatformOptionalAttributes>;
24
+
25
+ export class Platform extends Model<PlatformAttributes, PlatformCreationAttributes> implements PlatformAttributes {
26
+ id!: number;
27
+ name!: string;
28
+ createDate!: Date;
29
+ updateDate!: Date;
30
+
31
+ // Platform hasMany AppUserPlatformRelation via platformId
32
+ appUserPlatformRelations!: AppUserPlatformRelation[];
33
+ getAppUserPlatformRelations!: Sequelize.HasManyGetAssociationsMixin<AppUserPlatformRelation>;
34
+ setAppUserPlatformRelations!: Sequelize.HasManySetAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
35
+ addAppUserPlatformRelation!: Sequelize.HasManyAddAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
36
+ addAppUserPlatformRelations!: Sequelize.HasManyAddAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
37
+ createAppUserPlatformRelation!: Sequelize.HasManyCreateAssociationMixin<AppUserPlatformRelation>;
38
+ removeAppUserPlatformRelation!: Sequelize.HasManyRemoveAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
39
+ removeAppUserPlatformRelations!: Sequelize.HasManyRemoveAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
40
+ hasAppUserPlatformRelation!: Sequelize.HasManyHasAssociationMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
41
+ hasAppUserPlatformRelations!: Sequelize.HasManyHasAssociationsMixin<AppUserPlatformRelation, AppUserPlatformRelationId>;
42
+ countAppUserPlatformRelations!: Sequelize.HasManyCountAssociationsMixin;
43
+ // Platform hasMany PlatformAlbum via platformId
44
+ platformAlbums!: PlatformAlbum[];
45
+ getPlatformAlbums!: Sequelize.HasManyGetAssociationsMixin<PlatformAlbum>;
46
+ setPlatformAlbums!: Sequelize.HasManySetAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
47
+ addPlatformAlbum!: Sequelize.HasManyAddAssociationMixin<PlatformAlbum, PlatformAlbumId>;
48
+ addPlatformAlbums!: Sequelize.HasManyAddAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
49
+ createPlatformAlbum!: Sequelize.HasManyCreateAssociationMixin<PlatformAlbum>;
50
+ removePlatformAlbum!: Sequelize.HasManyRemoveAssociationMixin<PlatformAlbum, PlatformAlbumId>;
51
+ removePlatformAlbums!: Sequelize.HasManyRemoveAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
52
+ hasPlatformAlbum!: Sequelize.HasManyHasAssociationMixin<PlatformAlbum, PlatformAlbumId>;
53
+ hasPlatformAlbums!: Sequelize.HasManyHasAssociationsMixin<PlatformAlbum, PlatformAlbumId>;
54
+ countPlatformAlbums!: Sequelize.HasManyCountAssociationsMixin;
55
+ // Platform hasMany PlatformArtist via platformId
56
+ platformArtists!: PlatformArtist[];
57
+ getPlatformArtists!: Sequelize.HasManyGetAssociationsMixin<PlatformArtist>;
58
+ setPlatformArtists!: Sequelize.HasManySetAssociationsMixin<PlatformArtist, PlatformArtistId>;
59
+ addPlatformArtist!: Sequelize.HasManyAddAssociationMixin<PlatformArtist, PlatformArtistId>;
60
+ addPlatformArtists!: Sequelize.HasManyAddAssociationsMixin<PlatformArtist, PlatformArtistId>;
61
+ createPlatformArtist!: Sequelize.HasManyCreateAssociationMixin<PlatformArtist>;
62
+ removePlatformArtist!: Sequelize.HasManyRemoveAssociationMixin<PlatformArtist, PlatformArtistId>;
63
+ removePlatformArtists!: Sequelize.HasManyRemoveAssociationsMixin<PlatformArtist, PlatformArtistId>;
64
+ hasPlatformArtist!: Sequelize.HasManyHasAssociationMixin<PlatformArtist, PlatformArtistId>;
65
+ hasPlatformArtists!: Sequelize.HasManyHasAssociationsMixin<PlatformArtist, PlatformArtistId>;
66
+ countPlatformArtists!: Sequelize.HasManyCountAssociationsMixin;
67
+ // Platform hasMany PlatformGenre via platformId
68
+ platformGenres!: PlatformGenre[];
69
+ getPlatformGenres!: Sequelize.HasManyGetAssociationsMixin<PlatformGenre>;
70
+ setPlatformGenres!: Sequelize.HasManySetAssociationsMixin<PlatformGenre, PlatformGenreId>;
71
+ addPlatformGenre!: Sequelize.HasManyAddAssociationMixin<PlatformGenre, PlatformGenreId>;
72
+ addPlatformGenres!: Sequelize.HasManyAddAssociationsMixin<PlatformGenre, PlatformGenreId>;
73
+ createPlatformGenre!: Sequelize.HasManyCreateAssociationMixin<PlatformGenre>;
74
+ removePlatformGenre!: Sequelize.HasManyRemoveAssociationMixin<PlatformGenre, PlatformGenreId>;
75
+ removePlatformGenres!: Sequelize.HasManyRemoveAssociationsMixin<PlatformGenre, PlatformGenreId>;
76
+ hasPlatformGenre!: Sequelize.HasManyHasAssociationMixin<PlatformGenre, PlatformGenreId>;
77
+ hasPlatformGenres!: Sequelize.HasManyHasAssociationsMixin<PlatformGenre, PlatformGenreId>;
78
+ countPlatformGenres!: Sequelize.HasManyCountAssociationsMixin;
79
+ // Platform hasMany PlatformTrack via platformId
80
+ platformTracks!: PlatformTrack[];
81
+ getPlatformTracks!: Sequelize.HasManyGetAssociationsMixin<PlatformTrack>;
82
+ setPlatformTracks!: Sequelize.HasManySetAssociationsMixin<PlatformTrack, PlatformTrackId>;
83
+ addPlatformTrack!: Sequelize.HasManyAddAssociationMixin<PlatformTrack, PlatformTrackId>;
84
+ addPlatformTracks!: Sequelize.HasManyAddAssociationsMixin<PlatformTrack, PlatformTrackId>;
85
+ createPlatformTrack!: Sequelize.HasManyCreateAssociationMixin<PlatformTrack>;
86
+ removePlatformTrack!: Sequelize.HasManyRemoveAssociationMixin<PlatformTrack, PlatformTrackId>;
87
+ removePlatformTracks!: Sequelize.HasManyRemoveAssociationsMixin<PlatformTrack, PlatformTrackId>;
88
+ hasPlatformTrack!: Sequelize.HasManyHasAssociationMixin<PlatformTrack, PlatformTrackId>;
89
+ hasPlatformTracks!: Sequelize.HasManyHasAssociationsMixin<PlatformTrack, PlatformTrackId>;
90
+ countPlatformTracks!: Sequelize.HasManyCountAssociationsMixin;
91
+ // Platform hasMany PlatformUserAlbum via platformId
92
+ platformUserAlbums!: PlatformUserAlbum[];
93
+ getPlatformUserAlbums!: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbum>;
94
+ setPlatformUserAlbums!: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
95
+ addPlatformUserAlbum!: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
96
+ addPlatformUserAlbums!: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
97
+ createPlatformUserAlbum!: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbum>;
98
+ removePlatformUserAlbum!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
99
+ removePlatformUserAlbums!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
100
+ hasPlatformUserAlbum!: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbum, PlatformUserAlbumId>;
101
+ hasPlatformUserAlbums!: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbum, PlatformUserAlbumId>;
102
+ countPlatformUserAlbums!: Sequelize.HasManyCountAssociationsMixin;
103
+ // Platform hasMany PlatformUserAlbumTrack via platformId
104
+ platformUserAlbumTracks!: PlatformUserAlbumTrack[];
105
+ getPlatformUserAlbumTracks!: Sequelize.HasManyGetAssociationsMixin<PlatformUserAlbumTrack>;
106
+ setPlatformUserAlbumTracks!: Sequelize.HasManySetAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
107
+ addPlatformUserAlbumTrack!: Sequelize.HasManyAddAssociationMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
108
+ addPlatformUserAlbumTracks!: Sequelize.HasManyAddAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
109
+ createPlatformUserAlbumTrack!: Sequelize.HasManyCreateAssociationMixin<PlatformUserAlbumTrack>;
110
+ removePlatformUserAlbumTrack!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
111
+ removePlatformUserAlbumTracks!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
112
+ hasPlatformUserAlbumTrack!: Sequelize.HasManyHasAssociationMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
113
+ hasPlatformUserAlbumTracks!: Sequelize.HasManyHasAssociationsMixin<PlatformUserAlbumTrack, PlatformUserAlbumTrackId>;
114
+ countPlatformUserAlbumTracks!: Sequelize.HasManyCountAssociationsMixin;
115
+ // Platform hasMany PlatformUserPlaylist via platformId
116
+ platformUserPlaylists!: PlatformUserPlaylist[];
117
+ getPlatformUserPlaylists!: Sequelize.HasManyGetAssociationsMixin<PlatformUserPlaylist>;
118
+ setPlatformUserPlaylists!: Sequelize.HasManySetAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
119
+ addPlatformUserPlaylist!: Sequelize.HasManyAddAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
120
+ addPlatformUserPlaylists!: Sequelize.HasManyAddAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
121
+ createPlatformUserPlaylist!: Sequelize.HasManyCreateAssociationMixin<PlatformUserPlaylist>;
122
+ removePlatformUserPlaylist!: Sequelize.HasManyRemoveAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
123
+ removePlatformUserPlaylists!: Sequelize.HasManyRemoveAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
124
+ hasPlatformUserPlaylist!: Sequelize.HasManyHasAssociationMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
125
+ hasPlatformUserPlaylists!: Sequelize.HasManyHasAssociationsMixin<PlatformUserPlaylist, PlatformUserPlaylistId>;
126
+ countPlatformUserPlaylists!: Sequelize.HasManyCountAssociationsMixin;
127
+ // Platform hasMany UnmatchedArtist via platformId
128
+ unmatchedArtists!: UnmatchedArtist[];
129
+ getUnmatchedArtists!: Sequelize.HasManyGetAssociationsMixin<UnmatchedArtist>;
130
+ setUnmatchedArtists!: Sequelize.HasManySetAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
131
+ addUnmatchedArtist!: Sequelize.HasManyAddAssociationMixin<UnmatchedArtist, UnmatchedArtistId>;
132
+ addUnmatchedArtists!: Sequelize.HasManyAddAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
133
+ createUnmatchedArtist!: Sequelize.HasManyCreateAssociationMixin<UnmatchedArtist>;
134
+ removeUnmatchedArtist!: Sequelize.HasManyRemoveAssociationMixin<UnmatchedArtist, UnmatchedArtistId>;
135
+ removeUnmatchedArtists!: Sequelize.HasManyRemoveAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
136
+ hasUnmatchedArtist!: Sequelize.HasManyHasAssociationMixin<UnmatchedArtist, UnmatchedArtistId>;
137
+ hasUnmatchedArtists!: Sequelize.HasManyHasAssociationsMixin<UnmatchedArtist, UnmatchedArtistId>;
138
+ countUnmatchedArtists!: Sequelize.HasManyCountAssociationsMixin;
139
+
140
+ static initModel(sequelize: Sequelize.Sequelize): typeof Platform {
141
+ return Platform.init({
142
+ id: {
143
+ autoIncrement: true,
144
+ autoIncrementIdentity: true,
145
+ type: DataTypes.SMALLINT,
146
+ allowNull: false,
147
+ primaryKey: true
148
+ },
149
+ name: {
150
+ type: DataTypes.TEXT,
151
+ allowNull: false,
152
+ unique: "uk_name"
153
+ },
154
+ createDate: {
155
+ type: DataTypes.DATE,
156
+ allowNull: false,
157
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
158
+ field: 'create_date'
159
+ },
160
+ updateDate: {
161
+ type: DataTypes.DATE,
162
+ allowNull: false,
163
+ defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
164
+ field: 'update_date'
165
+ }
166
+ }, {
167
+ sequelize,
168
+ tableName: 'platform',
169
+ schema: 'eb',
170
+ timestamps: false,
171
+ indexes: [
172
+ {
173
+ name: "external_source_pkey",
174
+ unique: true,
175
+ fields: [
176
+ { name: "id" },
177
+ ]
178
+ },
179
+ {
180
+ name: "uk_name",
181
+ unique: true,
182
+ fields: [
183
+ { name: "name" },
184
+ ]
185
+ },
186
+ ]
187
+ });
188
+ }
189
+ }