chore: add crude for admin

This commit is contained in:
mahyargdz
2025-04-22 12:28:11 +03:30
parent 368ab0b40a
commit 5ef5edc44b
41 changed files with 2996 additions and 2378 deletions
+4 -1
View File
@@ -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)