40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Email\EmailConfirmationToken;
|
|
|
|
use DateTimeImmutable;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $user_id
|
|
* @property string $token
|
|
* @property DateTimeImmutable $available_to
|
|
*
|
|
* @method static Builder<static>|EmailConfirmationTokenModel newModelQuery()
|
|
* @method static Builder<static>|EmailConfirmationTokenModel newQuery()
|
|
* @method static Builder<static>|EmailConfirmationTokenModel query()
|
|
* @method static Builder<static>|EmailConfirmationTokenModel whereId($value)
|
|
* @method static Builder<static>|EmailConfirmationTokenModel whereUserId($value)
|
|
* @method static Builder<static>|EmailConfirmationTokenModel whereToken($value)
|
|
* @method static Builder<static>|EmailConfirmationTokenModel whereAvailableTo($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class EmailConfirmationTokenModel extends Model
|
|
{
|
|
protected $table = 'email_confirmation_tokens';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'token',
|
|
'available_to',
|
|
];
|
|
|
|
protected $casts = [
|
|
'available_to' => 'immutable_datetime',
|
|
];
|
|
}
|