90dc-core 1.9.0 → 1.9.2

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.
@@ -13,4 +13,5 @@ export declare class Subscription extends Model {
13
13
  user: PersistedUser;
14
14
  subscriptionLogs: SubscriptionLog[];
15
15
  createdAt: CreationOptional<Date> | null;
16
+ updatedAt: CreationOptional<Date> | null;
16
17
  }
@@ -4,7 +4,7 @@ var __decorate = this && this.__decorate || function(decorators, target, key, de
4
4
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, HasMany, Model, PrimaryKey, Table } from "sequelize-typescript";
7
+ import { BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, HasMany, Model, PrimaryKey, Table, UpdatedAt } from "sequelize-typescript";
8
8
  import { SubscriptionLog } from "./SubscriptionLog";
9
9
  import { PersistedUser } from "./PersistedUser";
10
10
  export let Subscription = class Subscription extends Model {
@@ -70,6 +70,16 @@ __decorate([
70
70
  defaultValue: new Date()
71
71
  })
72
72
  ], Subscription.prototype, "createdAt", void 0);
73
+ __decorate([
74
+ UpdatedAt,
75
+ Default(null) // Set the default value to null
76
+ ,
77
+ Column({
78
+ type: DataType.DATE,
79
+ allowNull: true,
80
+ defaultValue: new Date()
81
+ })
82
+ ], Subscription.prototype, "updatedAt", void 0);
73
83
  Subscription = __decorate([
74
84
  Table
75
85
  ], Subscription);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/dbmodels/Subscription.ts"],"sourcesContent":["import {\n BelongsTo,\n Column, CreatedAt,\n DataType, Default,\n ForeignKey,\n HasMany,\n Model,\n PrimaryKey,\n Table,\n} from \"sequelize-typescript\";\nimport { SubscriptionLog } from \"./SubscriptionLog\";\nimport {PersistedUser} from \"./PersistedUser\";\nimport type {CreationOptional} from \"sequelize\";\n\n@Table\nexport class Subscription extends Model {\n @ForeignKey(() => PersistedUser)\n @PrimaryKey\n @Column({\n type: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare identifier: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare platform: \"google\" | \"apple\" | \"mollie\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare status: \"active\" | \"canceled\" | \"expired\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare type: string;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare expiresOn: Date;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare startDate: Date;\n\n @BelongsTo(() => PersistedUser)\n declare user: PersistedUser;\n\n @HasMany(() => SubscriptionLog)\n declare subscriptionLogs: SubscriptionLog[];\n\n @CreatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare createdAt: CreationOptional<Date> | null;\n}\n"],"names":["BelongsTo","Column","CreatedAt","DataType","Default","ForeignKey","HasMany","Model","PrimaryKey","Table","SubscriptionLog","PersistedUser","Subscription","type","UUID","allowNull","primaryKey","TEXT","DATE","defaultValue","Date"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EAAEC,SAAS,EACjBC,QAAQ,EAAEC,OAAO,EACjBC,UAAU,EACVC,OAAO,EACPC,KAAK,EACLC,UAAU,EACVC,KAAK,QACA,uBAAuB;AAC9B,SAASC,eAAe,QAAQ,oBAAoB;AACpD,SAAQC,aAAa,QAAO,kBAAkB;AAI9C,WAAaC,eAAN,2BAA2BL;AAsClC,EAAC;;IArCEF,WAAW,IAAMM;IACjBH;IACAP,OAAO;QACNY,MAAMV,SAASW,IAAI;QACnBC,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GAPWJ;;IAUVX,OAAO;QAAEY,MAAMV,SAASc,IAAI;QAAEF,WAAW,KAAK;IAAC;GAVrCH;;IAaVX,OAAO;QAAEY,MAAMV,SAASc,IAAI;QAAEF,WAAW,KAAK;IAAC;GAbrCH;;IAgBVX,OAAO;QAAEY,MAAMV,SAASc,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhBrCH;;IAmBVX,OAAO;QAAEY,MAAMV,SAASc,IAAI;QAAEF,WAAW,KAAK;IAAC;GAnBrCH;;IAsBVX,OAAO;QAAEY,MAAMV,SAASe,IAAI;QAAEH,WAAW,KAAK;IAAC;GAtBrCH;;IAyBVX,OAAO;QAAEY,MAAMV,SAASe,IAAI;QAAEH,WAAW,KAAK;IAAC;GAzBrCH;;IA4BVZ,UAAU,IAAMW;GA5BNC;;IA+BVN,QAAQ,IAAMI;GA/BJE;;IAkCVV;IACAE,QAAQ,IAAI,EAAE,gCAAgC;;IAC9CH,OAAO;QAAEY,MAAMV,SAASe,IAAI;QAAEH,WAAW,IAAI;QAAEI,cAAc,IAAIC;IAAO;GApC9DR;AAAAA;IADZH;GACYG"}
1
+ {"version":3,"sources":["../../../src/lib/dbmodels/Subscription.ts"],"sourcesContent":["import {\n BelongsTo,\n Column, CreatedAt,\n DataType, Default,\n ForeignKey,\n HasMany,\n Model,\n PrimaryKey,\n Table, UpdatedAt,\n} from \"sequelize-typescript\";\nimport { SubscriptionLog } from \"./SubscriptionLog\";\nimport {PersistedUser} from \"./PersistedUser\";\nimport type {CreationOptional} from \"sequelize\";\n\n@Table\nexport class Subscription extends Model {\n @ForeignKey(() => PersistedUser)\n @PrimaryKey\n @Column({\n type: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare userUuid: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare identifier: string;\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare platform: \"google\" | \"apple\" | \"mollie\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare status: \"active\" | \"canceled\" | \"expired\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare type: string;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare expiresOn: Date;\n\n @Column({ type: DataType.DATE, allowNull: false })\n declare startDate: Date;\n\n @BelongsTo(() => PersistedUser)\n declare user: PersistedUser;\n\n @HasMany(() => SubscriptionLog)\n declare subscriptionLogs: SubscriptionLog[];\n\n @CreatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare createdAt: CreationOptional<Date> | null;\n\n @UpdatedAt\n @Default(null) // Set the default value to null\n @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })\n declare updatedAt: CreationOptional<Date> | null;\n}\n"],"names":["BelongsTo","Column","CreatedAt","DataType","Default","ForeignKey","HasMany","Model","PrimaryKey","Table","UpdatedAt","SubscriptionLog","PersistedUser","Subscription","type","UUID","allowNull","primaryKey","TEXT","DATE","defaultValue","Date"],"mappings":";;;;;;AAAA,SACEA,SAAS,EACTC,MAAM,EAAEC,SAAS,EACjBC,QAAQ,EAAEC,OAAO,EACjBC,UAAU,EACVC,OAAO,EACPC,KAAK,EACLC,UAAU,EACVC,KAAK,EAAEC,SAAS,QACX,uBAAuB;AAC9B,SAASC,eAAe,QAAQ,oBAAoB;AACpD,SAAQC,aAAa,QAAO,kBAAkB;AAI9C,WAAaC,eAAN,2BAA2BN;AA2ClC,EAAC;;IA1CEF,WAAW,IAAMO;IACjBJ;IACAP,OAAO;QACNa,MAAMX,SAASY,IAAI;QACnBC,WAAW,KAAK;QAChBC,YAAY,IAAI;IAClB;GAPWJ;;IAUVZ,OAAO;QAAEa,MAAMX,SAASe,IAAI;QAAEF,WAAW,KAAK;IAAC;GAVrCH;;IAaVZ,OAAO;QAAEa,MAAMX,SAASe,IAAI;QAAEF,WAAW,KAAK;IAAC;GAbrCH;;IAgBVZ,OAAO;QAAEa,MAAMX,SAASe,IAAI;QAAEF,WAAW,KAAK;IAAC;GAhBrCH;;IAmBVZ,OAAO;QAAEa,MAAMX,SAASe,IAAI;QAAEF,WAAW,KAAK;IAAC;GAnBrCH;;IAsBVZ,OAAO;QAAEa,MAAMX,SAASgB,IAAI;QAAEH,WAAW,KAAK;IAAC;GAtBrCH;;IAyBVZ,OAAO;QAAEa,MAAMX,SAASgB,IAAI;QAAEH,WAAW,KAAK;IAAC;GAzBrCH;;IA4BVb,UAAU,IAAMY;GA5BNC;;IA+BVP,QAAQ,IAAMK;GA/BJE;;IAkCVX;IACAE,QAAQ,IAAI,EAAE,gCAAgC;;IAC9CH,OAAO;QAAEa,MAAMX,SAASgB,IAAI;QAAEH,WAAW,IAAI;QAAEI,cAAc,IAAIC;IAAO;GApC9DR;;IAuCVH;IACAN,QAAQ,IAAI,EAAE,gCAAgC;;IAC9CH,OAAO;QAAEa,MAAMX,SAASgB,IAAI;QAAEH,WAAW,IAAI;QAAEI,cAAc,IAAIC;IAAO;GAzC9DR;AAAAA;IADZJ;GACYI"}
@@ -18,5 +18,6 @@ export declare class ExercisesModels extends Model implements ExerciseModel {
18
18
  homeWorkout: boolean;
19
19
  programType: ProgramTypes[];
20
20
  graphData: "reps" | "weight";
21
+ imageUrl: string;
21
22
  translatedExercises: TranslatedExerciseModel[];
22
23
  }
@@ -107,6 +107,12 @@ __decorate([
107
107
  allowNull: false
108
108
  })
109
109
  ], ExercisesModels.prototype, "graphData", void 0);
