Base api connection requirements and models

This commit is contained in:
Marta Borgia Leiva 2026-02-09 20:13:12 +01:00
parent 9ab0505ed4
commit 2cf0856db5
Signed by: a-mayb3
GPG key ID: 293AAC4FED165CE3
7 changed files with 226 additions and 0 deletions

View file

@ -0,0 +1,26 @@
import { User } from "./auth.models";
import { Task } from "./tasks.models";
export interface Project {
id: number;
name: string;
description?: string;
}
export interface ProjectFull {
id: number;
name: string;
description?: string;
tasks: Task[];
users: User[];
}
export interface CreateProjectRequest {
name: string;
description?: string;
}
export interface UpdateProjectRequest {
name?: string;
description?: string;
}