Add domain type

This commit is contained in:
Owen 2025-06-22 12:58:33 -04:00
parent 317a15b649
commit 9680260104
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
2 changed files with 4 additions and 2 deletions

View file

@ -12,7 +12,8 @@ import { InferSelectModel } from "drizzle-orm";
export const domains = pgTable("domains", { export const domains = pgTable("domains", {
domainId: varchar("domainId").primaryKey(), domainId: varchar("domainId").primaryKey(),
baseDomain: varchar("baseDomain").notNull(), baseDomain: varchar("baseDomain").notNull(),
configManaged: boolean("configManaged").notNull().default(false) configManaged: boolean("configManaged").notNull().default(false),
type: varchar("type").notNull(), // "ns", "cname", "a"
}); });
export const orgs = pgTable("orgs", { export const orgs = pgTable("orgs", {

View file

@ -6,7 +6,8 @@ export const domains = sqliteTable("domains", {
baseDomain: text("baseDomain").notNull(), baseDomain: text("baseDomain").notNull(),
configManaged: integer("configManaged", { mode: "boolean" }) configManaged: integer("configManaged", { mode: "boolean" })
.notNull() .notNull()
.default(false) .default(false),
type: text("type").notNull(), // "ns", "cname", "a"
}); });
export const orgs = sqliteTable("orgs", { export const orgs = sqliteTable("orgs", {