110
+ __decorate([
111
+ Column({
112
+ type: DataType.TEXT,
113
+ allowNull: false
114
+ })
115
+ ], ExercisesModels.prototype, "imageUrl", void 0);
110
116
  __decorate([
111
117
  HasMany(()=>TranslatedExerciseModel)
112
118
  ], ExercisesModels.prototype, "translatedExercises", void 0);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/program/ExerciseModels.ts"],"sourcesContent":["import { Column, DataType, Default, HasMany, Model, Table } from \"sequelize-typescript\";\nimport type {ExerciseModel, ProgramTypes} from \"../../models/ExerciseInterfaces\";\nimport {TranslatedExerciseModel} from \"./TranslatedExerciseModel\";\n\n@Table\nexport class ExercisesModels extends Model implements ExerciseModel {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare name: string;\n\n @Column({ type: DataType.STRING, allowNull: true })\n declare restTime: string;\n\n @Column({ type: DataType.STRING(2048), allowNull: false })\n declare pointers: string;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare isCustom: boolean;\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare url: string;\n\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare level: string[];\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare hasPriority: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare isCompound: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare hasVariations: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare needsEquipment: boolean;\n\n @Column({ type: DataType.JSONB, allowNull: false })\n declare variations: object;\n\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare muscles: string[];\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare homeWorkout: boolean;\n\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare programType: ProgramTypes[];\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare graphData: \"reps\" | \"weight\";\n\n @HasMany(() => TranslatedExerciseModel)\n declare translatedExercises: TranslatedExerciseModel[];\n}\n"],"names":["Column","DataType","Default","HasMany","Model","Table","TranslatedExerciseModel","ExercisesModels","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","STRING","BOOLEAN","ARRAY","JSONB"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAExF,SAAQC,uBAAuB,QAAO,4BAA4B;AAGlE,WAAaC,kBAAN,8BAA8BH;AAyDrC,EAAC;;IAxDIF,QAAQD,SAASO,MAAM;IACvBR,OAAO;QACJS,MAAMR,SAASS,IAAI;QACnBC,cAAcV,SAASS,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GAPSN;;IAURP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,KAAK;IAAC;GAVzCL;;IAaRP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,IAAI;IAAC;GAbxCL;;IAgBRP,OAAO;QAAES,MAAMR,SAASa,MAAM,CAAC;QAAOF,WAAW,KAAK;IAAC;GAhB/CL;;IAmBRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,IAAI;IAAC;GAnBzCL;;IAsBRP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,KAAK;IAAC;GAtBzCL;;IAyBRP,OAAO;QAAES,MAAMR,SAASe,KAAK,CAACf,SAASa,MAAM;QAAGF,WAAW,KAAK;IAAC;GAzBzDL;;IA4BRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GA5B1CL;;IA+BRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GA/B1CL;;IAkCRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GAlC1CL;;IAqCRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GArC1CL;;IAwCRP,OAAO;QAAES,MAAMR,SAASgB,KAAK;QAAEL,WAAW,KAAK;IAAC;GAxCxCL;;IA2CRP,OAAO;QAAES,MAAMR,SAASe,KAAK,CAACf,SAASa,MAAM;QAAGF,WAAW,KAAK;IAAC;GA3CzDL;;IA8CRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GA9C1CL;;IAiDRP,OAAO;QAAES,MAAMR,SAASe,KAAK,CAACf,SAASa,MAAM;QAAGF,WAAW,KAAK;IAAC;GAjDzDL;;IAoDRP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,KAAK;IAAC;GApDzCL;;IAuDRJ,QAAQ,IAAMG;GAvDNC;AAAAA;IADZF;GACYE"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/program/ExerciseModels.ts"],"sourcesContent":["import { Column, DataType, Default, HasMany, Model, Table } from \"sequelize-typescript\";\nimport type {ExerciseModel, ProgramTypes} from \"../../models/ExerciseInterfaces\";\nimport {TranslatedExerciseModel} from \"./TranslatedExerciseModel\";\n\n@Table\nexport class ExercisesModels extends Model implements ExerciseModel {\n @Default(DataType.UUIDV4)\n @Column({\n type: DataType.UUID,\n defaultValue: DataType.UUID,\n allowNull: false,\n primaryKey: true,\n })\n declare uuid: string;\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare name: string;\n\n @Column({ type: DataType.STRING, allowNull: true })\n declare restTime: string;\n\n @Column({ type: DataType.STRING(2048), allowNull: false })\n declare pointers: string;\n\n @Column({ type: DataType.BOOLEAN, allowNull: true })\n declare isCustom: boolean;\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare url: string;\n\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare level: string[];\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare hasPriority: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare isCompound: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare hasVariations: boolean;\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare needsEquipment: boolean;\n\n @Column({ type: DataType.JSONB, allowNull: false })\n declare variations: object;\n\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare muscles: string[];\n\n @Column({ type: DataType.BOOLEAN, allowNull: false })\n declare homeWorkout: boolean;\n\n @Column({ type: DataType.ARRAY(DataType.STRING), allowNull: false })\n declare programType: ProgramTypes[];\n\n @Column({ type: DataType.STRING, allowNull: false })\n declare graphData: \"reps\" | \"weight\";\n\n @Column({ type: DataType.TEXT, allowNull: false })\n declare imageUrl: string;\n\n @HasMany(() => TranslatedExerciseModel)\n declare translatedExercises: TranslatedExerciseModel[];\n}\n"],"names":["Column","DataType","Default","HasMany","Model","Table","TranslatedExerciseModel","ExercisesModels","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","STRING","BOOLEAN","ARRAY","JSONB","TEXT"],"mappings":";;;;;;AAAA,SAASA,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAExF,SAAQC,uBAAuB,QAAO,4BAA4B;AAGlE,WAAaC,kBAAN,8BAA8BH;AA4DrC,EAAC;;IA3DIF,QAAQD,SAASO,MAAM;IACvBR,OAAO;QACJS,MAAMR,SAASS,IAAI;QACnBC,cAAcV,SAASS,IAAI;QAC3BE,WAAW,KAAK;QAChBC,YAAY,IAAI;IACpB;GAPSN;;IAURP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,KAAK;IAAC;GAVzCL;;IAaRP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,IAAI;IAAC;GAbxCL;;IAgBRP,OAAO;QAAES,MAAMR,SAASa,MAAM,CAAC;QAAOF,WAAW,KAAK;IAAC;GAhB/CL;;IAmBRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,IAAI;IAAC;GAnBzCL;;IAsBRP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,KAAK;IAAC;GAtBzCL;;IAyBRP,OAAO;QAAES,MAAMR,SAASe,KAAK,CAACf,SAASa,MAAM;QAAGF,WAAW,KAAK;IAAC;GAzBzDL;;IA4BRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GA5B1CL;;IA+BRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GA/B1CL;;IAkCRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GAlC1CL;;IAqCRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GArC1CL;;IAwCRP,OAAO;QAAES,MAAMR,SAASgB,KAAK;QAAEL,WAAW,KAAK;IAAC;GAxCxCL;;IA2CRP,OAAO;QAAES,MAAMR,SAASe,KAAK,CAACf,SAASa,MAAM;QAAGF,WAAW,KAAK;IAAC;GA3CzDL;;IA8CRP,OAAO;QAAES,MAAMR,SAASc,OAAO;QAAEH,WAAW,KAAK;IAAC;GA9C1CL;;IAiDRP,OAAO;QAAES,MAAMR,SAASe,KAAK,CAACf,SAASa,MAAM;QAAGF,WAAW,KAAK;IAAC;GAjDzDL;;IAoDRP,OAAO;QAAES,MAAMR,SAASa,MAAM;QAAEF,WAAW,KAAK;IAAC;GApDzCL;;IAuDRP,OAAO;QAAES,MAAMR,SAASiB,IAAI;QAAEN,WAAW,KAAK;IAAC;GAvDvCL;;IA0DRJ,QAAQ,IAAMG;GA1DNC;AAAAA;IADZF;GACYE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "A package that contains utils and interfaces used to create 90dc",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -6,7 +6,7 @@ import {
