-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.d.ts
169 lines (149 loc) · 3.95 KB
/
db.d.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/**
* This file was generated by kysely-codegen.
* Please do not edit it manually.
*/
import type { ColumnType, Genearated } from "kysely";
export type Json = JsonValue;
export type JsonArray = JsonValue[];
export type JsonObject = {
[x: string]: JsonValue | undefined;
};
export type JsonPrimitive = boolean | number | string | null;
export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
export type Numeric = ColumnType<string, number | string, number | string>;
export type Timestamp = ColumnType<Date, Date | string, Date | string>;
export interface AccountPlans {
created_at: Generated<Timestamp>;
description: string | null;
id: Generated<number>;
is_active: Generated<boolean>;
is_default: Generated<boolean>;
is_deleted: Generated<boolean>;
label: string;
plan: Generated<Json>;
price_monthly: Numeric | null;
price_yearly: Numeric | null;
updated_at: Generated<Timestamp>;
}
export interface AccountProviders {
access_token: string | null;
account_id: number;
expires_at: Timestamp | null;
id: Generated<number>;
id_token: string | null;
provider_account_id: string;
refresh_token: string | null;
scope: string | null;
session_state: string | null;
token_type: string | null;
type: string;
}
export interface AccountRoles {
created_at: Generated<Timestamp>;
description: string | null;
id: Generated<number>;
is_active: Generated<boolean>;
is_default: Generated<boolean>;
is_deleted: Generated<boolean>;
label: string;
updated_at: Generated<Timestamp>;
}
export interface Accounts {
account_plan_id: number;
created_at: Generated<Timestamp>;
email: string;
email_verified: Generated<boolean>;
first_name: string | null;
id: Generated<number>;
is_deleted: Generated<boolean>;
last_name: string | null;
login_attempts: Generated<number>;
login_last: Timestamp | null;
login_locked_until: Timestamp | null;
middle_name: string | null;
password: Buffer | null;
salt: Buffer | null;
updated_at: Generated<Timestamp>;
username: string | null;
}
export interface AccountsRoles {
account_id: number;
account_role_id: number;
created_at: Generated<Timestamp>;
id: Generated<number>;
updated_at: Generated<Timestamp>;
}
export interface AssetClasses {
active: Generated<boolean>;
code: string;
created_at: Generated<Timestamp>;
deleted: Generated<boolean>;
id: Generated<number>;
name: string;
updated_at: Generated<Timestamp>;
}
export interface Locales {
active: Generated<boolean>;
code: string;
created_at: Generated<Timestamp>;
deleted: Generated<boolean>;
id: Generated<number>;
name: string;
updated_at: Generated<Timestamp>;
}
export interface Markets {
active: Generated<boolean>;
code: string;
created_at: Generated<Timestamp>;
deleted: Generated<boolean>;
id: Generated<number>;
name: string;
updated_at: Generated<Timestamp>;
}
export interface Sessions {
expire: Timestamp;
sess: Generated<Json>;
sid: string;
}
export interface Tickers {
active: Generated<boolean>;
cik: number;
composite_figi: string;
created_at: Generated<Timestamp>;
currency_name: string;
deleted: Generated<boolean>;
delisted: Timestamp | null;
id: Generated<number>;
last_updated: Timestamp;
locale_id: number;
market_id: number;
name: string;
primary_exchange: string;
ticker: string;
ticker_type_id: number;
updated_at: Generated<Timestamp>;
}
export interface TickerTypes {
active: Generated<boolean>;
asset_class_id: number;
code: string;
created_at: Generated<Timestamp>;
deleted: Generated<boolean>;
description: string;
id: Generated<number>;
locale_id: number;
updated_at: Generated<Timestamp>;
}
export interface DB {
account_plans: AccountPlans;
account_providers: AccountProviders;
account_roles: AccountRoles;
accounts: Accounts;
accounts_roles: AccountsRoles;
asset_classes: AssetClasses;
locales: Locales;
markets: Markets;
sessions: Sessions;
ticker_types: TickerTypes;
tickers: Tickers;
}