ldc-mesbr-app/app/Mouvement.php
Thibault Richy 8a1054333a init
2019-01-15 14:17:15 +01:00

42 lines
668 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Mouvement extends Model
{
/**
* @var string
*/
protected $table = 'mouvement';
/**
* @var string
*/
protected $primaryKey = 'mouvement_id';
/**
* @var boolean
*/
public $timestamps = false;
protected $dates = ['mouvement_created_at'];
/**
* @var array
*/
protected $fillable = [
'mouvement_nombre',
'mouvement_created_at'
];
/**
* ManyToOne
* Mouvement -> Coupon
*/
public function coupon()
{
return $this->belongsTo('App\Coupon', 'mouvement_couponId');
}
}