feat(rcon): add admin server console
This commit is contained in:
@@ -206,6 +206,23 @@ export const appSettings = pgTable("app_settings", {
|
||||
...timestamps(),
|
||||
});
|
||||
|
||||
export const rconServers = pgTable(
|
||||
"rcon_servers",
|
||||
{
|
||||
id: uuid("id").primaryKey().defaultRandom(),
|
||||
name: varchar("name", { length: 100 }).notNull(),
|
||||
host: varchar("host", { length: 253 }).notNull(),
|
||||
port: integer("port").notNull().default(25575),
|
||||
encryptedPassword: text("encrypted_password").notNull(),
|
||||
enabled: boolean("enabled").notNull().default(false),
|
||||
...timestamps(),
|
||||
},
|
||||
(table) => [
|
||||
uniqueIndex("rcon_servers_name_uidx").on(sql`lower(${table.name})`),
|
||||
check("rcon_servers_port_check", sql`${table.port} between 1 and 65535`),
|
||||
],
|
||||
);
|
||||
|
||||
export const ipIntelligence = pgTable("ip_intelligence", {
|
||||
ipAddress: inet("ip_address").primaryKey(),
|
||||
classification: ipClassification("classification").notNull().default("unknown"),
|
||||
|
||||
Reference in New Issue
Block a user