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
@@ -1,38 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column,ManyToOne } from 'typeorm';
|
2
|
-
import { User } from './user.entity';
|
3
|
-
|
4
|
-
@Entity()
|
5
|
-
export class GoalPlan {
|
6
|
-
@PrimaryGeneratedColumn()
|
7
|
-
id: number;
|
8
|
-
|
9
|
-
@Column()
|
10
|
-
objective: string;
|
11
|
-
|
12
|
-
@Column({
|
13
|
-
type: 'varchar',
|
14
|
-
length: 3,
|
15
|
-
})
|
16
|
-
currency: 'USD' | 'SAR';
|
17
|
-
|
18
|
-
@Column({nullable: true})
|
19
|
-
initial_amount: number;
|
20
|
-
|
21
|
-
@Column({nullable: true})
|
22
|
-
target_amount: number;
|
23
|
-
|
24
|
-
@Column({nullable: true})
|
25
|
-
contribution_amount: number;
|
26
|
-
|
27
|
-
@Column()
|
28
|
-
contribution_frequency: string;
|
29
|
-
|
30
|
-
@Column()
|
31
|
-
start_date: string;
|
32
|
-
|
33
|
-
@Column({nullable: true})
|
34
|
-
investment_duration: number;
|
35
|
-
|
36
|
-
@ManyToOne(() => User, (user) => user.goal_plans, { nullable: false })
|
37
|
-
user: User;
|
38
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { User } from './user.entity';
|
2
|
-
import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
|
3
|
-
|
4
|
-
@Entity()
|
5
|
-
export class PhoneNumber {
|
6
|
-
@PrimaryGeneratedColumn()
|
7
|
-
id: number;
|
8
|
-
|
9
|
-
@Column({ nullable: false })
|
10
|
-
number: string;
|
11
|
-
|
12
|
-
@ManyToOne(() => User, (user) => user.phone_numbers,{ nullable: false })
|
13
|
-
user: User;
|
14
|
-
}
|