update: add review count and also verification from admin panel
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// eslint-disable-next-line import/no-named-as-default
|
||||
import Decimal from "decimal.js";
|
||||
import { Column, Entity, Index, ManyToMany, ManyToOne } from "typeorm";
|
||||
import { Column, Entity, Index, ManyToOne } from "typeorm";
|
||||
|
||||
import { BaseEntity } from "../../../common/entities/base.entity";
|
||||
import { DecimalTransformer } from "../../../common/transformers/decimal.transformer";
|
||||
import { DanakService } from "../../danak-services/entities/danak-service.entity";
|
||||
import { Discount } from "../../discounts/entities/discount.entity";
|
||||
// import { Discount } from "../../discounts/entities/discount.entity";
|
||||
|
||||
@Entity()
|
||||
@Index(["service", "name"], { unique: true })
|
||||
@@ -25,6 +25,6 @@ export class SubscriptionPlan extends BaseEntity {
|
||||
@ManyToOne(() => DanakService, (danakService) => danakService.subscriptionPlans, { nullable: false, onDelete: "CASCADE" })
|
||||
service: DanakService;
|
||||
|
||||
@ManyToMany(() => Discount, (discount) => discount.subscriptionPlans)
|
||||
discounts: Discount[];
|
||||
// @ManyToMany(() => Discount, (discount) => discount.subscriptionPlans)
|
||||
// discounts: Discount[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user