-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathtypes.ts
62 lines (56 loc) · 1.29 KB
/
types.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// The TypeScript definitions below are automatically generated.
// Do not touch them, or risk, your modifications being lost.
export enum IdentityProvider {
Google = "google",
Apple = "apple",
Facebook = "facebook",
GitHub = "github",
LinkedIn = "linkedin",
Microsoft = "microsoft",
Twitter = "twitter",
Yahoo = "yahoo",
GameCenter = "gamecenter",
PlayGames = "playgames",
}
export enum Table {
Identity = "identity",
Migration = "migration",
MigrationLock = "migration_lock",
User = "user",
}
export type Identity = {
id: string;
provider: IdentityProvider;
user_id: string;
username: string | null;
email: string | null;
credentials: Record<string, unknown>;
created_at: Date;
updated_at: Date;
};
export type Migration = {
id: number;
name: string | null;
batch: number | null;
migration_time: Date | null;
};
export type MigrationLock = {
index: number;
is_locked: number | null;
};
export type User = {
id: string;
username: string | null;
email: string | null;
email_verified: boolean;
password: string | null;
name: string | null;
picture: Record<string, unknown>;
time_zone: string | null;
locale: string | null;
admin: boolean;
last_login: Date | null;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
};