feat : coupon

This commit is contained in:
2025-03-21 16:19:57 +08:00
parent 8a4674b1dc
commit 8699b6c6ad
3 changed files with 8 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ use Hyperf\DbConnection\Model\Model;
* @property int $user_id
* @property int $cycle_id
* @property int $site_id
* @property int $city_id
* @property int $city_id
* @property int $kitchen_id
* @property int $coupon_id
* @property int $copies
* @property int $type
@@ -52,7 +53,7 @@ class Order extends Model
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'city_id' => 'integer', 'coupon_id' => 'integer', 'meal_copies' => 'integer', 'optional_copies' => 'integer', 'status' => 'integer', 'is_refund_all' => 'integer'];
protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'city_id' => 'integer', 'coupon_id' => 'integer', 'meal_copies' => 'integer', 'optional_copies' => 'integer', 'status' => 'integer', 'is_refund_all' => 'integer','kitchen_id' => 'integer'];
const string CREATED_AT = 'create_time';