wasp/waspc/examples/todoApp/migrations/20201008135054-added-user
2020-10-19 14:45:54 +02:00
..
README.md Authentication generation (#74) 2020-10-19 14:45:54 +02:00
schema.prisma Authentication generation (#74) 2020-10-19 14:45:54 +02:00
steps.json Authentication generation (#74) 2020-10-19 14:45:54 +02:00

Migration 20201008135054-added-user

This migration has been generated by Matija Sosic at 10/8/2020, 3:50:54 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 UNIQUE INDEX "User.email_unique" ON "User"("email")

Changes

diff --git schema.prisma schema.prisma
migration 20201008125434-init..20201008135054-added-user
--- datamodel.dml
+++ datamodel.dml
@@ -1,15 +1,21 @@
 datasource db {
   provider = "sqlite"
-  url = "***"
+  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