mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 10:35:04 +03:00
.. | ||
README.md | ||
schema.prisma | ||
steps.json |
Migration 20201016123235-smth
This migration has been generated by Matija Sosic at 10/16/2020, 2:32:35 PM. You can check out the state of the schema after the migration.
Database Steps
CREATE TABLE "User" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"email" TEXT NOT NULL,
"password" TEXT NOT NULL
)
CREATE TABLE "Project" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" TEXT NOT NULL
)
CREATE TABLE "Task" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"description" TEXT NOT NULL,
"isDone" BOOLEAN NOT NULL DEFAULT false
)
CREATE UNIQUE INDEX "User.email_unique" ON "User"("email")
Changes
diff --git schema.prisma schema.prisma
migration ..20201016123235-smth
--- datamodel.dml
+++ datamodel.dml
@@ -1,0 +1,35 @@
+
+datasource db {
+ provider = "sqlite"
+ url = "***"
+}
+
+generator client {
+ provider = "prisma-client-js"
+ output = "../server/node_modules/.prisma/client"
+}
+
+model User {
+ id Int @id @default(autoincrement())
+ email String @unique
+ password String
+}
+
+model Project {
+ id Int @id @default(autoincrement())
+ name String
+
+ // NOTE(matija): not using relations yet.
+ //tasks Task[]
+}
+
+model Task {
+ id Int @id @default(autoincrement())
+ description String
+ isDone Boolean @default(false)
+
+ // NOTE(matija): not using relations yet.
+ //project Project @relation(fields: [projectId], references: [id])
+ //projectId Int
+}
+