coupon
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user