@earbug/db-models 0.0.39 → 0.0.41

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.
@@ -29,10 +29,11 @@ export interface JukeboxSessionAttributes {
29
29
  description?: string;
30
30
  jukeboxStatusId: number;
31
31
  durationMs: number;
32
+ pausedAt?: Date;
32
33
  }
33
34
  export type JukeboxSessionPk = "id";
34
35
  export type JukeboxSessionId = JukeboxSession[JukeboxSessionPk];
35
- export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs";
36
+ export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs" | "pausedAt";
36
37
  export type JukeboxSessionCreationAttributes = Optional<JukeboxSessionAttributes, JukeboxSessionOptionalAttributes>;
37
38
  export declare class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessionCreationAttributes> implements JukeboxSessionAttributes {
38
39
  typeId: number;
@@ -47,6 +48,7 @@ export declare class JukeboxSession extends Model<JukeboxSessionAttributes, Juke
47
48
  description?: string;
48
49
  jukeboxStatusId: number;
49
50
  durationMs: number;
51
+ pausedAt?: Date;
50
52
  accessType: JukeboxAccessType;
51
53
  getAccessType: Sequelize.BelongsToGetAssociationMixin<JukeboxAccessType>;
52
54
  setAccessType: Sequelize.BelongsToSetAssociationMixin<JukeboxAccessType, JukeboxAccessTypeId>;
@@ -112,6 +112,11 @@ class JukeboxSession extends sequelize_1.Model {
112
112
  allowNull: false,
113
113
  defaultValue: 0,
114
114
  field: 'duration_ms'
115
+ },
116
+ pausedAt: {
117
+ type: sequelize_1.DataTypes.DATE,
118
+ allowNull: true,
119
+ field: 'paused_at'
115
120
  }
116
121
  }, {
117
122
  sequelize,
package/dist/MerchItem.js CHANGED
@@ -112,6 +112,13 @@ class MerchItem extends sequelize_1.Model {
112
112
  { name: "canon_artist_id" },
113
113
  ]
114
114
  },
115
+ {
116
+ name: "idx_merch_item_artist_create_date",
117
+ fields: [
118
+ { name: "canon_artist_id" },
119
+ { name: "create_date", order: "DESC" },
120
+ ]
121
+ },
115
122
  {
116
123
  name: "merch_item_pkey",
117
124
  unique: true,
@@ -101,6 +101,13 @@ class NewsArticle extends sequelize_1.Model {
101
101
  { name: "canon_artist_id" },
102
102
  ]
103
103
  },
104
+ {
105
+ name: "idx_news_article_artist_publish_date",
106
+ fields: [
107
+ { name: "canon_artist_id" },
108
+ { name: "article_publish_date", order: "DESC" },
109
+ ]
110
+ },
104
111
  {
105
112
  name: "news_article_pkey",
106
113
  unique: true,
@@ -30,11 +30,12 @@ export interface JukeboxSessionAttributes {
30
30
  description?: string;
31
31
  jukeboxStatusId: number;
32
32
  durationMs: number;
33
+ pausedAt?: Date;
33
34
  }
34
35
 
35
36
  export type JukeboxSessionPk = "id";
36
37
  export type JukeboxSessionId = JukeboxSession[JukeboxSessionPk];
37
- export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs";
38
+ export type JukeboxSessionOptionalAttributes = "trackQueue" | "stateMachineArn" | "id" | "createdAt" | "updatedAt" | "description" | "jukeboxStatusId" | "durationMs" | "pausedAt";
38
39
  export type JukeboxSessionCreationAttributes = Optional<JukeboxSessionAttributes, JukeboxSessionOptionalAttributes>;
39
40
 
40
41
  export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessionCreationAttributes> implements JukeboxSessionAttributes {
@@ -50,6 +51,7 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
50
51
  description?: string;
51
52
  jukeboxStatusId!: number;
52
53
  durationMs!: number;
54
+ pausedAt?: Date;
53
55
 
54
56
  // JukeboxSession belongsTo JukeboxAccessType via accessTypeId
55
57
  accessType!: JukeboxAccessType;
@@ -294,6 +296,11 @@ export class JukeboxSession extends Model<JukeboxSessionAttributes, JukeboxSessi
294
296
  allowNull: false,
295
297
  defaultValue: 0,
296
298
  field: 'duration_ms'
299
+ },
300
+ pausedAt: {
301
+ type: DataTypes.DATE,
302
+ allowNull: true,
303
+ field: 'paused_at'
297
304
  }
298
305
  }, {
299
306
  sequelize,
@@ -152,6 +152,13 @@ export class MerchItem extends Model<MerchItemAttributes, MerchItemCreationAttri
152
152
  { name: "canon_artist_id" },
153
153
  ]
154
154
  },
155
+ {
156
+ name: "idx_merch_item_artist_create_date",
157
+ fields: [
158
+ { name: "canon_artist_id" },
159
+ { name: "create_date", order: "DESC" },
160
+ ]
161
+ },
155
162
  {
156
163
  name: "merch_item_pkey",
157
164
  unique: true,
@@ -131,6 +131,13 @@ export class NewsArticle extends Model<NewsArticleAttributes, NewsArticleCreatio
131
131
  { name: "canon_artist_id" },
132
132
  ]
133
133
  },
134
+ {
135
+ name: "idx_news_article_artist_publish_date",
136
+ fields: [
137
+ { name: "canon_artist_id" },
138
+ { name: "article_publish_date", order: "DESC" },
139
+ ]
140
+ },
134
141
  {
135
142
  name: "news_article_pkey",
136
143
  unique: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earbug/db-models",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {