76 lines
1.9 KiB
PHP
76 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ContractSubItemsHistory extends Model
|
|
{
|
|
protected $fillable = [
|
|
'project_title',
|
|
'project_type_id',
|
|
'project_type_fa',
|
|
'operation_type_id1',
|
|
'operation_type_fa1',
|
|
'operation_type_unit1',
|
|
'operation_type_amount1',
|
|
'operation_type_progress1',
|
|
'operation_type_tonaj1',
|
|
'operation_type_id2',
|
|
'operation_type_fa2',
|
|
'operation_type_unit2',
|
|
'operation_type_amount2',
|
|
'operation_type_progress2',
|
|
'operation_type_tonaj2',
|
|
'operation_type_id3',
|
|
'operation_type_fa3',
|
|
'operation_type_unit3',
|
|
'operation_type_amount3',
|
|
'operation_type_progress3',
|
|
'operation_type_tonaj3',
|
|
'operation_type_id4',
|
|
'operation_type_fa4',
|
|
'operation_type_unit4',
|
|
'operation_type_amount4',
|
|
'operation_type_progress4',
|
|
'operation_type_tonaj4',
|
|
'city_id',
|
|
'city_fa',
|
|
'province_id',
|
|
'province_fa',
|
|
'axis_type_id',
|
|
'axis_type_fa',
|
|
'axis_name_id',
|
|
'axis_name_fa',
|
|
'start_lat',
|
|
'end_lat',
|
|
'start_lng',
|
|
'end_lng',
|
|
'followup_priority_project',
|
|
'priority_project',
|
|
'operator_name',
|
|
'operator_phone',
|
|
'created_at_fa',
|
|
'last_status_id',
|
|
'last_status_fa',
|
|
'last_digit_project',
|
|
'last_function_operator',
|
|
'last_payable_operator',
|
|
'complete_payable',
|
|
'updated_at_fa',
|
|
'image_path1',
|
|
'image_path2',
|
|
'progress_project',
|
|
'unique_code',
|
|
'required_bitumen',
|
|
'used_bitumen',
|
|
'bridge_number',
|
|
'subitem_id',
|
|
'is_corrected',
|
|
];
|
|
|
|
public function subitem()
|
|
{
|
|
return $this->belongsTo(ContractSubItems::class, 'subitem_id', 'id');
|
|
}
|
|
} |