forked from atums.world/backend
start of the 50th remake of a file host doomed to never be finished
This commit is contained in:
commit
46c05ca3a9
33 changed files with 2155 additions and 0 deletions
29
types/session.d.ts
vendored
Normal file
29
types/session.d.ts
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
type UserSession = {
|
||||
id: string;
|
||||
username: string;
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
roles: string[];
|
||||
avatar: boolean;
|
||||
timezone: string;
|
||||
authorization_token: string;
|
||||
};
|
||||
|
||||
type ApiUserSession = UserSession & {
|
||||
is_api: boolean;
|
||||
};
|
||||
|
||||
type User = {
|
||||
id: UUID;
|
||||
authorization_token: UUID;
|
||||
username: string;
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
password: string;
|
||||
avatar: boolean;
|
||||
roles: string[];
|
||||
timezone: string;
|
||||
invited_by: UUID;
|
||||
created_at: Date;
|
||||
last_seen: Date;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue