chore: add typeorm config

This commit is contained in:
mahyargdz
2025-01-19 10:23:18 +03:30
parent 3fb52961c7
commit 583fa52160
16 changed files with 877 additions and 461 deletions
+28
View File
@@ -0,0 +1,28 @@
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity()
export class User {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column({ type: "varchar", length: 150, unique: true })
email: string;
@Column({ type: "varchar", length: 11, unique: true })
phoneNumber: string;
@Column({ type: "varchar", length: 150 })
password: string;
@Column({ type: "varchar", length: 150 })
fistName: string;
@Column({ type: "varchar", length: 200 })
lastName: string;
@Column()
birthDate: string;
@Column({ type: "varchar", length: 100 })
nationalCode: string;
}