@platform-modules/foreign-ministry 1.0.104 → 1.0.105

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.
@@ -80,7 +80,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
80
80
  username: process.env.DB_USER || 'postgres',
81
81
  password: process.env.DB_PASS || 'postgres',
82
82
  database: process.env.DB_NAME || 'common_models',
83
- synchronize: false, // auto-create tables (disable in prod)
83
+ synchronize: true, // auto-create tables (disable in prod)
84
84
  logging: false,
85
85
  entities: [
86
86
  user_1.User,
@@ -71,7 +71,7 @@ __decorate([
71
71
  __metadata("design:type", Boolean)
72
72
  ], WorkflowHierarchy.prototype, "is_required", void 0);
73
73
  __decorate([
74
- (0, typeorm_1.Column)({ type: 'boolean', default: false }),
74
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
75
75
  __metadata("design:type", String)
76
76
  ], WorkflowHierarchy.prototype, "task_type", void 0);
77
77
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -86,7 +86,7 @@ export const AppDataSource = new DataSource({
86
86
  username: process.env.DB_USER || 'postgres',
87
87
  password: process.env.DB_PASS || 'postgres',
88
88
  database: process.env.DB_NAME || 'common_models',
89
- synchronize: false, // auto-create tables (disable in prod)
89
+ synchronize: true, // auto-create tables (disable in prod)
90
90
  logging: false,
91
91
  entities: [
92
92
  User,
@@ -36,7 +36,7 @@ export class WorkflowHierarchy extends BaseModel {
36
36
  @Column({ type: 'boolean', default: true })
37
37
  is_required: boolean;
38
38
 
39
- @Column({ type: 'boolean', default: false })
39
+ @Column({ type: 'varchar', nullable:true })
40
40
  task_type: string;
41
41
 
42
42
  @ManyToOne(() => WorkflowDefinitions, { onDelete: 'CASCADE' })