Rewrite frontend, added rooms, voltage selection per project, startet with todos
This commit is contained in:
parent
81d47ce16f
commit
65819900b1
49 changed files with 3695 additions and 394 deletions
11
src/db/schema/floors.ts
Normal file
11
src/db/schema/floors.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
import { projects } from "./projects.js";
|
||||
|
||||
export const floors = sqliteTable("floors", {
|
||||
id: text("id").primaryKey(),
|
||||
projectId: text("project_id")
|
||||
.notNull()
|
||||
.references(() => projects.id, { onDelete: "cascade" }),
|
||||
name: text("name").notNull(),
|
||||
sortOrder: integer("sort_order").notNull().default(0),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue