feat: add user management

This commit is contained in:
Elias Schneider
2022-12-05 15:53:24 +01:00
parent 31b3f6cb2f
commit 7a3967fd6f
25 changed files with 751 additions and 47 deletions

View File

@@ -1,9 +1,29 @@
export default interface User {
type User = {
id: string;
firstName?: string;
lastName?: string;
username: string;
email: string;
isAdmin: boolean;
}
};
export interface CurrentUser extends User {}
export type CreateUser = {
username: string;
email: string;
password: string,
isAdmin?: boolean;
};
export type UpdateUser = {
username?: string;
email?: string;
password?: string,
isAdmin?: boolean;
};
export type UpdateCurrentUser = {
username?: string;
email?: string;
};
export type CurrentUser = User & {};
export default User;