@platform-modules/foreign-ministry 1.2.1 → 1.2.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.
@@ -36,7 +36,7 @@ __decorate([
36
36
  __metadata("design:type", Object)
37
37
  ], DiplomaticTitlesMaster.prototype, "title_in_arabic", void 0);
38
38
  __decorate([
39
- (0, typeorm_1.Column)({ type: 'enum', enum: TitleCategory, nullable: false }),
39
+ (0, typeorm_1.Column)({ type: 'enum', enum: TitleCategory, nullable: false, default: TitleCategory.EMPLOYEE }),
40
40
  __metadata("design:type", String)
41
41
  ], DiplomaticTitlesMaster.prototype, "category", void 0);
42
42
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -14,7 +14,7 @@ export class DiplomaticTitlesMaster extends BaseModel {
14
14
  @Column({ type: 'varchar', length: 255, nullable: true })
15
15
  title_in_arabic: string | null; // Arabic translation
16
16
 
17
- @Column({ type: 'enum', enum: TitleCategory, nullable: false })
17
+ @Column({ type: 'enum', enum: TitleCategory, nullable: false,default: TitleCategory.EMPLOYEE})
18
18
  category: TitleCategory; // Category: Employee or Non Employee
19
19
 
20
20
  @Column({ type: 'text', nullable: true })