Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
copy over schema file
Sara Vieira24f98d9b4268
diff --git a/Dockerfile b/Dockerfileindex 7a64a24752..a2d255542f 100644--- a/Dockerfile+++ b/Dockerfile@@ -47,7 +47,6 @@ RUN echo "#!/bin/sh\nset -x\nsqlite3 \$DATABASE_URL" > /usr/local/bin/database-cWORKDIR /myappCOPY --from=production-deps /myapp/node_modules /myapp/node_modules-COPY --from=production-deps /myapp/prisma /myapp/prismaCOPY --from=build /myapp/build /myapp/builddiff --git a/package.json b/package.jsonindex ff4c6c3781..ea4f4b98dc 100644--- a/package.json+++ b/package.json@@ -9,9 +9,10 @@"typecheck": "tsc -b","lint": "eslint . --ext .ts,.tsx --max-warnings 0","test": "jest",+ "prepare": "cp ./node_modules/@webstudio-is/sdk/prisma/schema.prisma prisma/ && yarn migrate && yarn generate","checks": "yarn lint && yarn typecheck && yarn test",- "migrate": "yarn prisma migrate dev --schema ./node_modules/@webstudio-is/sdk/prisma/schema.prisma",- "generate": "yarn prisma generate --schema ./node_modules/@webstudio-is/sdk/prisma/schema.prisma",+ "migrate": "yarn prisma migrate dev",+ "generate": "yarn prisma generate","watch:sdk": "yarn relative-deps watch"},"dependencies": {diff --git a/prisma/schema.prisma b/prisma/schema.prismanew file mode 100644index 0000000000..f098b6a76c--- /dev/null+++ b/prisma/schema.prisma@@ -0,0 +1,42 @@+// This is your Prisma schema file,+// learn more about it in the docs: https://pris.ly/d/prisma-schema++generator client {+ provider = "prisma-client-js"+}++datasource db {+ provider = "sqlite"+ url = env("DATABASE_URL")+}++model Project {+ id String @id @default(uuid())+ userId String+ title String+ domain String @unique+ prodTreeId String? // exists when published+ devTreeId String+ prodTreeIdHistory String @default("[]")+}++model User {+ id String @id @default(uuid())+}++model Tree {+ id String @id @default(uuid())+ root String+}++model InstanceProps {+ id String @id @default(uuid())+ instanceId String+ treeId String+ props String @default("[]")+}++model Breakpoints {+ treeId String @id @default(uuid())+ values String @default("[]")+}