ppob-backend/src/users/entities/user_detail.entity.ts
2021-12-11 11:24:28 +07:00

23 lines
367 B
TypeScript

import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { accountType } from '../../helper/enum-list';
@Entity()
export class UserDetail {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
name: string;
@Column()
first_name: string;
@Column()
phone_number: string;
@Column({
nullable: true,
})
type: accountType;
}