newts not being on when olm is started

This commit is contained in:
Owen 2025-04-13 21:28:11 -04:00
parent b7ae712b63
commit 569635f3ed
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
7 changed files with 150 additions and 35 deletions

View file

@ -157,7 +157,7 @@ export const clients = sqliteTable("clients", {
type: text("type").notNull(), // "olm"
online: integer("online", { mode: "boolean" }).notNull().default(false),
endpoint: text("endpoint"),
lastHolePunch: integer("lastHolePunch"),
lastHolePunch: integer("lastHolePunch")
});
export const clientSites = sqliteTable("clientSites", {
@ -167,6 +167,7 @@ export const clientSites = sqliteTable("clientSites", {
siteId: integer("siteId")
.notNull()
.references(() => sites.siteId, { onDelete: "cascade" }),
isRelayed: integer("isRelayed", { mode: "boolean" }).notNull().default(false)
});
export const olms = sqliteTable("olms", {