Updates to user schema, account page

Renamed isAccountVerified to accountIsVerified, add account info to account page
This commit is contained in:
Aaron William Po
2023-05-11 22:20:51 -04:00
parent 55afcdec70
commit 2eb2626d54
8 changed files with 160 additions and 22 deletions

View File

@@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `isAccountVerified` on the `User` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "User" DROP COLUMN "isAccountVerified",
ADD COLUMN "accountIsVerified" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -21,7 +21,7 @@ model User {
email String @unique
createdAt DateTime @default(now()) @db.Timestamptz(3)
updatedAt DateTime? @updatedAt @db.Timestamptz(3)
isAccountVerified Boolean @default(false)
accountIsVerified Boolean @default(false)
dateOfBirth DateTime
beerPosts BeerPost[]
beerTypes BeerType[]