23 lines
563 B
TypeScript
23 lines
563 B
TypeScript
|
|
// 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 UserDto {
|
|
createdAt: string;
|
|
email: string;
|
|
id: string;
|
|
userName: string;
|
|
permissions: string;
|
|
}
|
|
|
|
export interface RegisterDto {
|
|
userName: string;
|
|
email: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface LoginDto {
|
|
userName: string;
|
|
password: string;
|
|
}
|