Files
dsc-api/src/modules/users/entities/user.entity.ts
T
2025-01-19 11:11:26 +03:30

29 lines
602 B
TypeScript

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;
}