Improved tets and added PUT route for user acc

This commit is contained in:
Florian Sylvain
2023-01-29 22:45:14 +01:00
parent 248e764963
commit e967256654
4 changed files with 63 additions and 31 deletions
@@ -0,0 +1,8 @@
/*
Warnings:
- A unique constraint covering the columns `[email]` on the table `User` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX `User_email_key` ON `User`(`email`);
+1 -1
View File
@@ -9,7 +9,7 @@ datasource db {
model User {
id Int @id @default(autoincrement())
email String
email String @unique
password String
name String
picture_path String