From f0cab985d484b0b4ce1504690e8840c556ea989c Mon Sep 17 00:00:00 2001 From: "LAPTOP-7SGDREK0\\shiweijun" <411582373@qq.com> Date: Tue, 11 Feb 2025 14:18:51 +0800 Subject: [PATCH] feat:chef --- app/Model/Chef.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Model/Chef.php b/app/Model/Chef.php index 761f072..a04a59e 100644 --- a/app/Model/Chef.php +++ b/app/Model/Chef.php @@ -12,7 +12,8 @@ use Hyperf\DbConnection\Model\Model; * @property int $id * @property int $user_id * @property string $profile - * @property string $specialties + * @property string $specialties + * @property int $kitchen_id * @property int $is_del * @property string $create_time * @property string $update_time @@ -32,7 +33,7 @@ class Chef extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'is_del' => 'integer']; + protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'kitchen_id' => 'integer', 'is_del' => 'integer']; const string CREATED_AT = 'create_time';