nanosanteservice/app/Models/NhExam.php

58 lines
1.1 KiB
PHP
Raw Normal View History

<?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
2022-04-07 15:46:46 +00:00
* @property int $unit_quantity
* @property float $insured_paid_amount
* @property float $insurer_paid_amount
2021-12-20 11:20:58 +00:00
* @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',
2021-12-20 11:20:58 +00:00
// 'unit_price' => 'float',
// 'insured_paid_amount' => 'float',
// 'insurer_paid_amount' => 'float',
'billed' => 'boolean'
];
protected $fillable = [
'act_id',
'description',
'quantity',
'unit_price',
2022-04-07 15:46:46 +00:00
'unit_quantity',
'insured_paid_amount',
2021-12-20 11:20:58 +00:00
'insurer_paid_amount',
'billed'
];
public function act()
{
return $this->belongsTo(NhAct::class, 'act_id');
}
}