app: update models
This commit is contained in:
parent
28bc86e23b
commit
9d64c6751b
25 changed files with 55 additions and 54 deletions
26
app/Models/UserSSHKey.php
Normal file
26
app/Models/UserSSHKey.php
Normal 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',
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue