user dtos as strict object templates
Some checks failed
Build and Deploy API / build-and-deploy (push) Failing after 6s
Build and Deploy Frontend / build-and-deploy (push) Successful in 7s

This commit is contained in:
2026-03-20 21:08:32 -05:00
parent 7229e369ae
commit 109d5f88ea
7 changed files with 28 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
// models are the data objects stored in the database. models defined here must match models defined in api/models
// dtos here must match the the dtos in api/src/Modelts/Dto.cs in name (case insensitive) (types are intermediately serialized to strings)
export interface User {
id: number;
@@ -7,3 +8,14 @@ export interface User {
email: string;
password: string;
}
export interface RegisterDto {
name: string;
email: string;
password: string;
}
export interface LoginDto {
name: string;
password: string;
}