chore: ticket service but not tested

This commit is contained in:
mahyargdz
2025-01-28 20:08:43 +03:30
parent 239099bb15
commit 1d11509371
28 changed files with 368 additions and 73 deletions
+8 -1
View File
@@ -1,9 +1,11 @@
import { Column, Entity, ManyToMany, ManyToOne, OneToMany } from "typeorm";
import { Exclude } from "class-transformer";
import { Column, Entity, JoinTable, ManyToMany, ManyToOne, OneToMany } from "typeorm";
import { Role } from "./role.entity";
import { UserGroup } from "./user-group.entity";
import { BaseEntity } from "../../../common/entities/base.entity";
import { Criticism } from "../../criticisms/entities/criticism.entity";
import { DanakService } from "../../danak-services/entities/danak-service.entity";
import { TicketMessage } from "../../tickets/entities/ticket-message.entity";
import { Ticket } from "../../tickets/entities/ticket.entity";
@@ -18,6 +20,7 @@ export class User extends BaseEntity {
@Column({ type: "varchar", length: 50, unique: true, nullable: true })
userName: string;
@Exclude()
@Column({ type: "varchar", length: 150 })
password: string;
@@ -47,4 +50,8 @@ export class User extends BaseEntity {
@OneToMany(() => Criticism, (criticism) => criticism.user)
criticisms: Criticism[];
@ManyToMany(() => DanakService, (danakService) => danakService.users)
@JoinTable()
danakServices: DanakService[];
}