chore: add user entity and role entity

This commit is contained in:
mahyargdz
2025-01-19 11:42:15 +03:30
parent 583fa52160
commit 58c9bfa912
6 changed files with 71 additions and 8 deletions
@@ -0,0 +1,9 @@
import { BaseEntity, Column, Entity } from "typeorm";
import { RoleEnum } from "../enums/role.enum";
@Entity()
export class Role extends BaseEntity {
@Column({ type: "enum", enum: RoleEnum, default: RoleEnum.USER, nullable: false })
name: RoleEnum;
}