@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.
package/dist/entities/target.js
CHANGED
|
@@ -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
package/src/entities/target.ts
CHANGED
|
@@ -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
|
}
|