app: update models

This commit is contained in:
Matthew Penner 2021-07-17 15:18:05 -06:00
parent 28bc86e23b
commit 9d64c6751b
25 changed files with 55 additions and 54 deletions

26
app/Models/UserSSHKey.php Normal file
View file

@ -0,0 +1,26 @@
<?php
namespace Pterodactyl\Models;
/**
* @property int $id
* @property int $user_id
* @property string $name
* @property string $public_key
* @property \Carbon\CarbonImmutable $created_at
*/
class UserSSHKey extends Model
{
protected $table = 'user_ssh_keys';
protected bool $immutableDates = true;
/**
* @var string[]
*/
protected $guarded = ['id', 'created_at'];
public static array $validationRules = [
'name' => 'required|string',
'public_key' => 'required|string',
];
}