@ashutoshvohra136/tenant-db-contract 1.0.12 → 1.0.13

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.
@@ -24,6 +24,7 @@ export declare class Target extends BaseEntity {
24
24
  subCategory?: Catagory;
25
25
  brand?: Brands;
26
26
  users: Users;
27
+ achievement: string;
27
28
  createdBy?: number;
28
29
  created_at: Date;
29
30
  updated_at: Date;
@@ -131,6 +131,11 @@ __decorate([
131
131
  (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
132
132
  __metadata("design:type", Users_1.Users)
133
133
  ], Target.prototype, "users", void 0);
134
+ __decorate([
135
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: '0' }) // Keep as `varchar` if achievement is a string
136
+ ,
137
+ __metadata("design:type", String)
138
+ ], Target.prototype, "achievement", void 0);
134
139
  __decorate([
135
140
  (0, typeorm_1.Column)({ type: 'int', name: 'created_by', nullable: true }),
136
141
  __metadata("design:type", Number)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashutoshvohra136/tenant-db-contract",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -159,6 +159,9 @@ export class Target extends BaseEntity {
159
159
  users!: Users;
160
160
 
161
161
 
162
+ @Column({ type: 'varchar', nullable: true, default: '0' }) // Keep as `varchar` if achievement is a string
163
+ achievement!: string;
164
+
162
165
  // 🔹 Audit
163
166
  @Column({ type: 'int', name: 'created_by', nullable: true })
164
167
  createdBy?: number;
@@ -172,4 +175,9 @@ export class Target extends BaseEntity {
172
175
  // 🔹 Achievement history
173
176
  @OneToMany(() => AchievementHistory, (ah) => ah.target)
174
177
  AchHistory!: AchievementHistory[];
178
+
179
+
180
+
181
+
182
+
175
183
  }