export common interface
This commit is contained in:
@@ -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;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user