29 lines
806 B
PHP
29 lines
806 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Reduction.
|
|
*
|
|
* @property string $link Link
|
|
* @property string $basket_id Basket id
|
|
* @property string $verification Verification
|
|
* @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 Reduction extends Model
|
|
{
|
|
/**
|
|
* One to one Participation relation
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function participation()
|
|
{
|
|
return $this->belongsTo(Participation::class);
|
|
}
|
|
}
|