32 lines
1 KiB
PHP
32 lines
1 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
/**
|
|
* Bon de réduction crée à partir de MesBr lors d'un gain
|
|
*
|
|
* @property string $link Lien généré par le client MesBr pour accéder au Coupon.
|
|
* @property string $basket_id Identifiant du panier MesBr (spécifique au client).
|
|
* @property string $verification Lien généré par le client MesBr pour ??
|
|
* @property-read \Illuminate\Support\Carbon $created_at Creation Date.
|
|
* @property-read \Illuminate\Support\Carbon $updated_at Last update Date.
|
|
*
|
|
* @property-read \App\Models\Participation $participation Associated participation.
|
|
*/
|
|
class Discount extends Model
|
|
{
|
|
// * RELATIONSHIPS
|
|
|
|
/**
|
|
* One to one Participation relation
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function participation(): HasOne
|
|
{
|
|
return $this->hasOne(Participation::class);
|
|
}
|
|
}
|