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.
Files changed (78) hide show
  1. package/dist/data-source.js +1 -1
  2. package/dist/data-source.js.map +1 -1
  3. package/dist/entity/goal-plan.d.ts +13 -0
  4. package/dist/entity/goal-plan.js +64 -0
  5. package/dist/entity/goal-plan.js.map +1 -0
  6. package/dist/entity/goalPlan.entity.d.ts +13 -0
  7. package/dist/entity/goalPlan.entity.js +64 -0
  8. package/dist/entity/goalPlan.entity.js.map +1 -0
  9. package/dist/entity/user.entity.d.ts +2 -0
  10. package/dist/entity/user.entity.js +6 -2
  11. package/dist/entity/user.entity.js.map +1 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +1 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/migrations/{1726580829021-updateUser.d.ts → 1727446645786-goalpla.d.ts} +2 -1
  16. package/dist/migrations/1727446645786-goalpla.js +18 -0
  17. package/dist/migrations/1727446645786-goalpla.js.map +1 -0
  18. package/dist/tsconfig.tsbuildinfo +1 -1
  19. package/package.json +3 -2
  20. package/src/entity/goalPlan.entity.ts +38 -0
  21. package/src/entity/user.entity.ts +5 -2
  22. package/src/index.ts +2 -1
  23. package/dist/migrations/1726580829021-updateUser.js +0 -24
  24. package/dist/migrations/1726580829021-updateUser.js.map +0 -1
  25. package/dist/migrations/1726580973446-updateUser1.d.ts +0 -5
  26. package/dist/migrations/1726580973446-updateUser1.js +0 -24
  27. package/dist/migrations/1726580973446-updateUser1.js.map +0 -1
  28. package/dist/migrations/1726581699360-updateUserSchema.d.ts +0 -5
  29. package/dist/migrations/1726581699360-updateUserSchema.js +0 -14
  30. package/dist/migrations/1726581699360-updateUserSchema.js.map +0 -1
  31. package/dist/migrations/1726581907887-updateIsUsernameset.d.ts +0 -5
  32. package/dist/migrations/1726581907887-updateIsUsernameset.js +0 -15
  33. package/dist/migrations/1726581907887-updateIsUsernameset.js.map +0 -1
  34. package/dist/migrations/1726583726472-removeField.d.ts +0 -5
  35. package/dist/migrations/1726583726472-removeField.js +0 -14
  36. package/dist/migrations/1726583726472-removeField.js.map +0 -1
  37. package/dist/migrations/1726591995127-removeField2.d.ts +0 -5
  38. package/dist/migrations/1726591995127-removeField2.js +0 -14
  39. package/dist/migrations/1726591995127-removeField2.js.map +0 -1
  40. package/dist/migrations/1726676749648-AddTabels.d.ts +0 -5
  41. package/dist/migrations/1726676749648-AddTabels.js +0 -15
  42. package/dist/migrations/1726676749648-AddTabels.js.map +0 -1
  43. package/dist/migrations/1726679992541-AddPhoneNumber.d.ts +0 -5
  44. package/dist/migrations/1726679992541-AddPhoneNumber.js +0 -15
  45. package/dist/migrations/1726679992541-AddPhoneNumber.js.map +0 -1
  46. package/dist/migrations/1726827031113-UpdateStatus.d.ts +0 -5
  47. package/dist/migrations/1726827031113-UpdateStatus.js +0 -12
  48. package/dist/migrations/1726827031113-UpdateStatus.js.map +0 -1
  49. package/dist/migrations/1726830069654-UpdateTable.d.ts +0 -5
  50. package/dist/migrations/1726830069654-UpdateTable.js +0 -13
  51. package/dist/migrations/1726830069654-UpdateTable.js.map +0 -1
  52. package/dist/migrations/1726830752706-UpdateTable.d.ts +0 -5
  53. package/dist/migrations/1726830752706-UpdateTable.js +0 -13
  54. package/dist/migrations/1726830752706-UpdateTable.js.map +0 -1
  55. package/dist/migrations/1727090210924-UpdateManagers.d.ts +0 -5
  56. package/dist/migrations/1727090210924-UpdateManagers.js +0 -20
  57. package/dist/migrations/1727090210924-UpdateManagers.js.map +0 -1
  58. package/dist/migrations/1727096276463-UpdateMangers2.d.ts +0 -5
  59. package/dist/migrations/1727096276463-UpdateMangers2.js +0 -14
  60. package/dist/migrations/1727096276463-UpdateMangers2.js.map +0 -1
  61. package/dist/migrations/1727096564368-UpdateMangers3.d.ts +0 -5
  62. package/dist/migrations/1727096564368-UpdateMangers3.js +0 -12
  63. package/dist/migrations/1727096564368-UpdateMangers3.js.map +0 -1
  64. package/dist/migrations/1727096706376-UpdateMangers4.d.ts +0 -5
  65. package/dist/migrations/1727096706376-UpdateMangers4.js +0 -12
  66. package/dist/migrations/1727096706376-UpdateMangers4.js.map +0 -1
  67. package/dist/migrations/1727097028476-UpdateMangers5.d.ts +0 -5
  68. package/dist/migrations/1727097028476-UpdateMangers5.js +0 -12
  69. package/dist/migrations/1727097028476-UpdateMangers5.js.map +0 -1
  70. package/dist/migrations/1727102118143-UpdateMangers6.d.ts +0 -5
  71. package/dist/migrations/1727102118143-UpdateMangers6.js +0 -11
  72. package/dist/migrations/1727102118143-UpdateMangers6.js.map +0 -1
  73. package/dist/migrations/1727282914293-UpdateMangers8.d.ts +0 -5
  74. package/dist/migrations/1727282914293-UpdateMangers8.js +0 -12
  75. package/dist/migrations/1727282914293-UpdateMangers8.js.map +0 -1
  76. package/dist/migrations/1727283054110-UpdateMangers9.d.ts +0 -5
  77. package/dist/migrations/1727283054110-UpdateMangers9.js +0 -12
  78. package/dist/migrations/1727283054110-UpdateMangers9.js.map +0 -1
@@ -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: false,
19
+ synchronize: true,
20
20
  migrationsRun: false,
21
21
  });
22
22
  //# sourceMappingURL=data-source.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-source.js","sourceRoot":"","sources":["../src/data-source.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,qCAAoC;AAEpC,+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,KAAK;IAClB,aAAa,EAAE,KAAK;CACvB,CAAC,CAAA"}
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.Index)({ unique: true }),
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;AAIhC,IAAM,IAAI,GAAV,MAAM,IAAI;CAgEhB,CAAA;AAhEY,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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,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
@@ -2,3 +2,4 @@ export * from './entity/user.entity';
2
2
  export * from './entity/manager.entity';
3
3
  export * from './entity/phone-number.entity';
4
4
  export * from './entity/email.entity';
5
+ export * from './entity/goalPlan.entity';
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 UpdateUser1726580829021 implements MigrationInterface {
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"}