6
6
  HasMany,
7
7
  Model,
8
8
  PrimaryKey,
9
- Table,
9
+ Table, UpdatedAt,
10
10
  } from "sequelize-typescript";
11
11
  import { SubscriptionLog } from "./SubscriptionLog";
12
12
  import {PersistedUser} from "./PersistedUser";
@@ -51,4 +51,9 @@ export class Subscription extends Model {
51
51
  @Default(null) // Set the default value to null
52
52
  @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })
53
53
  declare createdAt: CreationOptional<Date> | null;
54
+
55
+ @UpdatedAt
56
+ @Default(null) // Set the default value to null
57
+ @Column({ type: DataType.DATE, allowNull: true, defaultValue: new Date() })
58
+ declare updatedAt: CreationOptional<Date> | null;
54
59
  }
@@ -58,6 +58,9 @@ export class ExercisesModels extends Model implements ExerciseModel {
58
58
  @Column({ type: DataType.STRING, allowNull: false })
59
59
  declare graphData: "reps" | "weight";
60
60
 
61
+ @Column({ type: DataType.TEXT, allowNull: false })
62
+ declare imageUrl: string;
63
+
61
64
  @HasMany(() => TranslatedExerciseModel)
62
65
  declare translatedExercises: TranslatedExerciseModel[];
63
66
  }