2020-07-03 04:55:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Models;
|
|
|
|
|
|
|
|
/**
|
2021-01-23 20:33:34 +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;
|
|
|
|
|
2020-07-03 04:55:25 +00:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $immutableDates = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
public static $validationRules = [
|
|
|
|
'token' => 'required|string',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
}
|
|
|
|
}
|