@earbug/db-models 0.0.5 → 0.0.6

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.
@@ -27,10 +27,11 @@ export interface PlatformArtistAttributes {
27
27
  genres?: string[];
28
28
  lastHarvestDate?: Date;
29
29
  lastHarvestLog?: string;
30
+ images?: object;
30
31
  }
31
32
  export type PlatformArtistPk = "id";
32
33
  export type PlatformArtistId = PlatformArtist[PlatformArtistPk];
33
- export type PlatformArtistOptionalAttributes = "id" | "externalUri" | "createDate" | "updateDate" | "genres" | "lastHarvestDate" | "lastHarvestLog";
34
+ export type PlatformArtistOptionalAttributes = "id" | "externalUri" | "createDate" | "updateDate" | "genres" | "lastHarvestDate" | "lastHarvestLog" | "images";
34
35
  export type PlatformArtistCreationAttributes = Optional<PlatformArtistAttributes, PlatformArtistOptionalAttributes>;
35
36
  export declare class PlatformArtist extends Model<PlatformArtistAttributes, PlatformArtistCreationAttributes> implements PlatformArtistAttributes {
36
37
  id: string;
@@ -44,6 +45,7 @@ export declare class PlatformArtist extends Model<PlatformArtistAttributes, Plat
44
45
  genres?: string[];
45
46
  lastHarvestDate?: Date;
46
47
  lastHarvestLog?: string;
48
+ images?: object;
47
49
  platform: Platform;
48
50
  getPlatform: Sequelize.BelongsToGetAssociationMixin<Platform>;
49
51
  setPlatform: Sequelize.BelongsToSetAssociationMixin<Platform, PlatformId>;
@@ -90,6 +90,10 @@ class PlatformArtist extends sequelize_1.Model {
90
90
  type: sequelize_1.DataTypes.TEXT,
91
91
  allowNull: true,
92
92
  field: 'last_harvest_log'
93
+ },
94
+ images: {
95
+ type: sequelize_1.DataTypes.JSONB,
96
+ allowNull: true
93
97
  }
94
98
  }, {
95
99
  sequelize,
@@ -28,11 +28,12 @@ export interface PlatformArtistAttributes {
28
28
  genres?: string[];
29
29
  lastHarvestDate?: Date;
30
30
  lastHarvestLog?: string;
31
+ images?: object;
31
32
  }
32
33
 
33
34
  export type PlatformArtistPk = "id";
34
35
  export type PlatformArtistId = PlatformArtist[PlatformArtistPk];
35
- export type PlatformArtistOptionalAttributes = "id" | "externalUri" | "createDate" | "updateDate" | "genres" | "lastHarvestDate" | "lastHarvestLog";
36
+ export type PlatformArtistOptionalAttributes = "id" | "externalUri" | "createDate" | "updateDate" | "genres" | "lastHarvestDate" | "lastHarvestLog" | "images";
36
37
  export type PlatformArtistCreationAttributes = Optional<PlatformArtistAttributes, PlatformArtistOptionalAttributes>;
37
38
 
38
39
  export class PlatformArtist extends Model<PlatformArtistAttributes, PlatformArtistCreationAttributes> implements PlatformArtistAttributes {
@@ -47,6 +48,7 @@ export class PlatformArtist extends Model<PlatformArtistAttributes, PlatformArti
47
48
  genres?: string[];
48
49
  lastHarvestDate?: Date;
49
50
  lastHarvestLog?: string;
51
+ images?: object;
50
52
 
51
53
  // PlatformArtist belongsTo Platform via platformId
52
54
  platform!: Platform;
@@ -285,6 +287,10 @@ export class PlatformArtist extends Model<PlatformArtistAttributes, PlatformArti
285
287
  type: DataTypes.TEXT,
286
288
  allowNull: true,
287
289
  field: 'last_harvest_log'
290
+ },
291
+ images: {
292
+ type: DataTypes.JSONB,
293
+ allowNull: true
288
294
  }
289
295
  }, {
290
296
  sequelize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earbug/db-models",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "dist/init-models.js",
5
5
  "types": "dist/init-models.d.ts",
6
6
  "scripts": {