feat: add global_repositories query

This commit is contained in:
2026-01-20 16:17:53 -08:00
parent 43c9b7c238
commit 5eccfe32da
9 changed files with 481 additions and 8 deletions

View File

@@ -12,6 +12,10 @@ export const user = pgTable("user", {
.defaultNow()
.$onUpdate(() => /* @__PURE__ */ new Date())
.notNull(),
role: text("role"),
banned: boolean("banned").default(false),
banReason: text("ban_reason"),
banExpires: timestamp("ban_expires"),
});
export const session = pgTable(
@@ -29,6 +33,7 @@ export const session = pgTable(
userId: text("user_id")
.notNull()
.references(() => user.id, { onDelete: "cascade" }),
impersonatedBy: text("impersonated_by"),
},
(table) => [index("session_userId_idx").on(table.userId)],
);