mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 12:23:44 +02:00
app: update models
This commit is contained in:
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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user