export common interface

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-03-17 11:09:23 +01:00
parent d489243787
commit e35685db05
2 changed files with 30 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
export default interface TaskType {
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;
};
}
+14
View File
@@ -0,0 +1,14 @@
import TaskType from "./taskType.interface";
export default interface User {
id: number;
name: string;
lastname: string;
role: string;
email: string;
phone: string | null;
created_at: string;
isAdmin: boolean;
tasks: TaskType[];
profile_photo_path?: string | null;
}