60 lines
1.1 KiB
PHP
Executable File
60 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class TransfertCommissionTransaction
|
|
*
|
|
* @property int $id
|
|
* @property float $balance_princ_init
|
|
* @property float $balance_com_init
|
|
* @property float $balance_princ_final
|
|
* @property float $balance_com_final
|
|
* @property Carbon $date
|
|
* @property int $id_wallet_ag
|
|
*
|
|
* @property Wallet $wallet
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class TransfertCommissionTransaction extends Model
|
|
{
|
|
protected $table = 'transfert_commission_transaction';
|
|
public $incrementing = false;
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'id' => 'int',
|
|
'balance_princ_init' => 'float',
|
|
'balance_com_init' => 'float',
|
|
'balance_princ_final' => 'float',
|
|
'balance_com_final' => 'float',
|
|
'id_wallet_ag' => 'int'
|
|
];
|
|
|
|
protected $dates = [
|
|
'date'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'balance_princ_init',
|
|
'balance_com_init',
|
|
'balance_princ_final',
|
|
'balance_com_final',
|
|
'date',
|
|
'id_wallet_ag'
|
|
];
|
|
|
|
public function wallet()
|
|
{
|
|
return $this->belongsTo(Wallet::class, 'id_wallet_ag');
|
|
}
|
|
}
|