finamaze_schema 1.29.0 → 1.31.0
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/entity/manager.entity.js +1 -1
- package/dist/entity/manager.entity.js.map +1 -1
- package/dist/entity/user.entity.d.ts +11 -16
- package/dist/entity/user.entity.js +20 -42
- package/dist/entity/user.entity.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/migrations/{1727451705010-goalpla.d.ts → 1733323133759-v1.d.ts} +1 -1
- package/dist/migrations/1733323133759-v1.js +38 -0
- package/dist/migrations/1733323133759-v1.js.map +1 -0
- package/dist/migrations/{1727449258977-goalpla.d.ts → 1733996187627-removeUniqueValue.d.ts} +1 -1
- package/dist/migrations/1733996187627-removeUniqueValue.js +18 -0
- package/dist/migrations/1733996187627-removeUniqueValue.js.map +1 -0
- package/dist/migrations/{1727446645786-goalpla.d.ts → 1734104865215-v2.d.ts} +1 -1
- package/dist/migrations/1734104865215-v2.js +26 -0
- package/dist/migrations/1734104865215-v2.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/entity/manager.entity.ts +53 -48
- package/src/entity/user.entity.ts +47 -56
- package/src/index.ts +0 -3
- package/src/migrations/1733323133759-v1.ts +37 -0
- package/src/migrations/1734104865215-v2.ts +24 -0
- package/dist/entity/email.entity.d.ts +0 -6
- package/dist/entity/email.entity.js +0 -33
- package/dist/entity/email.entity.js.map +0 -1
- package/dist/entity/goal-plan.d.ts +0 -13
- package/dist/entity/goal-plan.js +0 -64
- package/dist/entity/goal-plan.js.map +0 -1
- package/dist/entity/goalPlan.entity.d.ts +0 -13
- package/dist/entity/goalPlan.entity.js +0 -64
- package/dist/entity/goalPlan.entity.js.map +0 -1
- package/dist/migrations/1727446645786-goalpla.js +0 -18
- package/dist/migrations/1727446645786-goalpla.js.map +0 -1
- package/dist/migrations/1727449258977-goalpla.js +0 -18
- package/dist/migrations/1727449258977-goalpla.js.map +0 -1
- package/dist/migrations/1727451705010-goalpla.js +0 -18
- package/dist/migrations/1727451705010-goalpla.js.map +0 -1
- package/dist/migrations/1727456964489-goalpla.d.ts +0 -6
- package/dist/migrations/1727456964489-goalpla.js +0 -18
- package/dist/migrations/1727456964489-goalpla.js.map +0 -1
- package/src/entity/email.entity.ts +0 -14
- package/src/entity/goalPlan.entity.ts +0 -38
- package/src/entity/phone-number.entity.ts +0 -14
@@ -76,6 +76,6 @@ __decorate([
|
|
76
76
|
], Manager.prototype, "updated_at", void 0);
|
77
77
|
exports.Manager = Manager = __decorate([
|
78
78
|
(0, typeorm_1.Entity)(),
|
79
|
-
(0, typeorm_1.Unique)([
|
79
|
+
(0, typeorm_1.Unique)(["email"])
|
80
80
|
], Manager);
|
81
81
|
//# sourceMappingURL=manager.entity.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"manager.entity.js","sourceRoot":"","sources":["../../src/entity/manager.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"manager.entity.js","sourceRoot":"","sources":["../../src/entity/manager.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAIV,IAAM,OAAO,GAAb,MAAM,OAAO;CA6CnB,CAAA;AA7CY,0BAAO;AAElB;IADC,IAAA,gCAAsB,GAAE;;mCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAGjB;IADC,IAAA,gBAAM,GAAE;;sCACK;AAGd;IADC,IAAA,gBAAM,GAAE;;yCACQ;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACJ;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACb;AAGd;IADC,IAAA,gBAAM,GAAE;;qCACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;2CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;2CAAC;kBA5CN,OAAO;IAFnB,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,OAAO,CAAC,CAAC;GACL,OAAO,CA6CnB"}
|
@@ -1,26 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
export declare enum RegistrationStep {
|
2
|
+
INITIATED = "INITIATED",
|
3
|
+
COMPLETED = "COMPLETED"
|
4
|
+
}
|
4
5
|
export declare class User {
|
5
6
|
id: number;
|
6
7
|
username: string;
|
7
8
|
email: string;
|
8
|
-
emails: Email[];
|
9
9
|
password: string;
|
10
10
|
phone_number: string;
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
registration_step: string;
|
11
|
+
national_id: string;
|
12
|
+
smartcore_sync_status: boolean;
|
13
|
+
registration_step: RegistrationStep;
|
15
14
|
smartcore_reference_id: number;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
status: string;
|
20
|
-
risk_profile: string;
|
21
|
-
is_username_set: boolean;
|
22
|
-
external_status: string;
|
15
|
+
cif: string;
|
16
|
+
full_name: string;
|
17
|
+
metadata: string;
|
23
18
|
created_at: Date;
|
24
19
|
updated_at: Date;
|
25
|
-
|
20
|
+
deleted_at: Date | null;
|
26
21
|
}
|
@@ -9,11 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.User = void 0;
|
12
|
+
exports.User = exports.RegistrationStep = void 0;
|
13
13
|
const typeorm_1 = require("typeorm");
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
var RegistrationStep;
|
15
|
+
(function (RegistrationStep) {
|
16
|
+
RegistrationStep["INITIATED"] = "INITIATED";
|
17
|
+
RegistrationStep["COMPLETED"] = "COMPLETED";
|
18
|
+
})(RegistrationStep || (exports.RegistrationStep = RegistrationStep = {}));
|
17
19
|
let User = class User {
|
18
20
|
};
|
19
21
|
exports.User = User;
|
@@ -22,7 +24,7 @@ __decorate([
|
|
22
24
|
__metadata("design:type", Number)
|
23
25
|
], User.prototype, "id", void 0);
|
24
26
|
__decorate([
|
25
|
-
(0, typeorm_1.Column)({ nullable:
|
27
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
26
28
|
__metadata("design:type", String)
|
27
29
|
], User.prototype, "username", void 0);
|
28
30
|
__decorate([
|
@@ -30,31 +32,23 @@ __decorate([
|
|
30
32
|
__metadata("design:type", String)
|
31
33
|
], User.prototype, "email", void 0);
|
32
34
|
__decorate([
|
33
|
-
(0, typeorm_1.
|
34
|
-
__metadata("design:type", Array)
|
35
|
-
], User.prototype, "emails", void 0);
|
36
|
-
__decorate([
|
37
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
35
|
+
(0, typeorm_1.Column)({ nullable: true, select: false }),
|
38
36
|
__metadata("design:type", String)
|
39
37
|
], User.prototype, "password", void 0);
|
40
38
|
__decorate([
|
41
39
|
(0, typeorm_1.Column)({ nullable: true }),
|
42
40
|
__metadata("design:type", String)
|
43
41
|
], User.prototype, "phone_number", void 0);
|
44
|
-
__decorate([
|
45
|
-
(0, typeorm_1.OneToMany)(() => phone_number_entity_1.PhoneNumber, (phoneNumber) => phoneNumber.user, { cascade: true }),
|
46
|
-
__metadata("design:type", Array)
|
47
|
-
], User.prototype, "phone_numbers", void 0);
|
48
42
|
__decorate([
|
49
43
|
(0, typeorm_1.Column)({ nullable: true }),
|
50
44
|
__metadata("design:type", String)
|
51
|
-
], User.prototype, "
|
45
|
+
], User.prototype, "national_id", void 0);
|
52
46
|
__decorate([
|
53
|
-
(0, typeorm_1.Column)({
|
47
|
+
(0, typeorm_1.Column)({ default: false }),
|
54
48
|
__metadata("design:type", Boolean)
|
55
|
-
], User.prototype, "
|
49
|
+
], User.prototype, "smartcore_sync_status", void 0);
|
56
50
|
__decorate([
|
57
|
-
(0, typeorm_1.Column)({
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar2", default: RegistrationStep.INITIATED }),
|
58
52
|
__metadata("design:type", String)
|
59
53
|
], User.prototype, "registration_step", void 0);
|
60
54
|
__decorate([
|
@@ -64,31 +58,15 @@ __decorate([
|
|
64
58
|
__decorate([
|
65
59
|
(0, typeorm_1.Column)({ nullable: true }),
|
66
60
|
__metadata("design:type", String)
|
67
|
-
], User.prototype, "
|
61
|
+
], User.prototype, "cif", void 0);
|
68
62
|
__decorate([
|
69
63
|
(0, typeorm_1.Column)({ nullable: true }),
|
70
64
|
__metadata("design:type", String)
|
71
|
-
], User.prototype, "
|
65
|
+
], User.prototype, "full_name", void 0);
|
72
66
|
__decorate([
|
73
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
74
|
-
__metadata("design:type", String)
|
75
|
-
], User.prototype, "type", void 0);
|
76
|
-
__decorate([
|
77
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
67
|
+
(0, typeorm_1.Column)({ type: "clob", nullable: true }),
|
78
68
|
__metadata("design:type", String)
|
79
|
-
], User.prototype, "
|
80
|
-
__decorate([
|
81
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
82
|
-
__metadata("design:type", String)
|
83
|
-
], User.prototype, "risk_profile", void 0);
|
84
|
-
__decorate([
|
85
|
-
(0, typeorm_1.Column)({ default: false }),
|
86
|
-
__metadata("design:type", Boolean)
|
87
|
-
], User.prototype, "is_username_set", void 0);
|
88
|
-
__decorate([
|
89
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
90
|
-
__metadata("design:type", String)
|
91
|
-
], User.prototype, "external_status", void 0);
|
69
|
+
], User.prototype, "metadata", void 0);
|
92
70
|
__decorate([
|
93
71
|
(0, typeorm_1.CreateDateColumn)(),
|
94
72
|
__metadata("design:type", Date)
|
@@ -98,11 +76,11 @@ __decorate([
|
|
98
76
|
__metadata("design:type", Date)
|
99
77
|
], User.prototype, "updated_at", void 0);
|
100
78
|
__decorate([
|
101
|
-
(0, typeorm_1.
|
102
|
-
__metadata("design:type",
|
103
|
-
], User.prototype, "
|
79
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
80
|
+
__metadata("design:type", Date)
|
81
|
+
], User.prototype, "deleted_at", void 0);
|
104
82
|
exports.User = User = __decorate([
|
105
83
|
(0, typeorm_1.Entity)(),
|
106
|
-
(0, typeorm_1.Unique)([
|
84
|
+
(0, typeorm_1.Unique)(["username"])
|
107
85
|
], User);
|
108
86
|
//# sourceMappingURL=user.entity.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AAEjB,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;AACzB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAIM,IAAM,IAAI,GAAV,MAAM,IAAI;CA6ChB,CAAA;AA7CY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;sCACzB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDACI;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,CAAC,SAAS,EAAE,CAAC;;+CAC9B;AAGpC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACI;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iCACf;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACxB;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;wCAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;wCAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;wCAAQ;eA5Cb,IAAI;IAFhB,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,UAAU,CAAC,CAAC;GACR,IAAI,CA6ChB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -16,7 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./entity/user.entity"), exports);
|
18
18
|
__exportStar(require("./entity/manager.entity"), exports);
|
19
|
-
__exportStar(require("./entity/phone-number.entity"), exports);
|
20
|
-
__exportStar(require("./entity/email.entity"), exports);
|
21
|
-
__exportStar(require("./entity/goalPlan.entity"), exports);
|
22
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,uDAAqC;AACrC,0DAAwC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,uDAAqC;AACrC,0DAAwC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class
|
2
|
+
export declare class V11733323133759 implements MigrationInterface {
|
3
3
|
name: string;
|
4
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
5
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.V11733323133759 = void 0;
|
4
|
+
class V11733323133759 {
|
5
|
+
constructor() {
|
6
|
+
this.name = 'V11733323133759';
|
7
|
+
}
|
8
|
+
async up(queryRunner) {
|
9
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "iqama_number" TO "national_id"`);
|
10
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "is_profile_complete" TO "smartcore_sync_status"`);
|
11
|
+
await queryRunner.query(`UPDATE "user" SET "smartcore_sync_status" = 0 WHERE "smartcore_sync_status" IS NULL`);
|
12
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "smartcore_sync_status" DEFAULT 0`);
|
13
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "smartcore_sync_status" NOT NULL`);
|
14
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "status"`);
|
15
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "risk_profile"`);
|
16
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "is_username_set"`);
|
17
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "external_status"`);
|
18
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "meta_data" clob`);
|
19
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "deleted_at" timestamp`);
|
20
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "username" varchar2(255) NULL`);
|
21
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "registration_step" varchar2(255) DEFAULT 'INITIATED' NOT NULL`);
|
22
|
+
}
|
23
|
+
async down(queryRunner) {
|
24
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "registration_step" varchar2(255) NULL`);
|
25
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "username" varchar2(255) NOT NULL`);
|
26
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "deleted_at"`);
|
27
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "meta_data"`);
|
28
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "external_status" varchar2(255) NULL`);
|
29
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "is_username_set" number DEFAULT 0 NOT NULL`);
|
30
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "risk_profile" varchar2(255) NULL`);
|
31
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "status" varchar2(255) NULL`);
|
32
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "smartcore_sync_status" To "is_profile_complete"`);
|
33
|
+
await queryRunner.query(`ALTER TABLE "user" MODIFY "is_profile_complete" NULL`);
|
34
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "national_id" TO "iqama_number"`);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
exports.V11733323133759 = V11733323133759;
|
38
|
+
//# sourceMappingURL=1733323133759-v1.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1733323133759-v1.js","sourceRoot":"","sources":["../../src/migrations/1733323133759-v1.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAA5B;QACI,SAAI,GAAG,iBAAiB,CAAA;IAiC5B,CAAC;IA/BU,KAAK,CAAC,EAAE,CAAC,WAAwB;QACpC,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;QAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;QAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;QAC/G,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QACvF,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QACtF,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACnE,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACzE,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;QAC5E,MAAM,WAAW,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;QAC5E,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACnE,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACzE,MAAM,WAAW,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QACpF,MAAM,WAAW,CAAC,KAAK,CAAC,0FAA0F,CAAC,CAAC;IACxH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;QAC5F,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QACxF,MAAM,WAAW,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACvE,MAAM,WAAW,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;QACtE,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QACxF,MAAM,WAAW,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;QAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACrF,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;QAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;QAC7G,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAChF,MAAM,WAAW,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;IAEhG,CAAC;CAEJ;AAlCD,0CAkCC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class
|
2
|
+
export declare class RemoveUniqueValue1733996187627 implements MigrationInterface {
|
3
3
|
name: string;
|
4
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
5
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RemoveUniqueValue1733996187627 = void 0;
|
4
|
+
class RemoveUniqueValue1733996187627 {
|
5
|
+
constructor() {
|
6
|
+
this.name = 'RemoveUniqueValue1733996187627';
|
7
|
+
}
|
8
|
+
async up(queryRunner) {
|
9
|
+
await queryRunner.query(`CREATE TABLE "manager" ("id" number GENERATED BY DEFAULT AS IDENTITY, "username" varchar2(255), "email" varchar2(255) NOT NULL, "password" varchar2(255) NOT NULL, "first_name" varchar2(255), "last_name" varchar2(255), "phone_number" varchar2(255), "mobile_number" varchar2(255), "department" varchar2(255), "sub_department" varchar2(255), "title" varchar2(255), "role" varchar2(255) NOT NULL, "is_deleted" number, "created_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, "updated_at" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT "UQ_ee8fba4edb704ce2465753a2edd" UNIQUE ("email"), CONSTRAINT "PK_b3ac840005ee4ed76a7f1c51d01" PRIMARY KEY ("id"))`);
|
10
|
+
await queryRunner.query(`ALTER TABLE "user" DROP CONSTRAINT "UQ_78a916df40e02a9deb1c4b75edb"`);
|
11
|
+
}
|
12
|
+
async down(queryRunner) {
|
13
|
+
await queryRunner.query(`ALTER TABLE "user" ADD CONSTRAINT "UQ_78a916df40e02a9deb1c4b75edb" UNIQUE ("username")`);
|
14
|
+
await queryRunner.query(`DROP TABLE "manager"`);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
exports.RemoveUniqueValue1733996187627 = RemoveUniqueValue1733996187627;
|
18
|
+
//# sourceMappingURL=1733996187627-removeUniqueValue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1733996187627-removeUniqueValue.js","sourceRoot":"","sources":["../../src/migrations/1733996187627-removeUniqueValue.ts"],"names":[],"mappings":";;;AAEA,MAAa,8BAA8B;IAA3C;QACI,SAAI,GAAG,gCAAgC,CAAA;IAY3C,CAAC;IAVU,KAAK,CAAC,EAAE,CAAC,WAAwB;QACpC,MAAM,WAAW,CAAC,KAAK,CAAC,mpBAAmpB,CAAC,CAAC;QAC7qB,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;IACnG,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAC;QAClH,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACpD,CAAC;CAEJ;AAbD,wEAaC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class
|
2
|
+
export declare class V21734104865215 implements MigrationInterface {
|
3
3
|
name: string;
|
4
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
5
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.V21734104865215 = void 0;
|
4
|
+
class V21734104865215 {
|
5
|
+
constructor() {
|
6
|
+
this.name = 'V21734104865215';
|
7
|
+
}
|
8
|
+
async up(queryRunner) {
|
9
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "name" TO "full_name"`);
|
10
|
+
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "type"`);
|
11
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "meta_data" TO "metadata"`);
|
12
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "tcs_reference_id" TO "cif"`);
|
13
|
+
await queryRunner.query(`ALTER TABLE "user" ADD CONSTRAINT "UQ_78a916df40e02a9deb1c4b75edb" UNIQUE ("username")`);
|
14
|
+
await queryRunner.query(`DROP TABLE "goal_plan"`);
|
15
|
+
await queryRunner.query(`DROP TABLE "phone_number"`);
|
16
|
+
await queryRunner.query(`Drop TABLE "email"`);
|
17
|
+
}
|
18
|
+
async down(queryRunner) {
|
19
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "cif" TO "tcs_reference_id"`);
|
20
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "metadata" TO "meta_data"`);
|
21
|
+
await queryRunner.query(`ALTER TABLE "user" ADD "type" varchar2(255)`);
|
22
|
+
await queryRunner.query(`ALTER TABLE "user" RENAME COLUMN "full_name" TO "name"`);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
exports.V21734104865215 = V21734104865215;
|
26
|
+
//# sourceMappingURL=1734104865215-v2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1734104865215-v2.js","sourceRoot":"","sources":["../../src/migrations/1734104865215-v2.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAA5B;QACI,SAAI,GAAG,iBAAiB,CAAA;IAoB5B,CAAC;IAlBU,KAAK,CAAC,EAAE,CAAC,WAAwB;QACpC,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;QAClF,MAAM,WAAW,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;QACjE,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QACtF,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QACxF,MAAM,WAAW,CAAC,KAAK,CAAC,wFAAwF,CAAC,CAAC;QAClH,MAAM,WAAW,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAClD,MAAM,WAAW,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACrD,MAAM,WAAW,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;QACxF,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QACtF,MAAM,WAAW,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACvE,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;IACtF,CAAC;CAEJ;AArBD,0CAqBC"}
|