nanosanteservice/app/Models/NhInsurancesSubscription.php

59 lines
1.2 KiB
PHP
Raw Normal View History

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class NhInsurancesSubscription
*
* @property int $id
* @property string $insurance_subscription_id
* @property int $network_id
* @property int $user_id
* @property int $number_of_months
* @property int $amount
* @property int $number_of_beneficiaries
* @property float $bonus_amount
* @property string $state
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @package App\Models
*/
class NhInsurancesSubscription extends Model
{
protected $table = 'nh_insurances_subscriptions';
protected $casts = [
'network_id' => 'int',
'user_id' => 'int',
'number_of_months' => 'int',
'amount' => 'int',
'number_of_beneficiaries' => 'int',
'bonus_amount' => 'float'
];
protected $fillable = [
'insurance_subscription_id',
'network_id',
'user_id',
'number_of_months',
'amount',
'number_of_beneficiaries',
'bonus_amount',
'state'
];
public function user()
{
return $this->belongsTo(User::class, 'user_id');
}
}