Prevent creating a new database via the application API if server is at its limit; closes #2129

This commit is contained in:
Dane Everitt
2020-06-23 20:07:37 -07:00
parent 910a48ee8a
commit b78aa180ea
6 changed files with 116 additions and 76 deletions

View File

@@ -2,6 +2,21 @@
namespace Pterodactyl\Models;
/**
* @property int $id
* @property int $server_id
* @property int $database_host_id
* @property string $database
* @property string $username
* @property string $remote
* @property string $password
* @property int $max_connections
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
*
* @property \Pterodactyl\Models\Server $server
* @property \Pterodactyl\Models\DatabaseHost $host
*/
class Database extends Model
{
/**