2020-07-03 04:55:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Models;
|
|
|
|
|
|
|
|
/**
|
2021-01-28 04:52:11 +00:00
|
|
|
* @property int $id
|
|
|
|
* @property int $user_id
|
|
|
|
* @property string $token
|
|
|
|
* @property \Carbon\CarbonImmutable $created_at
|
2020-07-03 04:55:25 +00:00
|
|
|
* @property \Pterodactyl\Models\User $user
|
|
|
|
*/
|
|
|
|
class RecoveryToken extends Model
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* There are no updates to this model, only inserts and deletes.
|
|
|
|
*/
|
2021-01-23 20:33:34 +00:00
|
|
|
public const UPDATED_AT = null;
|
2020-07-03 04:55:25 +00:00
|
|
|
|
2020-07-10 04:32:31 +00:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $timestamps = true;
|
|
|
|
|
2021-07-17 21:18:05 +00:00
|
|
|
protected bool $immutableDates = true;
|
2020-07-03 04:55:25 +00:00
|
|
|
|
2021-07-17 21:18:05 +00:00
|
|
|
public static array $validationRules = [
|
2020-07-03 04:55:25 +00:00
|
|
|
'token' => 'required|string',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
}
|
|
|
|
}
|