chore: add new service to add subs to danak services in array

This commit is contained in:
mahyargdz
2025-02-13 13:27:21 +03:30
parent 95b9c38031
commit caa968ab4a
24 changed files with 317 additions and 98 deletions
@@ -14,6 +14,9 @@ export class DanakService extends BaseEntity {
@Column({ type: "varchar", length: 100, nullable: false, unique: true })
name: string;
@Column({ type: "varchar", length: 150, nullable: true })
title: string;
@Column({ type: "boolean", nullable: false, default: false })
isDanakSuggest: boolean;
@@ -47,7 +50,7 @@ export class DanakService extends BaseEntity {
@Column({ type: "varchar", length: 255, nullable: false })
icon: string;
@ManyToOne(() => DanakServiceCategory, (danakServiceCategory) => danakServiceCategory.danakService, {
@ManyToOne(() => DanakServiceCategory, (danakServiceCategory) => danakServiceCategory.danakServices, {
nullable: false,
onDelete: "RESTRICT",
})