draw floorplan from json

This commit is contained in:
David Senoner 2025-05-19 14:52:01 +02:00
parent 52539d891e
commit 3f6ac523f8
4 changed files with 61 additions and 8 deletions

View file

@ -1,4 +1,4 @@
import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
import { integer, json, pgTable, text, timestamp } from "drizzle-orm/pg-core";
export const users = pgTable("users", {
id: text().primaryKey(),
@ -19,3 +19,8 @@ export const floors = pgTable("floors", {
floor: integer().primaryKey(),
url: text().notNull(),
});
export const plans = pgTable("plans", {
floor: integer().primaryKey(),
plan: json().notNull(),
});