Fixing various things

This commit is contained in:
Owen 2025-10-27 17:52:39 -07:00
parent 15d63ddffa
commit bd5cc790d6
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
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" }),