fix new user error + add wrangler.toml examples

This commit is contained in:
Ishaan Dey
2024-05-22 20:06:16 -07:00
parent f35e5debff
commit 8e49fed48b
6 changed files with 52 additions and 2 deletions

View File

@ -28,6 +28,7 @@ export const sandbox = sqliteTable("sandbox", {
name: text("name").notNull(),
type: text("type", { enum: ["react", "node"] }).notNull(),
visibility: text("visibility", { enum: ["public", "private"] }),
createdAt: integer("createdAt", { mode: "timestamp_ms" }),
userId: text("user_id")
.notNull()
.references(() => user.id),