ldc-mesbr-app/app/Calendrier.php

43 lines
697 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Calendrier extends Model
{
/**
* @var string
*/
protected $table = 'calendrier';
/**
2025-04-03 09:30:16 +02:00
* @var boolean
2019-01-15 14:17:15 +01:00
*/
public $timestamps = false;
/**
* @var string
*/
protected $primaryKey = 'calendrier_id';
protected $dates = ['calendrier_startdate', 'calendrier_enddate'];
2021-04-27 17:29:47 +02:00
2019-01-15 14:17:15 +01:00
/**
* @var array
*/
protected $fillable = [
'calendrier_startdate',
'calendrier_enddate'
];
/**
* ManyToOne
* Calendrier -> Coupon
*/
public function coupon()
{
return $this->belongsTo('App\Coupon', 'calendrier_couponId');
}
}