Fixing various things

This commit is contained in:
Owen
2025-10-27 17:52:39 -07:00
parent 15d63ddffa
commit bd5cc790d6
14 changed files with 117 additions and 47 deletions

View File

@@ -18,7 +18,7 @@ export const domains = sqliteTable("domains", {
});
export const dnsRecords = sqliteTable("dnsRecords", {
id: text("id").primaryKey(),
id: integer("id").primaryKey({ autoIncrement: true }),
domainId: text("domainId")
.notNull()
.references(() => domains.domainId, { onDelete: "cascade" }),