chore: ticket service but not tested
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user