Create interfaces

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-02-10 14:54:30 +01:00
parent d57b8195ee
commit 47b1074f92
2 changed files with 32 additions and 0 deletions
@@ -0,0 +1,16 @@
export default interface Task {
id: number;
name: string;
description: string;
location: string;
start: string;
end: string;
max_participants: number;
events_id: number;
created_at: string;
updated_at: string;
pivot: {
user_id: number;
task_id: number;
}
}
@@ -0,0 +1,16 @@
import Task from "./task.interface";
export default interface User {
id: number;
name: string;
lastname: string;
email: string;
role: string;
isAdmin: boolean;
phone: string | null;
created_at: string;
updated_at: string;
verified_at: string | null;
validate: number;
tasks: Task[];
}