add deleteClient endpoint

This commit is contained in:
miloschwartz 2025-02-21 15:26:48 -05:00
parent 255e29d9c8
commit 11920ca997
No known key found for this signature in database
6 changed files with 161 additions and 45 deletions

View file

@ -121,9 +121,11 @@ export const clients = sqliteTable("clients", {
siteId: integer("siteId").references(() => sites.siteId, {
onDelete: "cascade"
}),
orgId: text("orgId").references(() => orgs.orgId, {
onDelete: "cascade"
}),
orgId: text("orgId")
.references(() => orgs.orgId, {
onDelete: "cascade"
})
.notNull(),
name: text("name").notNull(),
pubKey: text("pubKey"),
subnet: text("subnet").notNull(),