Add host setup functions and client components

This commit is contained in:
2026-09-13 10:52:30 +01:00
parent 76679aabe7
commit 86eb3a0b05
53 changed files with 1284 additions and 1325 deletions
+22
View File
@@ -186,6 +186,10 @@ const schema: BUN_SQLITE_DatabaseSchemaType = {
fieldName: "allowed_ips",
dataType: "TEXT",
},
{
fieldName: "notes",
dataType: "TEXT",
},
],
},
{
@@ -209,6 +213,24 @@ const schema: BUN_SQLITE_DatabaseSchemaType = {
},
],
},
{
tableName: "client_rules",
tableDescription: `IP table rules for this client`,
fields: [
{
fieldName: "user_id",
dataType: "INTEGER",
},
{
fieldName: "client_id",
dataType: "INTEGER",
},
{
fieldName: "rule",
dataType: "TEXT",
},
],
},
{
tableName: "variables",
fields: [