This commit is contained in:
2025-12-06 22:05:56 +03:30
parent e342c00e25
commit f36125764d
5 changed files with 140 additions and 6 deletions
@@ -51,4 +51,13 @@ export class Coupon extends BaseEntity {
@Property({ type: 'boolean', default: true })
isActive: boolean = true;
@Property({ type: 'json', nullable: true })
foodCategories?: string[]; // Array of category IDs
@Property({ type: 'json', nullable: true })
foods?: string[]; // Array of food IDs
@Property({ nullable: true })
userPhone?: string; // Phone number of the user who can use this coupon
}