Add domain component to the site resource

This commit is contained in:
Owen
2026-04-11 17:19:18 -07:00
parent 9e50569c31
commit fc4633db91
4 changed files with 95 additions and 18 deletions

View File

@@ -249,7 +249,12 @@ export const siteResources = pgTable("siteResources", {
authDaemonPort: integer("authDaemonPort").default(22123),
authDaemonMode: varchar("authDaemonMode", { length: 32 })
.$type<"site" | "remote">()
.default("site")
.default("site"),
domainId: varchar("domainId").references(() => domains.domainId, {
onDelete: "set null"
}),
subdomain: varchar("subdomain"),
fullDomain: varchar("fullDomain")
});
export const clientSiteResources = pgTable("clientSiteResources", {