feat: add better auth sqlite runtime and server-side session flow

This commit is contained in:
Poyraz
2026-07-10 22:07:37 +03:00
parent 3504a02229
commit 57aab2932e
41 changed files with 4907 additions and 143 deletions
+15
View File
@@ -0,0 +1,15 @@
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
export const runtimeChecks = sqliteTable("runtime_checks", {
key: text("key").primaryKey(),
value: text("value").notNull(),
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
});
export const runtimeEvents = sqliteTable("runtime_events", {
id: integer("id").primaryKey({ autoIncrement: true }),
type: text("type").notNull(),
message: text("message").notNull(),
createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
});