nanosanteservice/app/Models/NhInfosInvoice.php

69 lines
1.5 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class NhInfosInvoice
*
* @property int $id
* @property string $invoice_id
* @property int $network_agent_id
* @property float $amount
* @property float $insured_amount
* @property float $insurer_amount
* @property Carbon $period_start_at
* @property Carbon $period_end_at
* @property string|null $file_url
* @property Carbon $created_at
* @property Carbon $updated_at
* @property string|null $institution_name
* @property string|null $institution_code
* @property int $network_id
* @property string|null $currency_code
*
* @package App\Models
*/
class NhInfosInvoice extends Model
{
public $incrementing = false;
protected $table = 'nh_infos_invoices';
protected $casts = [
'id' => 'int',
'network_agent_id' => 'int',
'network_id' => 'int'
];
protected $dates = [
'period_start_at',
'period_end_at'
];
protected $fillable = [
'id',
'invoice_id',
'network_agent_id',
'amount',
'insured_amount',
'insurer_amount',
'period_start_at',
'period_end_at',
'file_url',
'institution_name',
'institution_code',
'network_id',
'currency_code'
];
public function health_care_sheets()
{
return $this->hasMany(NhInfosHealthCareSheets::class, 'invoice_id', 'id');
}
}