mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
Handle online / offline site
This commit is contained in:
parent
324e7fb58b
commit
f6a4cd9caf
3 changed files with 19 additions and 3 deletions
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue