Edit Crud, add loaders during authentication

Took 2 hours 49 minutes
This commit is contained in:
Lucàs
2023-03-26 17:02:24 +02:00
parent 668e092dd3
commit 5cc56e46ec
16 changed files with 3319 additions and 154 deletions
-8
View File
@@ -1,8 +0,0 @@
const CRUD = {
CREATE: "PUT",
READ: "GET",
UPDATE: "POST",
DELETE: "DELETE",
};
export default CRUD;
-16
View File
@@ -1,16 +0,0 @@
type CreateUserQuery = {
email: string
password: string
firstName: string
lastName: string
}
type ReadUserQuery = {
id?: string
}
type DeleteUserQuery = {
id: string
}
export type {CreateUserQuery, ReadUserQuery, DeleteUserQuery};
@@ -1,4 +1,4 @@
import {User} from '@/models/data_models/User';
import type {User} from "@prisma/client";
export type Session = {
user: User
-8
View File
@@ -1,8 +0,0 @@
export type User = {
id: string
email: string
password: string
firstName: string
lastName: string
role: "USER" | "ADMIN"
}