-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb.ts
39 lines (35 loc) · 754 Bytes
/
db.ts
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export interface ListResponse<T> {
data: T;
before?: string;
after?: string;
}
export interface ListRequestParams {
_size?: number;
_cursor?: string;
}
export type RawCreateInput<T> = Omit<
T,
"_id" | "isActive" | "createdAt" | "updatedAt"
>;
export interface Entity {
_id: string;
_ts: string;
}
export interface User extends Entity {
redditId?: string;
redditName?: string;
redditIcon?: string;
redditDarkmode?: boolean;
discordId?: string;
discordName?: string;
discordDiscriminator?: string;
discordFullName?: string;
discordIcon?: string;
nintendoName?: string;
animalCrossingTag?: string;
hasHadFirstSync: boolean;
isActive: boolean;
createdAt: string;
updatedAt: string;
deletedAt?: string;
}