23 lines
367 B
TypeScript
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;
|
|
}
|