Canvas: build application infrastructure with drag and drop
Change-Id: I5cfd12e67794f3376c5c025af29470d52d77cf16
diff --git a/apps/canvas/server/prisma/migrations/20241122134801_init/migration.sql b/apps/canvas/server/prisma/migrations/20241122134801_init/migration.sql
new file mode 100644
index 0000000..b713017
--- /dev/null
+++ b/apps/canvas/server/prisma/migrations/20241122134801_init/migration.sql
@@ -0,0 +1,8 @@
+-- CreateTable
+CREATE TABLE "Project" (
+ "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ "userId" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "state" BLOB,
+ "draft" BLOB
+);
diff --git a/apps/canvas/server/prisma/migrations/migration_lock.toml b/apps/canvas/server/prisma/migrations/migration_lock.toml
new file mode 100644
index 0000000..e5e5c47
--- /dev/null
+++ b/apps/canvas/server/prisma/migrations/migration_lock.toml
@@ -0,0 +1,3 @@
+# Please do not edit this file manually
+# It should be added in your version-control system (i.e. Git)
+provider = "sqlite"
\ No newline at end of file
diff --git a/apps/canvas/server/prisma/schema.prisma b/apps/canvas/server/prisma/schema.prisma
new file mode 100644
index 0000000..39ea028
--- /dev/null
+++ b/apps/canvas/server/prisma/schema.prisma
@@ -0,0 +1,22 @@
+// This is your Prisma schema file,
+// learn more about it in the docs: https://pris.ly/d/prisma-schema
+
+// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
+// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
+
+generator client {
+ provider = "prisma-client-js"
+}
+
+datasource db {
+ provider = "sqlite"
+ url = "file:./dodo.db"
+}
+
+model Project {
+ id Int @id @default(autoincrement())
+ userId String
+ name String
+ state Bytes?
+ draft Bytes?
+}
\ No newline at end of file