AnhLedger's picture
Add Role Entity
9ec4f32
raw
history blame
321 Bytes
import{
Entity,
Column,
BaseEntity,
PrimaryGeneratedColumn,
} from 'typeorm'
@Entity('role')
export class RoleEntity extends BaseEntity{
@PrimaryGeneratedColumn('uuid')
id: number;
@Column({ nullable: false})
role_name: string;
@Column({ nullable: true })
description: string;
}