chore: add typeorm config
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user