mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-10-19 00:34:11 +02:00
Improved tets and added PUT route for user acc
This commit is contained in:
1 parent
248e764963
commit
e967256654
4 files changed
+63
-31
No files matched your search
@@ -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`);
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user