# Migration `20201105184423-add-name-to-user` This migration has been generated by Kurt Hutten at 11/6/2020, 5:44:24 AM. You can check out the [state of the schema](./schema.prisma) after the migration. ## Database Steps ```sql ALTER TABLE "User" ADD COLUMN "name" TEXT ``` ## Changes ```diff diff --git schema.prisma schema.prisma migration 20201101183848-db-init..20201105184423-add-name-to-user --- datamodel.dml +++ datamodel.dml @@ -1,7 +1,7 @@ datasource DS { provider = ["sqlite", "postgresql"] - url = "***" + url = "***" } generator client { provider = "prisma-client-js" @@ -19,11 +19,12 @@ // JSCAD // } model User { - id String @id @default(uuid()) - userName String @unique // reffered to as userId in @relations - email String @unique + id String @id @default(uuid()) + userName String @unique // reffered to as userId in @relations + email String @unique + name String? // role should probably be a list [] and also use enums, neither are supported by sqllight, so we need to set up postgresql in dev // maybe let netlify handle roles for now. // role String @default("user") ```