Add cols to exit node

This commit is contained in:
Owen 2025-08-13 20:41:29 -07:00
parent 34d705a54e
commit b573d63648
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
2 changed files with 15 additions and 3 deletions

View file

@ -133,7 +133,13 @@ export const exitNodes = sqliteTable("exitNodes", {
publicKey: text("publicKey").notNull(),
listenPort: integer("listenPort").notNull(),
reachableAt: text("reachableAt"), // this is the internal address of the gerbil http server for command control
maxConnections: integer("maxConnections")
maxConnections: integer("maxConnections"),
orgId: text("orgId").references(() => orgs.orgId, {
onDelete: "cascade"
}),
online: integer("online", { mode: "boolean" }).notNull().default(false),
lastPing: integer("lastPing"),
type: text("type").default("gerbil") // gerbil, remoteExitNode
});
export const users = sqliteTable("user", {