Implement email and ip banning

This commit is contained in:
Owen
2026-03-11 11:37:27 -07:00
committed by Owen Schwartz
parent 4e2d88efdd
commit 1cc5f59f66
3 changed files with 42 additions and 1 deletions

View File

@@ -318,6 +318,15 @@ export const approvals = sqliteTable("approvals", {
.notNull()
});
export const bannedEmails = sqliteTable("bannedEmails", {
email: text("email").primaryKey()
});
export const bannedIps = sqliteTable("bannedIps", {
ip: text("ip").primaryKey()
});
export type Approval = InferSelectModel<typeof approvals>;
export type Limit = InferSelectModel<typeof limits>;
export type Account = InferSelectModel<typeof account>;