feat: added complaint section

This commit is contained in:
2026-07-27 15:10:36 +03:30
parent 19e648a299
commit eb8d87bd48
13 changed files with 215 additions and 2 deletions
+5 -1
View File
@@ -1,5 +1,6 @@
import { BaseEntity } from 'src/common/entities/base.entity';
import { Column, Entity } from 'typeorm';
import { Complaint } from 'src/complaint/entities/complaint.entity';
import { Column, Entity, OneToMany } from 'typeorm';
@Entity('organs')
export class Organ extends BaseEntity {
@@ -13,4 +14,7 @@ export class Organ extends BaseEntity {
type: 'varchar',
})
logo: string;
@OneToMany(() => Complaint, (complaint) => complaint.organ)
complaints: Complaint[];
}