90dc-core 1.16.25 → 1.16.26

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.
@@ -32,7 +32,10 @@ _ts_decorate([
32
32
  })
33
33
  ], UserCoach.prototype, "unassignedAt", void 0);
34
34
  _ts_decorate([
35
- BelongsTo(()=>PersistedUser, 'coachUuid')
35
+ BelongsTo(()=>PersistedUser, {
36
+ foreignKey: 'coachUuid',
37
+ as: 'assignedCoach'
38
+ })
36
39
  ], UserCoach.prototype, "coach", void 0);
37
40
  UserCoach = _ts_decorate([
38
41
  Table({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/dbmodels/user/UserCoach.ts"],"sourcesContent":["import {BelongsTo, Column, DataType, ForeignKey, Model, PrimaryKey, Table} from \"sequelize-typescript\";\nimport {PersistedUser} from \"./PersistedUser.js\";\n\n@Table({\n tableName: 'UserCoaches',\n})\nexport class UserCoach extends Model {\n @PrimaryKey\n @ForeignKey(() => PersistedUser)\n @Column(DataType.UUID)\n declare userUuid: string;\n\n @PrimaryKey\n @ForeignKey(() => PersistedUser)\n @Column(DataType.UUID)\n declare coachUuid: string;\n\n @Column({\n type: DataType.DATE,\n allowNull: false,\n defaultValue: DataType.NOW,\n })\n declare assignedAt: Date;\n\n @Column({\n type: DataType.DATE,\n allowNull: true,\n })\n declare unassignedAt: Date | null;\n\n @BelongsTo(() => PersistedUser, 'coachUuid')\n declare coach: PersistedUser;\n}"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","PrimaryKey","Table","PersistedUser","UserCoach","UUID","type","DATE","allowNull","defaultValue","NOW","tableName"],"mappings":";;;;;;AAAA,SAAQA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,UAAU,EAAEC,KAAK,QAAO,uBAAuB;AACvG,SAAQC,aAAa,QAAO,qBAAqB;AAKjD,OAAO,MAAMC,kBAAkBJ;AA0B/B;;;mBAxBsBG;oBACDE;;;;mBAICF;oBACDE;;;;QAIbC,MAAMR,SAASS,IAAI;QACnBC,WAAW;QACXC,cAAcX,SAASY,GAAG;;;;;QAK1BJ,MAAMR,SAASS,IAAI;QACnBC,WAAW;;;;kBAIEL;;;;QA1BjBQ,WAAW"}
1
+ {"version":3,"sources":["../../../../src/lib/dbmodels/user/UserCoach.ts"],"sourcesContent":["import {BelongsTo, Column, DataType, ForeignKey, Model, PrimaryKey, Table} from \"sequelize-typescript\";\nimport {PersistedUser} from \"./PersistedUser.js\";\n\n@Table({\n tableName: 'UserCoaches',\n})\nexport class UserCoach extends Model {\n @PrimaryKey\n @ForeignKey(() => PersistedUser)\n @Column(DataType.UUID)\n declare userUuid: string;\n\n @PrimaryKey\n @ForeignKey(() => PersistedUser)\n @Column(DataType.UUID)\n declare coachUuid: string;\n\n @Column({\n type: DataType.DATE,\n allowNull: false,\n defaultValue: DataType.NOW,\n })\n declare assignedAt: Date;\n\n @Column({\n type: DataType.DATE,\n allowNull: true,\n })\n declare unassignedAt: Date | null;\n\n @BelongsTo(() => PersistedUser, { foreignKey: 'coachUuid', as: 'assignedCoach' })\n declare coach: PersistedUser;\n}"],"names":["BelongsTo","Column","DataType","ForeignKey","Model","PrimaryKey","Table","PersistedUser","UserCoach","UUID","type","DATE","allowNull","defaultValue","NOW","foreignKey","as","tableName"],"mappings":";;;;;;AAAA,SAAQA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,UAAU,EAAEC,KAAK,QAAO,uBAAuB;AACvG,SAAQC,aAAa,QAAO,qBAAqB;AAKjD,OAAO,MAAMC,kBAAkBJ;AA0B/B;;;mBAxBsBG;oBACDE;;;;mBAICF;oBACDE;;;;QAIbC,MAAMR,SAASS,IAAI;QACnBC,WAAW;QACXC,cAAcX,SAASY,GAAG;;;;;QAK1BJ,MAAMR,SAASS,IAAI;QACnBC,WAAW;;;;kBAIEL;QAAiBQ,YAAY;QAAaC,IAAI;;;;;QA1B/DC,WAAW"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "90dc-core",
3
- "version": "1.16.25",
3
+ "version": "1.16.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",