misc_pterodactyl-panel/app/Models/UserSSHKey.php

27 lines
536 B
PHP
Raw Normal View History

2021-07-17 21:18:05 +00:00
<?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',
];
}