diff --git a/app/Model/DriverException.php b/app/Model/DriverException.php index 84c8e9c..6fde112 100644 --- a/app/Model/DriverException.php +++ b/app/Model/DriverException.php @@ -26,9 +26,13 @@ class DriverException extends Model * The attributes that are mass assignable. */ protected array $fillable = []; + protected array $guarded = []; /** * 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']; + + const string CREATED_AT = 'create_time'; + const null UPDATED_AT = null; } diff --git a/app/Model/DriverStatus.php b/app/Model/DriverStatus.php index 2245ebc..66fa148 100644 --- a/app/Model/DriverStatus.php +++ b/app/Model/DriverStatus.php @@ -33,9 +33,13 @@ class DriverStatus extends Model * The attributes that are mass assignable. */ protected array $fillable = []; + protected array $guarded = []; /** * 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']; + + const string CREATED_AT = 'create_time'; + const string UPDATED_AT = 'update_time'; } diff --git a/app/Model/SalesmanTakePhoto.php b/app/Model/SalesmanTakePhoto.php index fdaf81b..c89a0b5 100644 --- a/app/Model/SalesmanTakePhoto.php +++ b/app/Model/SalesmanTakePhoto.php @@ -25,9 +25,13 @@ class SalesmanTakePhoto extends Model * The attributes that are mass assignable. */ protected array $fillable = []; + protected array $guarded = []; /** * The attributes that should be cast to native types. */ 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; }