mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-19 10:57:30 +02:00
34 lines
777 B
PHP
34 lines
777 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Pivots;
|
|
|
|
use Illuminate\Database\Eloquent\Attributes\DateFormat;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*/
|
|
#[DateFormat('Y-m-d\TH:i:s.u')]
|
|
abstract class BasePivot extends Pivot
|
|
{
|
|
use HasFactory;
|
|
|
|
final public const ATTRIBUTE_ID = 'id';
|
|
final public const ATTRIBUTE_CREATED_AT = Model::CREATED_AT;
|
|
final public const ATTRIBUTE_UPDATED_AT = Model::UPDATED_AT;
|
|
|
|
/**
|
|
* Indicates if the IDs are auto-incrementing.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $incrementing = true;
|
|
}
|