53 lines
910 B
PHP
Executable File
53 lines
910 B
PHP
Executable File
<?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 float $plafond
|
|
* @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',
|
|
'plafond' => 'float',
|
|
'idConfig' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'type',
|
|
'min',
|
|
'max',
|
|
'taux',
|
|
'plafond',
|
|
'idConfig'
|
|
];
|
|
|
|
public function config_wallet()
|
|
{
|
|
return $this->belongsTo(ConfigWallet::class, 'idConfig');
|
|
}
|
|
}
|