chore: upload multi files

This commit is contained in:
Matin
2025-01-29 10:39:00 +03:30
parent 1d11509371
commit 63e5d1b925
7 changed files with 58 additions and 5 deletions
@@ -1,6 +1,7 @@
import { Column, Entity, Index, ManyToMany } from "typeorm";
import { Column, Entity, Index, ManyToMany, ManyToOne } from "typeorm";
import { BaseEntity } from "../../../common/entities/base.entity";
import { DanakService } from "../../danak-services/entities/danak-service.entity";
import { UserGroup } from "../../users/entities/user-group.entity";
@Entity()
@@ -17,6 +18,8 @@ export class Announcement extends BaseEntity {
//TODO: Add service here
//TODO: Add customer here
@ManyToOne(() => DanakService, (service) => service.announcements, { eager: true, onDelete: "CASCADE" })
service: DanakService;
@Column({ type: "boolean", default: false })
isImportant: boolean;