Handle online / offline site

This commit is contained in:
Owen Schwartz 2024-12-19 21:27:40 -05:00
parent 324e7fb58b
commit f6a4cd9caf
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", {