mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-30 12:49:43 +00:00
🏷️ add types on mode in sqlite
This commit is contained in:
parent
0547396213
commit
ccddb9244d
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ export const siteResources = sqliteTable("siteResources", {
|
|||
.references(() => orgs.orgId, { onDelete: "cascade" }),
|
||||
niceId: text("niceId").notNull(),
|
||||
name: text("name").notNull(),
|
||||
mode: text("mode").notNull(), // "host" | "cidr" | "port"
|
||||
mode: text("mode").$type<"host" | "cidr">().notNull(), // "host" | "cidr" | "port"
|
||||
protocol: text("protocol"), // only for port mode
|
||||
proxyPort: integer("proxyPort"), // only for port mode
|
||||
destinationPort: integer("destinationPort"), // only for port mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue