update: add review count and also verification from admin panel
This commit is contained in:
@@ -51,6 +51,12 @@ export class DanakService extends BaseEntity {
|
||||
@Column({ type: "varchar", length: 255, nullable: false })
|
||||
icon: string;
|
||||
|
||||
// @Column({ type: "int", nullable: false })
|
||||
// count: number;
|
||||
|
||||
// @Column({ type: "float", nullable: false })
|
||||
// averageRating: number;
|
||||
|
||||
//-------------------------------------
|
||||
@ManyToOne(() => DanakServiceCategory, (danakServiceCategory) => danakServiceCategory.danakServices, {
|
||||
nullable: false,
|
||||
@@ -75,10 +81,4 @@ export class DanakService extends BaseEntity {
|
||||
|
||||
@OneToMany(() => DanakServiceReview, (danakServiceReview) => danakServiceReview.service)
|
||||
reviews: DanakServiceReview[];
|
||||
|
||||
// @ManyToMany(() => Discount, (discount) => discount.services, { nullable: true })
|
||||
// discounts?: Discount[];
|
||||
}
|
||||
|
||||
// @ManyToMany(() => User, (user) => user.danakServices)
|
||||
// users: User[];
|
||||
|
||||
Reference in New Issue
Block a user