chore: add crude for admin
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Exclude } from "class-transformer";
|
||||
import { Column, Entity, JoinTable, ManyToMany, OneToMany, OneToOne } from "typeorm";
|
||||
import { Column, DeleteDateColumn, Entity, JoinTable, ManyToMany, OneToMany, OneToOne } from "typeorm";
|
||||
|
||||
import { LegalUser } from "./legal-user.entity";
|
||||
import { RealUser } from "./real-user.entity";
|
||||
@@ -63,6 +63,9 @@ export class User extends BaseEntity {
|
||||
@Column({ type: "enum", enum: FinancialType, nullable: true, default: null })
|
||||
financialType: FinancialType | null;
|
||||
|
||||
@DeleteDateColumn({ nullable: true })
|
||||
deletedAt?: Date;
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@ManyToMany(() => Role, (role) => role.users)
|
||||
|
||||
Reference in New Issue
Block a user