mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-07-09 15:08:06 +00:00
Edit Crud, add loaders during authentication
Took 2 hours 49 minutes
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
const CRUD = {
|
||||
CREATE: "PUT",
|
||||
READ: "GET",
|
||||
UPDATE: "POST",
|
||||
DELETE: "DELETE",
|
||||
};
|
||||
|
||||
export default CRUD;
|
||||
@@ -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
|
||||
@@ -1,8 +0,0 @@
|
||||
export type User = {
|
||||
id: string
|
||||
email: string
|
||||
password: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
role: "USER" | "ADMIN"
|
||||
}
|
||||
Reference in New Issue
Block a user