draw floorplan from json
This commit is contained in:
parent
52539d891e
commit
3f6ac523f8
4 changed files with 61 additions and 8 deletions
|
@ -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(),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue