@earbug/db-models 0.0.35 → 0.0.37

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.
@@ -15,10 +15,14 @@ export interface UserCommentsAttributes {
15
15
  deleted: boolean;
16
16
  createDate: Date;
17
17
  updateDate: Date;
18
+ modifiedComment?: string;
19
+ moderationScore?: number;
20
+ moderationLevel?: string;
21
+ strippedUrls?: object;
18
22
  }
19
23
  export type UserCommentsPk = "id";
20
24
  export type UserCommentsId = UserComments[UserCommentsPk];
21
- export type UserCommentsOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "replyCommentId" | "createDate" | "updateDate";
25
+ export type UserCommentsOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "replyCommentId" | "createDate" | "updateDate" | "modifiedComment" | "moderationScore" | "moderationLevel" | "strippedUrls";
22
26
  export type UserCommentsCreationAttributes = Optional<UserCommentsAttributes, UserCommentsOptionalAttributes>;
23
27
  export declare class UserComments extends Model<UserCommentsAttributes, UserCommentsCreationAttributes> implements UserCommentsAttributes {
24
28
  appUserId: string;
@@ -31,6 +35,10 @@ export declare class UserComments extends Model<UserCommentsAttributes, UserComm
31
35
  deleted: boolean;
32
36
  createDate: Date;
33
37
  updateDate: Date;
38
+ modifiedComment?: string;
39
+ moderationScore?: number;
40
+ moderationLevel?: string;
41
+ strippedUrls?: object;
34
42
  appUser: AppUser;
35
43
  getAppUser: Sequelize.BelongsToGetAssociationMixin<AppUser>;
36
44
  setAppUser: Sequelize.BelongsToSetAssociationMixin<AppUser, AppUserId>;
@@ -100,6 +100,26 @@ class UserComments extends sequelize_1.Model {
100
100
  allowNull: false,
101
101
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
102
102
  field: 'update_date'
103
+ },
104
+ modifiedComment: {
105
+ type: sequelize_1.DataTypes.STRING(1000),
106
+ allowNull: true,
107
+ field: 'modified_comment'
108
+ },
109
+ moderationScore: {
110
+ type: sequelize_1.DataTypes.DECIMAL,
111
+ allowNull: true,
112
+ field: 'moderation_score'
113
+ },
114
+ moderationLevel: {
115
+ type: sequelize_1.DataTypes.STRING(10),
116
+ allowNull: true,
117
+ field: 'moderation_level'
118
+ },
119
+ strippedUrls: {
120
+ type: sequelize_1.DataTypes.JSONB,
121
+ allowNull: true,
122
+ field: 'stripped_urls'
103
123
  }
104
124
  }, {
105
125
  sequelize,
@@ -16,11 +16,15 @@ export interface UserCommentsAttributes {
16
16
  deleted: boolean;
17
17
  createDate: Date;
18
18
  updateDate: Date;
19
+ modifiedComment?: string;
20
+ moderationScore?: number;
21
+ moderationLevel?: string;
22
+ strippedUrls?: object;
19
23
  }
20
24
 
21
25
  export type UserCommentsPk = "id";
22
26
  export type UserCommentsId = UserComments[UserCommentsPk];
23
- export type UserCommentsOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "replyCommentId" | "createDate" | "updateDate";
27
+ export type UserCommentsOptionalAttributes = "jukeboxId" | "playlistId" | "radioShowId" | "id" | "replyCommentId" | "createDate" | "updateDate" | "modifiedComment" | "moderationScore" | "moderationLevel" | "strippedUrls";
24
28
  export type UserCommentsCreationAttributes = Optional<UserCommentsAttributes, UserCommentsOptionalAttributes>;
25
29
 
26
30
  export class UserComments extends Model<UserCommentsAttributes, UserCommentsCreationAttributes> implements UserCommentsAttributes {
@@ -34,6 +38,10 @@ export class UserComments extends Model<UserCommentsAttributes, UserCommentsCrea
34
38
  deleted!: boolean;
35
39
  createDate!: Date;
36
40
  updateDate!: Date;
41
+ modifiedComment?: string;
42
+ moderationScore?: number;
43
+ moderationLevel?: string;
44
+ strippedUrls?: object;
37
45
 
38
46
  // UserComments belongsTo AppUser via appUserId
39
47
  appUser!: AppUser;
@@ -134,6 +142,26 @@ export class UserComments extends Model<UserCommentsAttributes, UserCommentsCrea
134
142
  allowNull: false,
135
143
  defaultValue: Sequelize.Sequelize.literal('CURRENT_TIMESTAMP'),
136
144
  field: 'update_date'
145
+ },
146
+ modifiedComment: {
147
+ type: DataTypes.STRING(1000),
148
+ allowNull: true,
149
+ field: 'modified_comment'
150
+ },
151
+ moderationScore: {
152
+ type: DataTypes.DECIMAL,
153
+ allowNull: true,
154
+ field: 'moderation_score'
155
+ },
156
+ moderationLevel: {
157
+ type: DataTypes.STRING(10),
158
+ allowNull: true,
159
+ field: 'moderation_level'
160
+ },
161
+ strippedUrls: {
162
+ type: DataTypes.JSONB,
163
+ allowNull: true,
164
+ field: 'stripped_urls'
137
165
  }
138
166
  }, {
139
167
  sequelize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earbug/db-models",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {