update schema + working sandbox creation route

This commit is contained in:
Ishaan Dey
2024-04-24 02:22:06 -04:00
parent b6097df612
commit f4c3d43b87
5 changed files with 142 additions and 11 deletions

View File

@ -24,8 +24,6 @@ export const sandbox = sqliteTable("sandbox", {
.unique(),
name: text("name").notNull(),
type: text("type", { enum: ["react", "node"] }).notNull(),
bucket: text("bucket"),
init: integer("init", { mode: "boolean" }).default(false),
userId: text("user_id")
.notNull()
.references(() => user.id),