finamaze_schema 1.24.0 → 1.26.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/data-source.js +1 -1
- package/dist/data-source.js.map +1 -1
- package/dist/entity/goal-plan.d.ts +13 -0
- package/dist/entity/goal-plan.js +64 -0
- package/dist/entity/goal-plan.js.map +1 -0
- package/dist/entity/goalPlan.entity.d.ts +13 -0
- package/dist/entity/goalPlan.entity.js +64 -0
- package/dist/entity/goalPlan.entity.js.map +1 -0
- package/dist/entity/user.entity.d.ts +2 -0
- package/dist/entity/user.entity.js +6 -2
- package/dist/entity/user.entity.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/migrations/{1726580829021-updateUser.d.ts → 1727446645786-goalpla.d.ts} +2 -1
- package/dist/migrations/1727446645786-goalpla.js +18 -0
- package/dist/migrations/1727446645786-goalpla.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/entity/goalPlan.entity.ts +38 -0
- package/src/entity/user.entity.ts +5 -2
- package/src/index.ts +2 -1
- package/dist/migrations/1726580829021-updateUser.js +0 -24
- package/dist/migrations/1726580829021-updateUser.js.map +0 -1
- package/dist/migrations/1726580973446-updateUser1.d.ts +0 -5
- package/dist/migrations/1726580973446-updateUser1.js +0 -24
- package/dist/migrations/1726580973446-updateUser1.js.map +0 -1
- package/dist/migrations/1726581699360-updateUserSchema.d.ts +0 -5
- package/dist/migrations/1726581699360-updateUserSchema.js +0 -14
- package/dist/migrations/1726581699360-updateUserSchema.js.map +0 -1
- package/dist/migrations/1726581907887-updateIsUsernameset.d.ts +0 -5
- package/dist/migrations/1726581907887-updateIsUsernameset.js +0 -15
- package/dist/migrations/1726581907887-updateIsUsernameset.js.map +0 -1
- package/dist/migrations/1726583726472-removeField.d.ts +0 -5
- package/dist/migrations/1726583726472-removeField.js +0 -14
- package/dist/migrations/1726583726472-removeField.js.map +0 -1
- package/dist/migrations/1726591995127-removeField2.d.ts +0 -5
- package/dist/migrations/1726591995127-removeField2.js +0 -14
- package/dist/migrations/1726591995127-removeField2.js.map +0 -1
- package/dist/migrations/1726676749648-AddTabels.d.ts +0 -5
- package/dist/migrations/1726676749648-AddTabels.js +0 -15
- package/dist/migrations/1726676749648-AddTabels.js.map +0 -1
- package/dist/migrations/1726679992541-AddPhoneNumber.d.ts +0 -5
- package/dist/migrations/1726679992541-AddPhoneNumber.js +0 -15
- package/dist/migrations/1726679992541-AddPhoneNumber.js.map +0 -1
- package/dist/migrations/1726827031113-UpdateStatus.d.ts +0 -5
- package/dist/migrations/1726827031113-UpdateStatus.js +0 -12
- package/dist/migrations/1726827031113-UpdateStatus.js.map +0 -1
- package/dist/migrations/1726830069654-UpdateTable.d.ts +0 -5
- package/dist/migrations/1726830069654-UpdateTable.js +0 -13
- package/dist/migrations/1726830069654-UpdateTable.js.map +0 -1
- package/dist/migrations/1726830752706-UpdateTable.d.ts +0 -5
- package/dist/migrations/1726830752706-UpdateTable.js +0 -13
- package/dist/migrations/1726830752706-UpdateTable.js.map +0 -1
- package/dist/migrations/1727090210924-UpdateManagers.d.ts +0 -5
- package/dist/migrations/1727090210924-UpdateManagers.js +0 -20
- package/dist/migrations/1727090210924-UpdateManagers.js.map +0 -1
- package/dist/migrations/1727096276463-UpdateMangers2.d.ts +0 -5
- package/dist/migrations/1727096276463-UpdateMangers2.js +0 -14
- package/dist/migrations/1727096276463-UpdateMangers2.js.map +0 -1
- package/dist/migrations/1727096564368-UpdateMangers3.d.ts +0 -5
- package/dist/migrations/1727096564368-UpdateMangers3.js +0 -12
- package/dist/migrations/1727096564368-UpdateMangers3.js.map +0 -1
- package/dist/migrations/1727096706376-UpdateMangers4.d.ts +0 -5
- package/dist/migrations/1727096706376-UpdateMangers4.js +0 -12
- package/dist/migrations/1727096706376-UpdateMangers4.js.map +0 -1
- package/dist/migrations/1727097028476-UpdateMangers5.d.ts +0 -5
- package/dist/migrations/1727097028476-UpdateMangers5.js +0 -12
- package/dist/migrations/1727097028476-UpdateMangers5.js.map +0 -1
- package/dist/migrations/1727102118143-UpdateMangers6.d.ts +0 -5
- package/dist/migrations/1727102118143-UpdateMangers6.js +0 -11
- package/dist/migrations/1727102118143-UpdateMangers6.js.map +0 -1
- package/dist/migrations/1727282914293-UpdateMangers8.d.ts +0 -5
- package/dist/migrations/1727282914293-UpdateMangers8.js +0 -12
- package/dist/migrations/1727282914293-UpdateMangers8.js.map +0 -1
- package/dist/migrations/1727283054110-UpdateMangers9.d.ts +0 -5
- package/dist/migrations/1727283054110-UpdateMangers9.js +0 -12
- package/dist/migrations/1727283054110-UpdateMangers9.js.map +0 -1
package/dist/data-source.js
CHANGED
@@ -16,7 +16,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
16
16
|
logging: false,
|
17
17
|
entities: [__dirname + '/**/*.entity{.ts,.js}'],
|
18
18
|
migrations: [(0, path_1.join)(__dirname, 'migrations/**/*{.ts,.js}')],
|
19
|
-
synchronize:
|
19
|
+
synchronize: true,
|
20
20
|
migrationsRun: false,
|
21
21
|
});
|
22
22
|
//# sourceMappingURL=data-source.js.map
|
package/dist/data-source.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-source.js","sourceRoot":"","sources":["../src/data-source.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,qCAAoC;
|
1
|
+
{"version":3,"file":"data-source.js","sourceRoot":"","sources":["../src/data-source.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,qCAAoC;AACpC,+BAA4B;AAC5B,mCAAgC;AAGhC,IAAA,eAAM,GAAE,CAAC;AAGI,QAAA,aAAa,GAAK,IAAI,oBAAU,CAAC;IAC1C,IAAI,EAAG,OAAO,CAAC,GAAG,CAAC,OAAc;IACjC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IACjC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IACjC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IAC7B,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,CAAC,SAAS,GAAG,uBAAuB,CAAC;IAC/C,UAAU,EAAE,CAAC,IAAA,WAAI,EAAC,SAAS,EAAG,0BAA0B,CAAC,CAAC;IAC1D,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;CACvB,CAAC,CAAA"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { User } from './user.entity';
|
2
|
+
export declare class GoalPlan {
|
3
|
+
id: number;
|
4
|
+
objective: string;
|
5
|
+
currency: string;
|
6
|
+
initial_amount: number;
|
7
|
+
target_amount: number;
|
8
|
+
contribution_amount: number;
|
9
|
+
contribution_frequency: string;
|
10
|
+
start_date: Date;
|
11
|
+
investment_duration: number;
|
12
|
+
user: User;
|
13
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.GoalPlan = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const user_entity_1 = require("./user.entity");
|
15
|
+
let GoalPlan = class GoalPlan {
|
16
|
+
};
|
17
|
+
exports.GoalPlan = GoalPlan;
|
18
|
+
__decorate([
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
20
|
+
__metadata("design:type", Number)
|
21
|
+
], GoalPlan.prototype, "id", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, typeorm_1.Column)(),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], GoalPlan.prototype, "objective", void 0);
|
26
|
+
__decorate([
|
27
|
+
(0, typeorm_1.Column)({
|
28
|
+
type: 'enum',
|
29
|
+
enum: ['USD', 'SAR']
|
30
|
+
}),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], GoalPlan.prototype, "currency", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
35
|
+
__metadata("design:type", Number)
|
36
|
+
], GoalPlan.prototype, "initial_amount", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
39
|
+
__metadata("design:type", Number)
|
40
|
+
], GoalPlan.prototype, "target_amount", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
43
|
+
__metadata("design:type", Number)
|
44
|
+
], GoalPlan.prototype, "contribution_amount", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, typeorm_1.Column)(),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], GoalPlan.prototype, "contribution_frequency", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, typeorm_1.Column)(),
|
51
|
+
__metadata("design:type", Date)
|
52
|
+
], GoalPlan.prototype, "start_date", void 0);
|
53
|
+
__decorate([
|
54
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
55
|
+
__metadata("design:type", Number)
|
56
|
+
], GoalPlan.prototype, "investment_duration", void 0);
|
57
|
+
__decorate([
|
58
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.goal_plans, { nullable: false }),
|
59
|
+
__metadata("design:type", user_entity_1.User)
|
60
|
+
], GoalPlan.prototype, "user", void 0);
|
61
|
+
exports.GoalPlan = GoalPlan = __decorate([
|
62
|
+
(0, typeorm_1.Entity)('goalPlan')
|
63
|
+
], GoalPlan);
|
64
|
+
//# sourceMappingURL=goal-plan.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"goal-plan.js","sourceRoot":"","sources":["../../src/entity/goal-plan.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,+CAAqC;AAG9B,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAiCpB,CAAA;AAjCY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,GAAE;;oCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;2CACS;AAMlB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;KACrB,CAAC;;0CACe;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;gDACF;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CACH;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;qDACG;AAG5B;IADC,IAAA,gBAAM,GAAE;;wDACsB;AAG/B;IADC,IAAA,gBAAM,GAAE;8BACG,IAAI;4CAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;qDACG;AAG5B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChE,kBAAI;sCAAC;mBAhCA,QAAQ;IADpB,IAAA,gBAAM,EAAC,UAAU,CAAC;GACN,QAAQ,CAiCpB"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { User } from './user.entity';
|
2
|
+
export declare class GoalPlan {
|
3
|
+
id: number;
|
4
|
+
objective: string;
|
5
|
+
currency: 'USD' | 'SAR';
|
6
|
+
initial_amount: number;
|
7
|
+
target_amount: number;
|
8
|
+
contribution_amount: number;
|
9
|
+
contribution_frequency: string;
|
10
|
+
start_date: Date;
|
11
|
+
investment_duration: number;
|
12
|
+
user: User;
|
13
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.GoalPlan = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const user_entity_1 = require("./user.entity");
|
15
|
+
let GoalPlan = class GoalPlan {
|
16
|
+
};
|
17
|
+
exports.GoalPlan = GoalPlan;
|
18
|
+
__decorate([
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
20
|
+
__metadata("design:type", Number)
|
21
|
+
], GoalPlan.prototype, "id", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, typeorm_1.Column)(),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], GoalPlan.prototype, "objective", void 0);
|
26
|
+
__decorate([
|
27
|
+
(0, typeorm_1.Column)({
|
28
|
+
type: 'varchar',
|
29
|
+
length: 3,
|
30
|
+
}),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], GoalPlan.prototype, "currency", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
35
|
+
__metadata("design:type", Number)
|
36
|
+
], GoalPlan.prototype, "initial_amount", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
39
|
+
__metadata("design:type", Number)
|
40
|
+
], GoalPlan.prototype, "target_amount", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
43
|
+
__metadata("design:type", Number)
|
44
|
+
], GoalPlan.prototype, "contribution_amount", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, typeorm_1.Column)(),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], GoalPlan.prototype, "contribution_frequency", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, typeorm_1.Column)(),
|
51
|
+
__metadata("design:type", Date)
|
52
|
+
], GoalPlan.prototype, "start_date", void 0);
|
53
|
+
__decorate([
|
54
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
55
|
+
__metadata("design:type", Number)
|
56
|
+
], GoalPlan.prototype, "investment_duration", void 0);
|
57
|
+
__decorate([
|
58
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.goal_plans, { nullable: false }),
|
59
|
+
__metadata("design:type", user_entity_1.User)
|
60
|
+
], GoalPlan.prototype, "user", void 0);
|
61
|
+
exports.GoalPlan = GoalPlan = __decorate([
|
62
|
+
(0, typeorm_1.Entity)()
|
63
|
+
], GoalPlan);
|
64
|
+
//# sourceMappingURL=goalPlan.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"goalPlan.entity.js","sourceRoot":"","sources":["../../src/entity/goalPlan.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,+CAAqC;AAG9B,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAiCpB,CAAA;AAjCY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,GAAE;;oCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;2CACS;AAMlB;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,CAAC;KACV,CAAC;;0CACsB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;gDACF;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CACH;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;qDACG;AAG5B;IADC,IAAA,gBAAM,GAAE;;wDACsB;AAG/B;IADC,IAAA,gBAAM,GAAE;8BACG,IAAI;4CAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;qDACG;AAG5B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BAChE,kBAAI;sCAAC;mBAhCA,QAAQ;IADpB,IAAA,gBAAM,GAAE;GACI,QAAQ,CAiCpB"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PhoneNumber } from './phone-number.entity';
|
2
2
|
import { Email } from './email.entity';
|
3
|
+
import { GoalPlan } from './goalPlan.entity';
|
3
4
|
export declare class User {
|
4
5
|
id: number;
|
5
6
|
username: string;
|
@@ -21,4 +22,5 @@ export declare class User {
|
|
21
22
|
external_status: string;
|
22
23
|
created_at: Date;
|
23
24
|
updated_at: Date;
|
25
|
+
goal_plans: GoalPlan[];
|
24
26
|
}
|
@@ -13,6 +13,7 @@ exports.User = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
14
14
|
const phone_number_entity_1 = require("./phone-number.entity");
|
15
15
|
const email_entity_1 = require("./email.entity");
|
16
|
+
const goalPlan_entity_1 = require("./goalPlan.entity");
|
16
17
|
let User = class User {
|
17
18
|
};
|
18
19
|
exports.User = User;
|
@@ -57,8 +58,7 @@ __decorate([
|
|
57
58
|
__metadata("design:type", String)
|
58
59
|
], User.prototype, "registration_step", void 0);
|
59
60
|
__decorate([
|
60
|
-
(0, typeorm_1.
|
61
|
-
(0, typeorm_1.Column)(),
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
62
62
|
__metadata("design:type", Number)
|
63
63
|
], User.prototype, "smartcore_reference_id", void 0);
|
64
64
|
__decorate([
|
@@ -97,6 +97,10 @@ __decorate([
|
|
97
97
|
(0, typeorm_1.UpdateDateColumn)(),
|
98
98
|
__metadata("design:type", Date)
|
99
99
|
], User.prototype, "updated_at", void 0);
|
100
|
+
__decorate([
|
101
|
+
(0, typeorm_1.OneToMany)(() => goalPlan_entity_1.GoalPlan, (goalPlan) => goalPlan.user),
|
102
|
+
__metadata("design:type", Array)
|
103
|
+
], User.prototype, "goal_plans", void 0);
|
100
104
|
exports.User = User = __decorate([
|
101
105
|
(0, typeorm_1.Entity)(),
|
102
106
|
(0, typeorm_1.Unique)(['username'])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+H;AAC/H,+DAAoD;AACpD,iDAAuC;
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+H;AAC/H,+DAAoD;AACpD,iDAAuC;AACvC,uDAA6C;AAItC,IAAM,IAAI,GAAV,MAAM,IAAI;CAkEhB,CAAA;AAlEY,oBAAI;AAEb;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACX;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACb;AAGd;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oCACjD;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACN;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACtD;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACE;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACD;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACI;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAG,CAAC;;oCACb;AAGf;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACL;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;;6CACA;AAIzB;IADC,IAAA,gBAAM,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACF;AAIxB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;wCAAC;AAIjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;wCAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;;wCAChC;eAjEd,IAAI;IAFhB,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,UAAU,CAAC,CAAC;GACR,IAAI,CAkEhB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -18,4 +18,5 @@ __exportStar(require("./entity/user.entity"), exports);
|
|
18
18
|
__exportStar(require("./entity/manager.entity"), exports);
|
19
19
|
__exportStar(require("./entity/phone-number.entity"), exports);
|
20
20
|
__exportStar(require("./entity/email.entity"), exports);
|
21
|
+
__exportStar(require("./entity/goalPlan.entity"), exports);
|
21
22
|
//# 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;AACxC,+DAA6C;AAC7C,wDAAsC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,uDAAqC;AACrC,0DAAwC;AACxC,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
2
|
-
export declare class
|
2
|
+
export declare class Goalpla1727446645786 implements MigrationInterface {
|
3
|
+
name: string;
|
3
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
4
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
5
6
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Goalpla1727446645786 = void 0;
|
4
|
+
class Goalpla1727446645786 {
|
5
|
+
constructor() {
|
6
|
+
this.name = 'Goalpla1727446645786';
|
7
|
+
}
|
8
|
+
async up(queryRunner) {
|
9
|
+
await queryRunner.query(`CREATE TABLE "goal_plan" ("id" number GENERATED BY DEFAULT AS IDENTITY, "objective" varchar2(255) NOT NULL, "currency" varchar2(3) NOT NULL, "initial_amount" number, "target_amount" number, "contribution_amount" number, "contribution_frequency" varchar2(255) NOT NULL, "start_date" timestamp NOT NULL, "investment_duration" number, "userId" number NOT NULL, CONSTRAINT "PK_02a5c53bc719b6694de4bbbe530" PRIMARY KEY ("id"))`);
|
10
|
+
await queryRunner.query(`ALTER TABLE "goal_plan" ADD CONSTRAINT "FK_5d42c50d3e7132a7839cdfdff37" FOREIGN KEY ("userId") REFERENCES "user" ("id")`);
|
11
|
+
}
|
12
|
+
async down(queryRunner) {
|
13
|
+
await queryRunner.query(`ALTER TABLE "goal_plan" DROP CONSTRAINT "FK_5d42c50d3e7132a7839cdfdff37"`);
|
14
|
+
await queryRunner.query(`DROP TABLE "goal_plan"`);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
exports.Goalpla1727446645786 = Goalpla1727446645786;
|
18
|
+
//# sourceMappingURL=1727446645786-goalpla.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1727446645786-goalpla.js","sourceRoot":"","sources":["../../src/migrations/1727446645786-goalpla.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAoB;IAAjC;QACI,SAAI,GAAG,sBAAsB,CAAA;IAYjC,CAAC;IAVU,KAAK,CAAC,EAAE,CAAC,WAAwB;QACpC,MAAM,WAAW,CAAC,KAAK,CAAC,uaAAua,CAAC,CAAC;QACjc,MAAM,WAAW,CAAC,KAAK,CAAC,yHAAyH,CAAC,CAAC;IACvJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;QACpG,MAAM,WAAW,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACtD,CAAC;CAEJ;AAbD,oDAaC"}
|