97 lines
2.1 KiB
PHP
97 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CMMS_Form extends Model
|
|
{
|
|
protected $table = 'cmms_forms';
|
|
|
|
protected $fillable = [
|
|
'dedicated_number',
|
|
'chassis_number',
|
|
'province_id',
|
|
'gps_code',
|
|
'province_fa',
|
|
'operator_phone',
|
|
'city_id',
|
|
'city_fa',
|
|
'device_name',
|
|
'operator_name',
|
|
'operator_nationalcode',
|
|
'operator_phone',
|
|
'form_number',
|
|
'car_type',
|
|
'motor',
|
|
'motor_description',
|
|
'motor_score',
|
|
'power',
|
|
'power_description',
|
|
'power_score',
|
|
'zirbandi',
|
|
'zirbandi_description',
|
|
'zirbandi_score',
|
|
'chassis',
|
|
'chassis_description',
|
|
'chassis_score',
|
|
'electrical',
|
|
'electrical_description',
|
|
'electrical_score',
|
|
'safety',
|
|
'safety_description',
|
|
'safety_score',
|
|
'gps',
|
|
'gps_description',
|
|
'gps_score',
|
|
'color',
|
|
'color_description',
|
|
'color_score',
|
|
'bucket',
|
|
'bucket_description',
|
|
'bucket_score',
|
|
'hydraulic',
|
|
'hydraulic_description',
|
|
'hydraulic_score',
|
|
'jolobandi',
|
|
'jolobandi_description',
|
|
'jolobandi_score',
|
|
'ripper',
|
|
'ripper_description',
|
|
'ripper_score',
|
|
'service_status',
|
|
'service_description',
|
|
'fuel_form',
|
|
'fuel_description',
|
|
'question1',
|
|
'question2',
|
|
'question3',
|
|
'question4',
|
|
'question5',
|
|
'auditor_name',
|
|
'auditor_position',
|
|
'member1_name',
|
|
'member1_position',
|
|
'member2_name',
|
|
'member2_position',
|
|
'member3_name',
|
|
'member3_position',
|
|
'total_points',
|
|
'image1',
|
|
'image2',
|
|
'image3',
|
|
'file1',
|
|
'car_type_fa',
|
|
'created_at_fa',
|
|
'updated_at_fa',
|
|
'user_id',
|
|
];
|
|
|
|
public function cmms_form_histories()
|
|
{
|
|
return $this->hasOne(CMMS_Forms_histories::class, 'cmms_forms_id');
|
|
}
|
|
|
|
|
|
|
|
} |