added table names as const

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-22 18:45:34 +01:00
parent d769a5cc0b
commit bc50b00127
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@ class DatabaseConnection
{
private PDO $dbConnection;
const TABLE_PREFIX = "";
const TABLE_DOMAINS = self::TABLE_PREFIX . "domains";
const TABLE_NAMESERVERS = self::TABLE_PREFIX . "nameservers";
const TABLE_PANELS = self::TABLE_PREFIX . "panels";
const TABLE_USER = self::TABLE_PREFIX . "user";
public function __construct(private array $config)
{
extract($this->config);