walletservice/app/Models/PaliersConfigWallet.php

50 lines
775 B
PHP
Raw Normal View History

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class PaliersConfigWallet
*
* @property int $id
* @property string $type
* @property float $min
* @property float $max
* @property float $taux
* @property int $idConfig
*
* @property ConfigWallet $config_wallet
*
* @package App\Models
*/
class PaliersConfigWallet extends Model
{
protected $table = 'paliersConfigWallet';
public $timestamps = false;
protected $casts = [
'min' => 'float',
'max' => 'float',
'taux' => 'float',
'idConfig' => 'int'
];
protected $fillable = [
'type',
'min',
'max',
'taux',
'idConfig'
];
public function config_wallet()
{
return $this->belongsTo(ConfigWallet::class, 'idConfig');
}
}