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