Handle online / offline site

This commit is contained in:
Owen Schwartz
2024-12-19 21:27:40 -05:00
parent 01731c224f
commit b4b213e68f
3 changed files with 19 additions and 3 deletions

View File

@@ -23,7 +23,9 @@ export const sites = sqliteTable("sites", {
subnet: text("subnet").notNull(),
megabytesIn: integer("bytesIn"),
megabytesOut: integer("bytesOut"),
type: text("type").notNull() // "newt" or "wireguard"
lastBandwidthUpdate: text("lastBandwidthUpdate"),
type: text("type").notNull(), // "newt" or "wireguard"
online: integer("online", { mode: "boolean" }).notNull().default(false)
});
export const resources = sqliteTable("resources", {