mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 07:16:40 +00:00
🐛 add missing orgId to blueprints table
This commit is contained in:
@@ -25,7 +25,6 @@ export const domains = pgTable("domains", {
|
|||||||
preferWildcardCert: boolean("preferWildcardCert")
|
preferWildcardCert: boolean("preferWildcardCert")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
export const dnsRecords = pgTable("dnsRecords", {
|
export const dnsRecords = pgTable("dnsRecords", {
|
||||||
id: serial("id").primaryKey(),
|
id: serial("id").primaryKey(),
|
||||||
domainId: varchar("domainId")
|
domainId: varchar("domainId")
|
||||||
@@ -34,7 +33,7 @@ export const dnsRecords = pgTable("dnsRecords", {
|
|||||||
recordType: varchar("recordType").notNull(), // "NS" | "CNAME" | "A" | "TXT"
|
recordType: varchar("recordType").notNull(), // "NS" | "CNAME" | "A" | "TXT"
|
||||||
baseDomain: varchar("baseDomain"),
|
baseDomain: varchar("baseDomain"),
|
||||||
value: varchar("value").notNull(),
|
value: varchar("value").notNull(),
|
||||||
verified: boolean("verified").notNull().default(false),
|
verified: boolean("verified").notNull().default(false)
|
||||||
});
|
});
|
||||||
|
|
||||||
export const orgs = pgTable("orgs", {
|
export const orgs = pgTable("orgs", {
|
||||||
@@ -706,6 +705,11 @@ export const setupTokens = pgTable("setupTokens", {
|
|||||||
// Blueprint runs
|
// Blueprint runs
|
||||||
export const blueprints = pgTable("blueprints", {
|
export const blueprints = pgTable("blueprints", {
|
||||||
blueprintId: serial("blueprintId").primaryKey(),
|
blueprintId: serial("blueprintId").primaryKey(),
|
||||||
|
orgId: text("orgId")
|
||||||
|
.references(() => orgs.orgId, {
|
||||||
|
onDelete: "cascade"
|
||||||
|
})
|
||||||
|
.notNull(),
|
||||||
name: varchar("name").notNull(),
|
name: varchar("name").notNull(),
|
||||||
source: varchar("source").notNull(),
|
source: varchar("source").notNull(),
|
||||||
createdAt: integer("createdAt").notNull(),
|
createdAt: integer("createdAt").notNull(),
|
||||||
|
|||||||
Reference in New Issue
Block a user