chore: upload multi files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user