summaryrefslogtreecommitdiff
path: root/backend/src/types/user.ts
blob: 15b24c37e820b953714395fe6c052099f9023fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export type AdminCreationResult = {
    id: string;
    email: string;
    created_at: string;
};

export type AuthorizedUser = {
    id: string;
    email: string;
    createdAt: string;
};

export type DatabaseUser = {
    id: string;
    email: string;
    password_hash: string;
    created_at: string;
};

export type LoginResponse = {
    message: string;
    user: AuthorizedUser;
    token: string;
};