@ravxd/velocitydb 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +50 -0
- package/dist/index.d.cts +410 -2
- package/dist/index.d.ts +410 -2
- package/dist/index.js +49 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -31,6 +31,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
afkEntries: () => afkEntries,
|
|
34
|
+
authAccounts: () => authAccounts,
|
|
35
|
+
authSessions: () => authSessions,
|
|
36
|
+
authUsers: () => authUsers,
|
|
37
|
+
authVerificationTokens: () => authVerificationTokens,
|
|
34
38
|
characters: () => characters,
|
|
35
39
|
formatWeekRange: () => formatWeekRange,
|
|
36
40
|
getCurrentWeekStart: () => getCurrentWeekStart,
|
|
@@ -50,6 +54,10 @@ module.exports = __toCommonJS(index_exports);
|
|
|
50
54
|
var schema_exports = {};
|
|
51
55
|
__export(schema_exports, {
|
|
52
56
|
afkEntries: () => afkEntries,
|
|
57
|
+
authAccounts: () => authAccounts,
|
|
58
|
+
authSessions: () => authSessions,
|
|
59
|
+
authUsers: () => authUsers,
|
|
60
|
+
authVerificationTokens: () => authVerificationTokens,
|
|
53
61
|
characters: () => characters,
|
|
54
62
|
linkStatusEnum: () => linkStatusEnum,
|
|
55
63
|
memberRoleEnum: () => memberRoleEnum,
|
|
@@ -59,6 +67,44 @@ __export(schema_exports, {
|
|
|
59
67
|
syncState: () => syncState
|
|
60
68
|
});
|
|
61
69
|
var import_pg_core = require("drizzle-orm/pg-core");
|
|
70
|
+
var authUsers = (0, import_pg_core.pgTable)("user", {
|
|
71
|
+
id: (0, import_pg_core.text)("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
|
|
72
|
+
name: (0, import_pg_core.text)("name"),
|
|
73
|
+
email: (0, import_pg_core.text)("email").unique(),
|
|
74
|
+
emailVerified: (0, import_pg_core.timestamp)("emailVerified", { mode: "date" }),
|
|
75
|
+
image: (0, import_pg_core.text)("image")
|
|
76
|
+
});
|
|
77
|
+
var authAccounts = (0, import_pg_core.pgTable)(
|
|
78
|
+
"account",
|
|
79
|
+
{
|
|
80
|
+
userId: (0, import_pg_core.text)("userId").notNull().references(() => authUsers.id, { onDelete: "cascade" }),
|
|
81
|
+
type: (0, import_pg_core.text)("type").$type().notNull(),
|
|
82
|
+
provider: (0, import_pg_core.text)("provider").notNull(),
|
|
83
|
+
providerAccountId: (0, import_pg_core.text)("providerAccountId").notNull(),
|
|
84
|
+
refresh_token: (0, import_pg_core.text)("refresh_token"),
|
|
85
|
+
access_token: (0, import_pg_core.text)("access_token"),
|
|
86
|
+
expires_at: (0, import_pg_core.integer)("expires_at"),
|
|
87
|
+
token_type: (0, import_pg_core.text)("token_type"),
|
|
88
|
+
scope: (0, import_pg_core.text)("scope"),
|
|
89
|
+
id_token: (0, import_pg_core.text)("id_token"),
|
|
90
|
+
session_state: (0, import_pg_core.text)("session_state")
|
|
91
|
+
},
|
|
92
|
+
(t) => [(0, import_pg_core.primaryKey)({ columns: [t.provider, t.providerAccountId] })]
|
|
93
|
+
);
|
|
94
|
+
var authSessions = (0, import_pg_core.pgTable)("session", {
|
|
95
|
+
sessionToken: (0, import_pg_core.text)("sessionToken").primaryKey(),
|
|
96
|
+
userId: (0, import_pg_core.text)("userId").notNull().references(() => authUsers.id, { onDelete: "cascade" }),
|
|
97
|
+
expires: (0, import_pg_core.timestamp)("expires", { mode: "date" }).notNull()
|
|
98
|
+
});
|
|
99
|
+
var authVerificationTokens = (0, import_pg_core.pgTable)(
|
|
100
|
+
"verificationToken",
|
|
101
|
+
{
|
|
102
|
+
identifier: (0, import_pg_core.text)("identifier").notNull(),
|
|
103
|
+
token: (0, import_pg_core.text)("token").notNull(),
|
|
104
|
+
expires: (0, import_pg_core.timestamp)("expires", { mode: "date" }).notNull()
|
|
105
|
+
},
|
|
106
|
+
(t) => [(0, import_pg_core.primaryKey)({ columns: [t.identifier, t.token] })]
|
|
107
|
+
);
|
|
62
108
|
var memberRoleEnum = (0, import_pg_core.pgEnum)("member_role", [
|
|
63
109
|
"member",
|
|
64
110
|
"officer",
|
|
@@ -206,6 +252,10 @@ function formatWeekRange(weekStart) {
|
|
|
206
252
|
// Annotate the CommonJS export names for ESM import in node:
|
|
207
253
|
0 && (module.exports = {
|
|
208
254
|
afkEntries,
|
|
255
|
+
authAccounts,
|
|
256
|
+
authSessions,
|
|
257
|
+
authUsers,
|
|
258
|
+
authVerificationTokens,
|
|
209
259
|
characters,
|
|
210
260
|
formatWeekRange,
|
|
211
261
|
getCurrentWeekStart,
|
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,410 @@ import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
|
2
2
|
import * as drizzle_orm_postgres_js from 'drizzle-orm/postgres-js';
|
|
3
3
|
import postgres from 'postgres';
|
|
4
4
|
|
|
5
|
+
declare const authUsers: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
6
|
+
name: "user";
|
|
7
|
+
schema: undefined;
|
|
8
|
+
columns: {
|
|
9
|
+
id: drizzle_orm_pg_core.PgColumn<{
|
|
10
|
+
name: "id";
|
|
11
|
+
tableName: "user";
|
|
12
|
+
dataType: "string";
|
|
13
|
+
columnType: "PgText";
|
|
14
|
+
data: string;
|
|
15
|
+
driverParam: string;
|
|
16
|
+
notNull: true;
|
|
17
|
+
hasDefault: true;
|
|
18
|
+
isPrimaryKey: true;
|
|
19
|
+
isAutoincrement: false;
|
|
20
|
+
hasRuntimeDefault: true;
|
|
21
|
+
enumValues: [string, ...string[]];
|
|
22
|
+
baseColumn: never;
|
|
23
|
+
identity: undefined;
|
|
24
|
+
generated: undefined;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
name: drizzle_orm_pg_core.PgColumn<{
|
|
27
|
+
name: "name";
|
|
28
|
+
tableName: "user";
|
|
29
|
+
dataType: "string";
|
|
30
|
+
columnType: "PgText";
|
|
31
|
+
data: string;
|
|
32
|
+
driverParam: string;
|
|
33
|
+
notNull: false;
|
|
34
|
+
hasDefault: false;
|
|
35
|
+
isPrimaryKey: false;
|
|
36
|
+
isAutoincrement: false;
|
|
37
|
+
hasRuntimeDefault: false;
|
|
38
|
+
enumValues: [string, ...string[]];
|
|
39
|
+
baseColumn: never;
|
|
40
|
+
identity: undefined;
|
|
41
|
+
generated: undefined;
|
|
42
|
+
}, {}, {}>;
|
|
43
|
+
email: drizzle_orm_pg_core.PgColumn<{
|
|
44
|
+
name: "email";
|
|
45
|
+
tableName: "user";
|
|
46
|
+
dataType: "string";
|
|
47
|
+
columnType: "PgText";
|
|
48
|
+
data: string;
|
|
49
|
+
driverParam: string;
|
|
50
|
+
notNull: false;
|
|
51
|
+
hasDefault: false;
|
|
52
|
+
isPrimaryKey: false;
|
|
53
|
+
isAutoincrement: false;
|
|
54
|
+
hasRuntimeDefault: false;
|
|
55
|
+
enumValues: [string, ...string[]];
|
|
56
|
+
baseColumn: never;
|
|
57
|
+
identity: undefined;
|
|
58
|
+
generated: undefined;
|
|
59
|
+
}, {}, {}>;
|
|
60
|
+
emailVerified: drizzle_orm_pg_core.PgColumn<{
|
|
61
|
+
name: "emailVerified";
|
|
62
|
+
tableName: "user";
|
|
63
|
+
dataType: "date";
|
|
64
|
+
columnType: "PgTimestamp";
|
|
65
|
+
data: Date;
|
|
66
|
+
driverParam: string;
|
|
67
|
+
notNull: false;
|
|
68
|
+
hasDefault: false;
|
|
69
|
+
isPrimaryKey: false;
|
|
70
|
+
isAutoincrement: false;
|
|
71
|
+
hasRuntimeDefault: false;
|
|
72
|
+
enumValues: undefined;
|
|
73
|
+
baseColumn: never;
|
|
74
|
+
identity: undefined;
|
|
75
|
+
generated: undefined;
|
|
76
|
+
}, {}, {}>;
|
|
77
|
+
image: drizzle_orm_pg_core.PgColumn<{
|
|
78
|
+
name: "image";
|
|
79
|
+
tableName: "user";
|
|
80
|
+
dataType: "string";
|
|
81
|
+
columnType: "PgText";
|
|
82
|
+
data: string;
|
|
83
|
+
driverParam: string;
|
|
84
|
+
notNull: false;
|
|
85
|
+
hasDefault: false;
|
|
86
|
+
isPrimaryKey: false;
|
|
87
|
+
isAutoincrement: false;
|
|
88
|
+
hasRuntimeDefault: false;
|
|
89
|
+
enumValues: [string, ...string[]];
|
|
90
|
+
baseColumn: never;
|
|
91
|
+
identity: undefined;
|
|
92
|
+
generated: undefined;
|
|
93
|
+
}, {}, {}>;
|
|
94
|
+
};
|
|
95
|
+
dialect: "pg";
|
|
96
|
+
}>;
|
|
97
|
+
declare const authAccounts: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
98
|
+
name: "account";
|
|
99
|
+
schema: undefined;
|
|
100
|
+
columns: {
|
|
101
|
+
userId: drizzle_orm_pg_core.PgColumn<{
|
|
102
|
+
name: "userId";
|
|
103
|
+
tableName: "account";
|
|
104
|
+
dataType: "string";
|
|
105
|
+
columnType: "PgText";
|
|
106
|
+
data: string;
|
|
107
|
+
driverParam: string;
|
|
108
|
+
notNull: true;
|
|
109
|
+
hasDefault: false;
|
|
110
|
+
isPrimaryKey: false;
|
|
111
|
+
isAutoincrement: false;
|
|
112
|
+
hasRuntimeDefault: false;
|
|
113
|
+
enumValues: [string, ...string[]];
|
|
114
|
+
baseColumn: never;
|
|
115
|
+
identity: undefined;
|
|
116
|
+
generated: undefined;
|
|
117
|
+
}, {}, {}>;
|
|
118
|
+
type: drizzle_orm_pg_core.PgColumn<{
|
|
119
|
+
name: "type";
|
|
120
|
+
tableName: "account";
|
|
121
|
+
dataType: "string";
|
|
122
|
+
columnType: "PgText";
|
|
123
|
+
data: "email" | "oauth" | "oidc" | "webauthn";
|
|
124
|
+
driverParam: string;
|
|
125
|
+
notNull: true;
|
|
126
|
+
hasDefault: false;
|
|
127
|
+
isPrimaryKey: false;
|
|
128
|
+
isAutoincrement: false;
|
|
129
|
+
hasRuntimeDefault: false;
|
|
130
|
+
enumValues: [string, ...string[]];
|
|
131
|
+
baseColumn: never;
|
|
132
|
+
identity: undefined;
|
|
133
|
+
generated: undefined;
|
|
134
|
+
}, {}, {
|
|
135
|
+
$type: "email" | "oauth" | "oidc" | "webauthn";
|
|
136
|
+
}>;
|
|
137
|
+
provider: drizzle_orm_pg_core.PgColumn<{
|
|
138
|
+
name: "provider";
|
|
139
|
+
tableName: "account";
|
|
140
|
+
dataType: "string";
|
|
141
|
+
columnType: "PgText";
|
|
142
|
+
data: string;
|
|
143
|
+
driverParam: string;
|
|
144
|
+
notNull: true;
|
|
145
|
+
hasDefault: false;
|
|
146
|
+
isPrimaryKey: false;
|
|
147
|
+
isAutoincrement: false;
|
|
148
|
+
hasRuntimeDefault: false;
|
|
149
|
+
enumValues: [string, ...string[]];
|
|
150
|
+
baseColumn: never;
|
|
151
|
+
identity: undefined;
|
|
152
|
+
generated: undefined;
|
|
153
|
+
}, {}, {}>;
|
|
154
|
+
providerAccountId: drizzle_orm_pg_core.PgColumn<{
|
|
155
|
+
name: "providerAccountId";
|
|
156
|
+
tableName: "account";
|
|
157
|
+
dataType: "string";
|
|
158
|
+
columnType: "PgText";
|
|
159
|
+
data: string;
|
|
160
|
+
driverParam: string;
|
|
161
|
+
notNull: true;
|
|
162
|
+
hasDefault: false;
|
|
163
|
+
isPrimaryKey: false;
|
|
164
|
+
isAutoincrement: false;
|
|
165
|
+
hasRuntimeDefault: false;
|
|
166
|
+
enumValues: [string, ...string[]];
|
|
167
|
+
baseColumn: never;
|
|
168
|
+
identity: undefined;
|
|
169
|
+
generated: undefined;
|
|
170
|
+
}, {}, {}>;
|
|
171
|
+
refresh_token: drizzle_orm_pg_core.PgColumn<{
|
|
172
|
+
name: "refresh_token";
|
|
173
|
+
tableName: "account";
|
|
174
|
+
dataType: "string";
|
|
175
|
+
columnType: "PgText";
|
|
176
|
+
data: string;
|
|
177
|
+
driverParam: string;
|
|
178
|
+
notNull: false;
|
|
179
|
+
hasDefault: false;
|
|
180
|
+
isPrimaryKey: false;
|
|
181
|
+
isAutoincrement: false;
|
|
182
|
+
hasRuntimeDefault: false;
|
|
183
|
+
enumValues: [string, ...string[]];
|
|
184
|
+
baseColumn: never;
|
|
185
|
+
identity: undefined;
|
|
186
|
+
generated: undefined;
|
|
187
|
+
}, {}, {}>;
|
|
188
|
+
access_token: drizzle_orm_pg_core.PgColumn<{
|
|
189
|
+
name: "access_token";
|
|
190
|
+
tableName: "account";
|
|
191
|
+
dataType: "string";
|
|
192
|
+
columnType: "PgText";
|
|
193
|
+
data: string;
|
|
194
|
+
driverParam: string;
|
|
195
|
+
notNull: false;
|
|
196
|
+
hasDefault: false;
|
|
197
|
+
isPrimaryKey: false;
|
|
198
|
+
isAutoincrement: false;
|
|
199
|
+
hasRuntimeDefault: false;
|
|
200
|
+
enumValues: [string, ...string[]];
|
|
201
|
+
baseColumn: never;
|
|
202
|
+
identity: undefined;
|
|
203
|
+
generated: undefined;
|
|
204
|
+
}, {}, {}>;
|
|
205
|
+
expires_at: drizzle_orm_pg_core.PgColumn<{
|
|
206
|
+
name: "expires_at";
|
|
207
|
+
tableName: "account";
|
|
208
|
+
dataType: "number";
|
|
209
|
+
columnType: "PgInteger";
|
|
210
|
+
data: number;
|
|
211
|
+
driverParam: string | number;
|
|
212
|
+
notNull: false;
|
|
213
|
+
hasDefault: false;
|
|
214
|
+
isPrimaryKey: false;
|
|
215
|
+
isAutoincrement: false;
|
|
216
|
+
hasRuntimeDefault: false;
|
|
217
|
+
enumValues: undefined;
|
|
218
|
+
baseColumn: never;
|
|
219
|
+
identity: undefined;
|
|
220
|
+
generated: undefined;
|
|
221
|
+
}, {}, {}>;
|
|
222
|
+
token_type: drizzle_orm_pg_core.PgColumn<{
|
|
223
|
+
name: "token_type";
|
|
224
|
+
tableName: "account";
|
|
225
|
+
dataType: "string";
|
|
226
|
+
columnType: "PgText";
|
|
227
|
+
data: string;
|
|
228
|
+
driverParam: string;
|
|
229
|
+
notNull: false;
|
|
230
|
+
hasDefault: false;
|
|
231
|
+
isPrimaryKey: false;
|
|
232
|
+
isAutoincrement: false;
|
|
233
|
+
hasRuntimeDefault: false;
|
|
234
|
+
enumValues: [string, ...string[]];
|
|
235
|
+
baseColumn: never;
|
|
236
|
+
identity: undefined;
|
|
237
|
+
generated: undefined;
|
|
238
|
+
}, {}, {}>;
|
|
239
|
+
scope: drizzle_orm_pg_core.PgColumn<{
|
|
240
|
+
name: "scope";
|
|
241
|
+
tableName: "account";
|
|
242
|
+
dataType: "string";
|
|
243
|
+
columnType: "PgText";
|
|
244
|
+
data: string;
|
|
245
|
+
driverParam: string;
|
|
246
|
+
notNull: false;
|
|
247
|
+
hasDefault: false;
|
|
248
|
+
isPrimaryKey: false;
|
|
249
|
+
isAutoincrement: false;
|
|
250
|
+
hasRuntimeDefault: false;
|
|
251
|
+
enumValues: [string, ...string[]];
|
|
252
|
+
baseColumn: never;
|
|
253
|
+
identity: undefined;
|
|
254
|
+
generated: undefined;
|
|
255
|
+
}, {}, {}>;
|
|
256
|
+
id_token: drizzle_orm_pg_core.PgColumn<{
|
|
257
|
+
name: "id_token";
|
|
258
|
+
tableName: "account";
|
|
259
|
+
dataType: "string";
|
|
260
|
+
columnType: "PgText";
|
|
261
|
+
data: string;
|
|
262
|
+
driverParam: string;
|
|
263
|
+
notNull: false;
|
|
264
|
+
hasDefault: false;
|
|
265
|
+
isPrimaryKey: false;
|
|
266
|
+
isAutoincrement: false;
|
|
267
|
+
hasRuntimeDefault: false;
|
|
268
|
+
enumValues: [string, ...string[]];
|
|
269
|
+
baseColumn: never;
|
|
270
|
+
identity: undefined;
|
|
271
|
+
generated: undefined;
|
|
272
|
+
}, {}, {}>;
|
|
273
|
+
session_state: drizzle_orm_pg_core.PgColumn<{
|
|
274
|
+
name: "session_state";
|
|
275
|
+
tableName: "account";
|
|
276
|
+
dataType: "string";
|
|
277
|
+
columnType: "PgText";
|
|
278
|
+
data: string;
|
|
279
|
+
driverParam: string;
|
|
280
|
+
notNull: false;
|
|
281
|
+
hasDefault: false;
|
|
282
|
+
isPrimaryKey: false;
|
|
283
|
+
isAutoincrement: false;
|
|
284
|
+
hasRuntimeDefault: false;
|
|
285
|
+
enumValues: [string, ...string[]];
|
|
286
|
+
baseColumn: never;
|
|
287
|
+
identity: undefined;
|
|
288
|
+
generated: undefined;
|
|
289
|
+
}, {}, {}>;
|
|
290
|
+
};
|
|
291
|
+
dialect: "pg";
|
|
292
|
+
}>;
|
|
293
|
+
declare const authSessions: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
294
|
+
name: "session";
|
|
295
|
+
schema: undefined;
|
|
296
|
+
columns: {
|
|
297
|
+
sessionToken: drizzle_orm_pg_core.PgColumn<{
|
|
298
|
+
name: "sessionToken";
|
|
299
|
+
tableName: "session";
|
|
300
|
+
dataType: "string";
|
|
301
|
+
columnType: "PgText";
|
|
302
|
+
data: string;
|
|
303
|
+
driverParam: string;
|
|
304
|
+
notNull: true;
|
|
305
|
+
hasDefault: false;
|
|
306
|
+
isPrimaryKey: true;
|
|
307
|
+
isAutoincrement: false;
|
|
308
|
+
hasRuntimeDefault: false;
|
|
309
|
+
enumValues: [string, ...string[]];
|
|
310
|
+
baseColumn: never;
|
|
311
|
+
identity: undefined;
|
|
312
|
+
generated: undefined;
|
|
313
|
+
}, {}, {}>;
|
|
314
|
+
userId: drizzle_orm_pg_core.PgColumn<{
|
|
315
|
+
name: "userId";
|
|
316
|
+
tableName: "session";
|
|
317
|
+
dataType: "string";
|
|
318
|
+
columnType: "PgText";
|
|
319
|
+
data: string;
|
|
320
|
+
driverParam: string;
|
|
321
|
+
notNull: true;
|
|
322
|
+
hasDefault: false;
|
|
323
|
+
isPrimaryKey: false;
|
|
324
|
+
isAutoincrement: false;
|
|
325
|
+
hasRuntimeDefault: false;
|
|
326
|
+
enumValues: [string, ...string[]];
|
|
327
|
+
baseColumn: never;
|
|
328
|
+
identity: undefined;
|
|
329
|
+
generated: undefined;
|
|
330
|
+
}, {}, {}>;
|
|
331
|
+
expires: drizzle_orm_pg_core.PgColumn<{
|
|
332
|
+
name: "expires";
|
|
333
|
+
tableName: "session";
|
|
334
|
+
dataType: "date";
|
|
335
|
+
columnType: "PgTimestamp";
|
|
336
|
+
data: Date;
|
|
337
|
+
driverParam: string;
|
|
338
|
+
notNull: true;
|
|
339
|
+
hasDefault: false;
|
|
340
|
+
isPrimaryKey: false;
|
|
341
|
+
isAutoincrement: false;
|
|
342
|
+
hasRuntimeDefault: false;
|
|
343
|
+
enumValues: undefined;
|
|
344
|
+
baseColumn: never;
|
|
345
|
+
identity: undefined;
|
|
346
|
+
generated: undefined;
|
|
347
|
+
}, {}, {}>;
|
|
348
|
+
};
|
|
349
|
+
dialect: "pg";
|
|
350
|
+
}>;
|
|
351
|
+
declare const authVerificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
352
|
+
name: "verificationToken";
|
|
353
|
+
schema: undefined;
|
|
354
|
+
columns: {
|
|
355
|
+
identifier: drizzle_orm_pg_core.PgColumn<{
|
|
356
|
+
name: "identifier";
|
|
357
|
+
tableName: "verificationToken";
|
|
358
|
+
dataType: "string";
|
|
359
|
+
columnType: "PgText";
|
|
360
|
+
data: string;
|
|
361
|
+
driverParam: string;
|
|
362
|
+
notNull: true;
|
|
363
|
+
hasDefault: false;
|
|
364
|
+
isPrimaryKey: false;
|
|
365
|
+
isAutoincrement: false;
|
|
366
|
+
hasRuntimeDefault: false;
|
|
367
|
+
enumValues: [string, ...string[]];
|
|
368
|
+
baseColumn: never;
|
|
369
|
+
identity: undefined;
|
|
370
|
+
generated: undefined;
|
|
371
|
+
}, {}, {}>;
|
|
372
|
+
token: drizzle_orm_pg_core.PgColumn<{
|
|
373
|
+
name: "token";
|
|
374
|
+
tableName: "verificationToken";
|
|
375
|
+
dataType: "string";
|
|
376
|
+
columnType: "PgText";
|
|
377
|
+
data: string;
|
|
378
|
+
driverParam: string;
|
|
379
|
+
notNull: true;
|
|
380
|
+
hasDefault: false;
|
|
381
|
+
isPrimaryKey: false;
|
|
382
|
+
isAutoincrement: false;
|
|
383
|
+
hasRuntimeDefault: false;
|
|
384
|
+
enumValues: [string, ...string[]];
|
|
385
|
+
baseColumn: never;
|
|
386
|
+
identity: undefined;
|
|
387
|
+
generated: undefined;
|
|
388
|
+
}, {}, {}>;
|
|
389
|
+
expires: drizzle_orm_pg_core.PgColumn<{
|
|
390
|
+
name: "expires";
|
|
391
|
+
tableName: "verificationToken";
|
|
392
|
+
dataType: "date";
|
|
393
|
+
columnType: "PgTimestamp";
|
|
394
|
+
data: Date;
|
|
395
|
+
driverParam: string;
|
|
396
|
+
notNull: true;
|
|
397
|
+
hasDefault: false;
|
|
398
|
+
isPrimaryKey: false;
|
|
399
|
+
isAutoincrement: false;
|
|
400
|
+
hasRuntimeDefault: false;
|
|
401
|
+
enumValues: undefined;
|
|
402
|
+
baseColumn: never;
|
|
403
|
+
identity: undefined;
|
|
404
|
+
generated: undefined;
|
|
405
|
+
}, {}, {}>;
|
|
406
|
+
};
|
|
407
|
+
dialect: "pg";
|
|
408
|
+
}>;
|
|
5
409
|
declare const memberRoleEnum: drizzle_orm_pg_core.PgEnum<["member", "officer", "guildmaster"]>;
|
|
6
410
|
declare const linkStatusEnum: drizzle_orm_pg_core.PgEnum<["unlinked", "linked", "pending"]>;
|
|
7
411
|
declare const requestStatusEnum: drizzle_orm_pg_core.PgEnum<["pending", "approved", "rejected"]>;
|
|
@@ -773,6 +1177,10 @@ declare const syncState: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
773
1177
|
}>;
|
|
774
1178
|
|
|
775
1179
|
declare const schema_afkEntries: typeof afkEntries;
|
|
1180
|
+
declare const schema_authAccounts: typeof authAccounts;
|
|
1181
|
+
declare const schema_authSessions: typeof authSessions;
|
|
1182
|
+
declare const schema_authUsers: typeof authUsers;
|
|
1183
|
+
declare const schema_authVerificationTokens: typeof authVerificationTokens;
|
|
776
1184
|
declare const schema_characters: typeof characters;
|
|
777
1185
|
declare const schema_linkStatusEnum: typeof linkStatusEnum;
|
|
778
1186
|
declare const schema_memberRoleEnum: typeof memberRoleEnum;
|
|
@@ -781,7 +1189,7 @@ declare const schema_requestStatusEnum: typeof requestStatusEnum;
|
|
|
781
1189
|
declare const schema_requests: typeof requests;
|
|
782
1190
|
declare const schema_syncState: typeof syncState;
|
|
783
1191
|
declare namespace schema {
|
|
784
|
-
export { schema_afkEntries as afkEntries, schema_characters as characters, schema_linkStatusEnum as linkStatusEnum, schema_memberRoleEnum as memberRoleEnum, schema_members as members, schema_requestStatusEnum as requestStatusEnum, schema_requests as requests, schema_syncState as syncState };
|
|
1192
|
+
export { schema_afkEntries as afkEntries, schema_authAccounts as authAccounts, schema_authSessions as authSessions, schema_authUsers as authUsers, schema_authVerificationTokens as authVerificationTokens, schema_characters as characters, schema_linkStatusEnum as linkStatusEnum, schema_memberRoleEnum as memberRoleEnum, schema_members as members, schema_requestStatusEnum as requestStatusEnum, schema_requests as requests, schema_syncState as syncState };
|
|
785
1193
|
}
|
|
786
1194
|
|
|
787
1195
|
declare function getDb(): drizzle_orm_postgres_js.PostgresJsDatabase<typeof schema> & {
|
|
@@ -807,4 +1215,4 @@ declare function getCurrentWeekStart(date?: Date): string;
|
|
|
807
1215
|
*/
|
|
808
1216
|
declare function formatWeekRange(weekStart: Date | string): string;
|
|
809
1217
|
|
|
810
|
-
export { type Db, afkEntries, characters, formatWeekRange, getCurrentWeekStart, getDb, getWeekStart, linkStatusEnum, memberRoleEnum, members, requestStatusEnum, requests, syncState, weekStartToString };
|
|
1218
|
+
export { type Db, afkEntries, authAccounts, authSessions, authUsers, authVerificationTokens, characters, formatWeekRange, getCurrentWeekStart, getDb, getWeekStart, linkStatusEnum, memberRoleEnum, members, requestStatusEnum, requests, syncState, weekStartToString };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,410 @@ import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
|
2
2
|
import * as drizzle_orm_postgres_js from 'drizzle-orm/postgres-js';
|
|
3
3
|
import postgres from 'postgres';
|
|
4
4
|
|
|
5
|
+
declare const authUsers: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
6
|
+
name: "user";
|
|
7
|
+
schema: undefined;
|
|
8
|
+
columns: {
|
|
9
|
+
id: drizzle_orm_pg_core.PgColumn<{
|
|
10
|
+
name: "id";
|
|
11
|
+
tableName: "user";
|
|
12
|
+
dataType: "string";
|
|
13
|
+
columnType: "PgText";
|
|
14
|
+
data: string;
|
|
15
|
+
driverParam: string;
|
|
16
|
+
notNull: true;
|
|
17
|
+
hasDefault: true;
|
|
18
|
+
isPrimaryKey: true;
|
|
19
|
+
isAutoincrement: false;
|
|
20
|
+
hasRuntimeDefault: true;
|
|
21
|
+
enumValues: [string, ...string[]];
|
|
22
|
+
baseColumn: never;
|
|
23
|
+
identity: undefined;
|
|
24
|
+
generated: undefined;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
name: drizzle_orm_pg_core.PgColumn<{
|
|
27
|
+
name: "name";
|
|
28
|
+
tableName: "user";
|
|
29
|
+
dataType: "string";
|
|
30
|
+
columnType: "PgText";
|
|
31
|
+
data: string;
|
|
32
|
+
driverParam: string;
|
|
33
|
+
notNull: false;
|
|
34
|
+
hasDefault: false;
|
|
35
|
+
isPrimaryKey: false;
|
|
36
|
+
isAutoincrement: false;
|
|
37
|
+
hasRuntimeDefault: false;
|
|
38
|
+
enumValues: [string, ...string[]];
|
|
39
|
+
baseColumn: never;
|
|
40
|
+
identity: undefined;
|
|
41
|
+
generated: undefined;
|
|
42
|
+
}, {}, {}>;
|
|
43
|
+
email: drizzle_orm_pg_core.PgColumn<{
|
|
44
|
+
name: "email";
|
|
45
|
+
tableName: "user";
|
|
46
|
+
dataType: "string";
|
|
47
|
+
columnType: "PgText";
|
|
48
|
+
data: string;
|
|
49
|
+
driverParam: string;
|
|
50
|
+
notNull: false;
|
|
51
|
+
hasDefault: false;
|
|
52
|
+
isPrimaryKey: false;
|
|
53
|
+
isAutoincrement: false;
|
|
54
|
+
hasRuntimeDefault: false;
|
|
55
|
+
enumValues: [string, ...string[]];
|
|
56
|
+
baseColumn: never;
|
|
57
|
+
identity: undefined;
|
|
58
|
+
generated: undefined;
|
|
59
|
+
}, {}, {}>;
|
|
60
|
+
emailVerified: drizzle_orm_pg_core.PgColumn<{
|
|
61
|
+
name: "emailVerified";
|
|
62
|
+
tableName: "user";
|
|
63
|
+
dataType: "date";
|
|
64
|
+
columnType: "PgTimestamp";
|
|
65
|
+
data: Date;
|
|
66
|
+
driverParam: string;
|
|
67
|
+
notNull: false;
|
|
68
|
+
hasDefault: false;
|
|
69
|
+
isPrimaryKey: false;
|
|
70
|
+
isAutoincrement: false;
|
|
71
|
+
hasRuntimeDefault: false;
|
|
72
|
+
enumValues: undefined;
|
|
73
|
+
baseColumn: never;
|
|
74
|
+
identity: undefined;
|
|
75
|
+
generated: undefined;
|
|
76
|
+
}, {}, {}>;
|
|
77
|
+
image: drizzle_orm_pg_core.PgColumn<{
|
|
78
|
+
name: "image";
|
|
79
|
+
tableName: "user";
|
|
80
|
+
dataType: "string";
|
|
81
|
+
columnType: "PgText";
|
|
82
|
+
data: string;
|
|
83
|
+
driverParam: string;
|
|
84
|
+
notNull: false;
|
|
85
|
+
hasDefault: false;
|
|
86
|
+
isPrimaryKey: false;
|
|
87
|
+
isAutoincrement: false;
|
|
88
|
+
hasRuntimeDefault: false;
|
|
89
|
+
enumValues: [string, ...string[]];
|
|
90
|
+
baseColumn: never;
|
|
91
|
+
identity: undefined;
|
|
92
|
+
generated: undefined;
|
|
93
|
+
}, {}, {}>;
|
|
94
|
+
};
|
|
95
|
+
dialect: "pg";
|
|
96
|
+
}>;
|
|
97
|
+
declare const authAccounts: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
98
|
+
name: "account";
|
|
99
|
+
schema: undefined;
|
|
100
|
+
columns: {
|
|
101
|
+
userId: drizzle_orm_pg_core.PgColumn<{
|
|
102
|
+
name: "userId";
|
|
103
|
+
tableName: "account";
|
|
104
|
+
dataType: "string";
|
|
105
|
+
columnType: "PgText";
|
|
106
|
+
data: string;
|
|
107
|
+
driverParam: string;
|
|
108
|
+
notNull: true;
|
|
109
|
+
hasDefault: false;
|
|
110
|
+
isPrimaryKey: false;
|
|
111
|
+
isAutoincrement: false;
|
|
112
|
+
hasRuntimeDefault: false;
|
|
113
|
+
enumValues: [string, ...string[]];
|
|
114
|
+
baseColumn: never;
|
|
115
|
+
identity: undefined;
|
|
116
|
+
generated: undefined;
|
|
117
|
+
}, {}, {}>;
|
|
118
|
+
type: drizzle_orm_pg_core.PgColumn<{
|
|
119
|
+
name: "type";
|
|
120
|
+
tableName: "account";
|
|
121
|
+
dataType: "string";
|
|
122
|
+
columnType: "PgText";
|
|
123
|
+
data: "email" | "oauth" | "oidc" | "webauthn";
|
|
124
|
+
driverParam: string;
|
|
125
|
+
notNull: true;
|
|
126
|
+
hasDefault: false;
|
|
127
|
+
isPrimaryKey: false;
|
|
128
|
+
isAutoincrement: false;
|
|
129
|
+
hasRuntimeDefault: false;
|
|
130
|
+
enumValues: [string, ...string[]];
|
|
131
|
+
baseColumn: never;
|
|
132
|
+
identity: undefined;
|
|
133
|
+
generated: undefined;
|
|
134
|
+
}, {}, {
|
|
135
|
+
$type: "email" | "oauth" | "oidc" | "webauthn";
|
|
136
|
+
}>;
|
|
137
|
+
provider: drizzle_orm_pg_core.PgColumn<{
|
|
138
|
+
name: "provider";
|
|
139
|
+
tableName: "account";
|
|
140
|
+
dataType: "string";
|
|
141
|
+
columnType: "PgText";
|
|
142
|
+
data: string;
|
|
143
|
+
driverParam: string;
|
|
144
|
+
notNull: true;
|
|
145
|
+
hasDefault: false;
|
|
146
|
+
isPrimaryKey: false;
|
|
147
|
+
isAutoincrement: false;
|
|
148
|
+
hasRuntimeDefault: false;
|
|
149
|
+
enumValues: [string, ...string[]];
|
|
150
|
+
baseColumn: never;
|
|
151
|
+
identity: undefined;
|
|
152
|
+
generated: undefined;
|
|
153
|
+
}, {}, {}>;
|
|
154
|
+
providerAccountId: drizzle_orm_pg_core.PgColumn<{
|
|
155
|
+
name: "providerAccountId";
|
|
156
|
+
tableName: "account";
|
|
157
|
+
dataType: "string";
|
|
158
|
+
columnType: "PgText";
|
|
159
|
+
data: string;
|
|
160
|
+
driverParam: string;
|
|
161
|
+
notNull: true;
|
|
162
|
+
hasDefault: false;
|
|
163
|
+
isPrimaryKey: false;
|
|
164
|
+
isAutoincrement: false;
|
|
165
|
+
hasRuntimeDefault: false;
|
|
166
|
+
enumValues: [string, ...string[]];
|
|
167
|
+
baseColumn: never;
|
|
168
|
+
identity: undefined;
|
|
169
|
+
generated: undefined;
|
|
170
|
+
}, {}, {}>;
|
|
171
|
+
refresh_token: drizzle_orm_pg_core.PgColumn<{
|
|
172
|
+
name: "refresh_token";
|
|
173
|
+
tableName: "account";
|
|
174
|
+
dataType: "string";
|
|
175
|
+
columnType: "PgText";
|
|
176
|
+
data: string;
|
|
177
|
+
driverParam: string;
|
|
178
|
+
notNull: false;
|
|
179
|
+
hasDefault: false;
|
|
180
|
+
isPrimaryKey: false;
|
|
181
|
+
isAutoincrement: false;
|
|
182
|
+
hasRuntimeDefault: false;
|
|
183
|
+
enumValues: [string, ...string[]];
|
|
184
|
+
baseColumn: never;
|
|
185
|
+
identity: undefined;
|
|
186
|
+
generated: undefined;
|
|
187
|
+
}, {}, {}>;
|
|
188
|
+
access_token: drizzle_orm_pg_core.PgColumn<{
|
|
189
|
+
name: "access_token";
|
|
190
|
+
tableName: "account";
|
|
191
|
+
dataType: "string";
|
|
192
|
+
columnType: "PgText";
|
|
193
|
+
data: string;
|
|
194
|
+
driverParam: string;
|
|
195
|
+
notNull: false;
|
|
196
|
+
hasDefault: false;
|
|
197
|
+
isPrimaryKey: false;
|
|
198
|
+
isAutoincrement: false;
|
|
199
|
+
hasRuntimeDefault: false;
|
|
200
|
+
enumValues: [string, ...string[]];
|
|
201
|
+
baseColumn: never;
|
|
202
|
+
identity: undefined;
|
|
203
|
+
generated: undefined;
|
|
204
|
+
}, {}, {}>;
|
|
205
|
+
expires_at: drizzle_orm_pg_core.PgColumn<{
|
|
206
|
+
name: "expires_at";
|
|
207
|
+
tableName: "account";
|
|
208
|
+
dataType: "number";
|
|
209
|
+
columnType: "PgInteger";
|
|
210
|
+
data: number;
|
|
211
|
+
driverParam: string | number;
|
|
212
|
+
notNull: false;
|
|
213
|
+
hasDefault: false;
|
|
214
|
+
isPrimaryKey: false;
|
|
215
|
+
isAutoincrement: false;
|
|
216
|
+
hasRuntimeDefault: false;
|
|
217
|
+
enumValues: undefined;
|
|
218
|
+
baseColumn: never;
|
|
219
|
+
identity: undefined;
|
|
220
|
+
generated: undefined;
|
|
221
|
+
}, {}, {}>;
|
|
222
|
+
token_type: drizzle_orm_pg_core.PgColumn<{
|
|
223
|
+
name: "token_type";
|
|
224
|
+
tableName: "account";
|
|
225
|
+
dataType: "string";
|
|
226
|
+
columnType: "PgText";
|
|
227
|
+
data: string;
|
|
228
|
+
driverParam: string;
|
|
229
|
+
notNull: false;
|
|
230
|
+
hasDefault: false;
|
|
231
|
+
isPrimaryKey: false;
|
|
232
|
+
isAutoincrement: false;
|
|
233
|
+
hasRuntimeDefault: false;
|
|
234
|
+
enumValues: [string, ...string[]];
|
|
235
|
+
baseColumn: never;
|
|
236
|
+
identity: undefined;
|
|
237
|
+
generated: undefined;
|
|
238
|
+
}, {}, {}>;
|
|
239
|
+
scope: drizzle_orm_pg_core.PgColumn<{
|
|
240
|
+
name: "scope";
|
|
241
|
+
tableName: "account";
|
|
242
|
+
dataType: "string";
|
|
243
|
+
columnType: "PgText";
|
|
244
|
+
data: string;
|
|
245
|
+
driverParam: string;
|
|
246
|
+
notNull: false;
|
|
247
|
+
hasDefault: false;
|
|
248
|
+
isPrimaryKey: false;
|
|
249
|
+
isAutoincrement: false;
|
|
250
|
+
hasRuntimeDefault: false;
|
|
251
|
+
enumValues: [string, ...string[]];
|
|
252
|
+
baseColumn: never;
|
|
253
|
+
identity: undefined;
|
|
254
|
+
generated: undefined;
|
|
255
|
+
}, {}, {}>;
|
|
256
|
+
id_token: drizzle_orm_pg_core.PgColumn<{
|
|
257
|
+
name: "id_token";
|
|
258
|
+
tableName: "account";
|
|
259
|
+
dataType: "string";
|
|
260
|
+
columnType: "PgText";
|
|
261
|
+
data: string;
|
|
262
|
+
driverParam: string;
|
|
263
|
+
notNull: false;
|
|
264
|
+
hasDefault: false;
|
|
265
|
+
isPrimaryKey: false;
|
|
266
|
+
isAutoincrement: false;
|
|
267
|
+
hasRuntimeDefault: false;
|
|
268
|
+
enumValues: [string, ...string[]];
|
|
269
|
+
baseColumn: never;
|
|
270
|
+
identity: undefined;
|
|
271
|
+
generated: undefined;
|
|
272
|
+
}, {}, {}>;
|
|
273
|
+
session_state: drizzle_orm_pg_core.PgColumn<{
|
|
274
|
+
name: "session_state";
|
|
275
|
+
tableName: "account";
|
|
276
|
+
dataType: "string";
|
|
277
|
+
columnType: "PgText";
|
|
278
|
+
data: string;
|
|
279
|
+
driverParam: string;
|
|
280
|
+
notNull: false;
|
|
281
|
+
hasDefault: false;
|
|
282
|
+
isPrimaryKey: false;
|
|
283
|
+
isAutoincrement: false;
|
|
284
|
+
hasRuntimeDefault: false;
|
|
285
|
+
enumValues: [string, ...string[]];
|
|
286
|
+
baseColumn: never;
|
|
287
|
+
identity: undefined;
|
|
288
|
+
generated: undefined;
|
|
289
|
+
}, {}, {}>;
|
|
290
|
+
};
|
|
291
|
+
dialect: "pg";
|
|
292
|
+
}>;
|
|
293
|
+
declare const authSessions: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
294
|
+
name: "session";
|
|
295
|
+
schema: undefined;
|
|
296
|
+
columns: {
|
|
297
|
+
sessionToken: drizzle_orm_pg_core.PgColumn<{
|
|
298
|
+
name: "sessionToken";
|
|
299
|
+
tableName: "session";
|
|
300
|
+
dataType: "string";
|
|
301
|
+
columnType: "PgText";
|
|
302
|
+
data: string;
|
|
303
|
+
driverParam: string;
|
|
304
|
+
notNull: true;
|
|
305
|
+
hasDefault: false;
|
|
306
|
+
isPrimaryKey: true;
|
|
307
|
+
isAutoincrement: false;
|
|
308
|
+
hasRuntimeDefault: false;
|
|
309
|
+
enumValues: [string, ...string[]];
|
|
310
|
+
baseColumn: never;
|
|
311
|
+
identity: undefined;
|
|
312
|
+
generated: undefined;
|
|
313
|
+
}, {}, {}>;
|
|
314
|
+
userId: drizzle_orm_pg_core.PgColumn<{
|
|
315
|
+
name: "userId";
|
|
316
|
+
tableName: "session";
|
|
317
|
+
dataType: "string";
|
|
318
|
+
columnType: "PgText";
|
|
319
|
+
data: string;
|
|
320
|
+
driverParam: string;
|
|
321
|
+
notNull: true;
|
|
322
|
+
hasDefault: false;
|
|
323
|
+
isPrimaryKey: false;
|
|
324
|
+
isAutoincrement: false;
|
|
325
|
+
hasRuntimeDefault: false;
|
|
326
|
+
enumValues: [string, ...string[]];
|
|
327
|
+
baseColumn: never;
|
|
328
|
+
identity: undefined;
|
|
329
|
+
generated: undefined;
|
|
330
|
+
}, {}, {}>;
|
|
331
|
+
expires: drizzle_orm_pg_core.PgColumn<{
|
|
332
|
+
name: "expires";
|
|
333
|
+
tableName: "session";
|
|
334
|
+
dataType: "date";
|
|
335
|
+
columnType: "PgTimestamp";
|
|
336
|
+
data: Date;
|
|
337
|
+
driverParam: string;
|
|
338
|
+
notNull: true;
|
|
339
|
+
hasDefault: false;
|
|
340
|
+
isPrimaryKey: false;
|
|
341
|
+
isAutoincrement: false;
|
|
342
|
+
hasRuntimeDefault: false;
|
|
343
|
+
enumValues: undefined;
|
|
344
|
+
baseColumn: never;
|
|
345
|
+
identity: undefined;
|
|
346
|
+
generated: undefined;
|
|
347
|
+
}, {}, {}>;
|
|
348
|
+
};
|
|
349
|
+
dialect: "pg";
|
|
350
|
+
}>;
|
|
351
|
+
declare const authVerificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
352
|
+
name: "verificationToken";
|
|
353
|
+
schema: undefined;
|
|
354
|
+
columns: {
|
|
355
|
+
identifier: drizzle_orm_pg_core.PgColumn<{
|
|
356
|
+
name: "identifier";
|
|
357
|
+
tableName: "verificationToken";
|
|
358
|
+
dataType: "string";
|
|
359
|
+
columnType: "PgText";
|
|
360
|
+
data: string;
|
|
361
|
+
driverParam: string;
|
|
362
|
+
notNull: true;
|
|
363
|
+
hasDefault: false;
|
|
364
|
+
isPrimaryKey: false;
|
|
365
|
+
isAutoincrement: false;
|
|
366
|
+
hasRuntimeDefault: false;
|
|
367
|
+
enumValues: [string, ...string[]];
|
|
368
|
+
baseColumn: never;
|
|
369
|
+
identity: undefined;
|
|
370
|
+
generated: undefined;
|
|
371
|
+
}, {}, {}>;
|
|
372
|
+
token: drizzle_orm_pg_core.PgColumn<{
|
|
373
|
+
name: "token";
|
|
374
|
+
tableName: "verificationToken";
|
|
375
|
+
dataType: "string";
|
|
376
|
+
columnType: "PgText";
|
|
377
|
+
data: string;
|
|
378
|
+
driverParam: string;
|
|
379
|
+
notNull: true;
|
|
380
|
+
hasDefault: false;
|
|
381
|
+
isPrimaryKey: false;
|
|
382
|
+
isAutoincrement: false;
|
|
383
|
+
hasRuntimeDefault: false;
|
|
384
|
+
enumValues: [string, ...string[]];
|
|
385
|
+
baseColumn: never;
|
|
386
|
+
identity: undefined;
|
|
387
|
+
generated: undefined;
|
|
388
|
+
}, {}, {}>;
|
|
389
|
+
expires: drizzle_orm_pg_core.PgColumn<{
|
|
390
|
+
name: "expires";
|
|
391
|
+
tableName: "verificationToken";
|
|
392
|
+
dataType: "date";
|
|
393
|
+
columnType: "PgTimestamp";
|
|
394
|
+
data: Date;
|
|
395
|
+
driverParam: string;
|
|
396
|
+
notNull: true;
|
|
397
|
+
hasDefault: false;
|
|
398
|
+
isPrimaryKey: false;
|
|
399
|
+
isAutoincrement: false;
|
|
400
|
+
hasRuntimeDefault: false;
|
|
401
|
+
enumValues: undefined;
|
|
402
|
+
baseColumn: never;
|
|
403
|
+
identity: undefined;
|
|
404
|
+
generated: undefined;
|
|
405
|
+
}, {}, {}>;
|
|
406
|
+
};
|
|
407
|
+
dialect: "pg";
|
|
408
|
+
}>;
|
|
5
409
|
declare const memberRoleEnum: drizzle_orm_pg_core.PgEnum<["member", "officer", "guildmaster"]>;
|
|
6
410
|
declare const linkStatusEnum: drizzle_orm_pg_core.PgEnum<["unlinked", "linked", "pending"]>;
|
|
7
411
|
declare const requestStatusEnum: drizzle_orm_pg_core.PgEnum<["pending", "approved", "rejected"]>;
|
|
@@ -773,6 +1177,10 @@ declare const syncState: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
773
1177
|
}>;
|
|
774
1178
|
|
|
775
1179
|
declare const schema_afkEntries: typeof afkEntries;
|
|
1180
|
+
declare const schema_authAccounts: typeof authAccounts;
|
|
1181
|
+
declare const schema_authSessions: typeof authSessions;
|
|
1182
|
+
declare const schema_authUsers: typeof authUsers;
|
|
1183
|
+
declare const schema_authVerificationTokens: typeof authVerificationTokens;
|
|
776
1184
|
declare const schema_characters: typeof characters;
|
|
777
1185
|
declare const schema_linkStatusEnum: typeof linkStatusEnum;
|
|
778
1186
|
declare const schema_memberRoleEnum: typeof memberRoleEnum;
|
|
@@ -781,7 +1189,7 @@ declare const schema_requestStatusEnum: typeof requestStatusEnum;
|
|
|
781
1189
|
declare const schema_requests: typeof requests;
|
|
782
1190
|
declare const schema_syncState: typeof syncState;
|
|
783
1191
|
declare namespace schema {
|
|
784
|
-
export { schema_afkEntries as afkEntries, schema_characters as characters, schema_linkStatusEnum as linkStatusEnum, schema_memberRoleEnum as memberRoleEnum, schema_members as members, schema_requestStatusEnum as requestStatusEnum, schema_requests as requests, schema_syncState as syncState };
|
|
1192
|
+
export { schema_afkEntries as afkEntries, schema_authAccounts as authAccounts, schema_authSessions as authSessions, schema_authUsers as authUsers, schema_authVerificationTokens as authVerificationTokens, schema_characters as characters, schema_linkStatusEnum as linkStatusEnum, schema_memberRoleEnum as memberRoleEnum, schema_members as members, schema_requestStatusEnum as requestStatusEnum, schema_requests as requests, schema_syncState as syncState };
|
|
785
1193
|
}
|
|
786
1194
|
|
|
787
1195
|
declare function getDb(): drizzle_orm_postgres_js.PostgresJsDatabase<typeof schema> & {
|
|
@@ -807,4 +1215,4 @@ declare function getCurrentWeekStart(date?: Date): string;
|
|
|
807
1215
|
*/
|
|
808
1216
|
declare function formatWeekRange(weekStart: Date | string): string;
|
|
809
1217
|
|
|
810
|
-
export { type Db, afkEntries, characters, formatWeekRange, getCurrentWeekStart, getDb, getWeekStart, linkStatusEnum, memberRoleEnum, members, requestStatusEnum, requests, syncState, weekStartToString };
|
|
1218
|
+
export { type Db, afkEntries, authAccounts, authSessions, authUsers, authVerificationTokens, characters, formatWeekRange, getCurrentWeekStart, getDb, getWeekStart, linkStatusEnum, memberRoleEnum, members, requestStatusEnum, requests, syncState, weekStartToString };
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,10 @@ var __export = (target, all) => {
|
|
|
8
8
|
var schema_exports = {};
|
|
9
9
|
__export(schema_exports, {
|
|
10
10
|
afkEntries: () => afkEntries,
|
|
11
|
+
authAccounts: () => authAccounts,
|
|
12
|
+
authSessions: () => authSessions,
|
|
13
|
+
authUsers: () => authUsers,
|
|
14
|
+
authVerificationTokens: () => authVerificationTokens,
|
|
11
15
|
characters: () => characters,
|
|
12
16
|
linkStatusEnum: () => linkStatusEnum,
|
|
13
17
|
memberRoleEnum: () => memberRoleEnum,
|
|
@@ -24,8 +28,48 @@ import {
|
|
|
24
28
|
timestamp,
|
|
25
29
|
pgEnum,
|
|
26
30
|
uuid,
|
|
27
|
-
index
|
|
31
|
+
index,
|
|
32
|
+
integer,
|
|
33
|
+
primaryKey
|
|
28
34
|
} from "drizzle-orm/pg-core";
|
|
35
|
+
var authUsers = pgTable("user", {
|
|
36
|
+
id: text("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
|
|
37
|
+
name: text("name"),
|
|
38
|
+
email: text("email").unique(),
|
|
39
|
+
emailVerified: timestamp("emailVerified", { mode: "date" }),
|
|
40
|
+
image: text("image")
|
|
41
|
+
});
|
|
42
|
+
var authAccounts = pgTable(
|
|
43
|
+
"account",
|
|
44
|
+
{
|
|
45
|
+
userId: text("userId").notNull().references(() => authUsers.id, { onDelete: "cascade" }),
|
|
46
|
+
type: text("type").$type().notNull(),
|
|
47
|
+
provider: text("provider").notNull(),
|
|
48
|
+
providerAccountId: text("providerAccountId").notNull(),
|
|
49
|
+
refresh_token: text("refresh_token"),
|
|
50
|
+
access_token: text("access_token"),
|
|
51
|
+
expires_at: integer("expires_at"),
|
|
52
|
+
token_type: text("token_type"),
|
|
53
|
+
scope: text("scope"),
|
|
54
|
+
id_token: text("id_token"),
|
|
55
|
+
session_state: text("session_state")
|
|
56
|
+
},
|
|
57
|
+
(t) => [primaryKey({ columns: [t.provider, t.providerAccountId] })]
|
|
58
|
+
);
|
|
59
|
+
var authSessions = pgTable("session", {
|
|
60
|
+
sessionToken: text("sessionToken").primaryKey(),
|
|
61
|
+
userId: text("userId").notNull().references(() => authUsers.id, { onDelete: "cascade" }),
|
|
62
|
+
expires: timestamp("expires", { mode: "date" }).notNull()
|
|
63
|
+
});
|
|
64
|
+
var authVerificationTokens = pgTable(
|
|
65
|
+
"verificationToken",
|
|
66
|
+
{
|
|
67
|
+
identifier: text("identifier").notNull(),
|
|
68
|
+
token: text("token").notNull(),
|
|
69
|
+
expires: timestamp("expires", { mode: "date" }).notNull()
|
|
70
|
+
},
|
|
71
|
+
(t) => [primaryKey({ columns: [t.identifier, t.token] })]
|
|
72
|
+
);
|
|
29
73
|
var memberRoleEnum = pgEnum("member_role", [
|
|
30
74
|
"member",
|
|
31
75
|
"officer",
|
|
@@ -172,6 +216,10 @@ function formatWeekRange(weekStart) {
|
|
|
172
216
|
}
|
|
173
217
|
export {
|
|
174
218
|
afkEntries,
|
|
219
|
+
authAccounts,
|
|
220
|
+
authSessions,
|
|
221
|
+
authUsers,
|
|
222
|
+
authVerificationTokens,
|
|
175
223
|
characters,
|
|
176
224
|
formatWeekRange,
|
|
177
225
|
getCurrentWeekStart,
|