56 lines
1.1 KiB
PHP
56 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class NhExam
|
|
*
|
|
* @property int $id
|
|
* @property int $act_id
|
|
* @property string $description
|
|
* @property int $quantity
|
|
* @property float $unit_price
|
|
* @property float $insured_paid_amount
|
|
* @property float $insurer_paid_amount
|
|
* @property int $billed
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class NhExam extends Model
|
|
{
|
|
protected $table = 'nh_exams';
|
|
|
|
protected $casts = [
|
|
'act_id' => 'int',
|
|
'quantity' => 'int',
|
|
// 'unit_price' => 'float',
|
|
// 'insured_paid_amount' => 'float',
|
|
// 'insurer_paid_amount' => 'float',
|
|
'billed' => 'boolean'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'act_id',
|
|
'description',
|
|
'quantity',
|
|
'unit_price',
|
|
'insured_paid_amount',
|
|
'insurer_paid_amount',
|
|
'billed'
|
|
];
|
|
|
|
public function act()
|
|
{
|
|
return $this->belongsTo(NhAct::class, 'act_id');
|
|
}
|
|
}
|