feat : check

This commit is contained in:
2025-04-01 15:12:52 +08:00
parent d1f3c33a02
commit d1a7efd5bb
3 changed files with 12 additions and 0 deletions

View File

@@ -26,9 +26,13 @@ class DriverException extends Model
* The attributes that are mass assignable. * The attributes that are mass assignable.
*/ */
protected array $fillable = []; protected array $fillable = [];
protected array $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*/ */
protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'driver_id' => 'integer', 'image_id' => 'integer']; protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'driver_id' => 'integer', 'image_id' => 'integer'];
const string CREATED_AT = 'create_time';
const null UPDATED_AT = null;
} }

View File

@@ -33,9 +33,13 @@ class DriverStatus extends Model
* The attributes that are mass assignable. * The attributes that are mass assignable.
*/ */
protected array $fillable = []; protected array $fillable = [];
protected array $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*/ */
protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'driver_id' => 'integer', 'meal_order_quantity' => 'integer', 'meal_add_staple_food_num' => 'integer', 'option_order_quantity' => 'integer', 'option_add_staple_food_num' => 'integer', 'status' => 'integer']; protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'site_id' => 'integer', 'driver_id' => 'integer', 'meal_order_quantity' => 'integer', 'meal_add_staple_food_num' => 'integer', 'option_order_quantity' => 'integer', 'option_add_staple_food_num' => 'integer', 'status' => 'integer'];
const string CREATED_AT = 'create_time';
const string UPDATED_AT = 'update_time';
} }

View File

@@ -25,9 +25,13 @@ class SalesmanTakePhoto extends Model
* The attributes that are mass assignable. * The attributes that are mass assignable.
*/ */
protected array $fillable = []; protected array $fillable = [];
protected array $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*/ */
protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'user_id' => 'integer', 'image_id' => 'integer']; protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'user_id' => 'integer', 'image_id' => 'integer'];
const string CREATED_AT = 'create_time';
const null UPDATED_AT = null;
} }