ldc-mesbr-app/app/Models/Mur.php

51 lines
813 B
PHP
Raw Permalink Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App\Models;
2019-01-15 14:17:15 +01:00
use Illuminate\Database\Eloquent\Model;
class Mur extends Model
{
/**
* @var string
*/
protected $table = 'mur';
/**
* @var string
*/
protected $primaryKey = 'mur_id';
/**
2025-04-03 09:30:16 +02:00
* @var boolean
2019-01-15 14:17:15 +01:00
*/
public $timestamps = false;
/**
* ManyToOne
* Mur -> Campagne
*/
public function campagne()
{
return $this->belongsTo('App\Models\Campagne', 'mur_campId');
2019-01-15 14:17:15 +01:00
}
/**
* ManyToOne
* Mur -> Contact
*/
public function contact()
{
return $this->belongsTo('App\Models\Contact', 'mur_contactId');
2019-01-15 14:17:15 +01:00
}
/**
* ManyToOne
* Mur -> Coupon
*/
public function coupon()
{
return $this->belongsTo('App\Models\Coupon', 'mur_couponId');
2019-01-15 14:17:15 +01:00
}
}