complete login endpoint

This commit is contained in:
2026-06-29 00:27:51 -05:00
parent 5cbaef08d0
commit 29f0d38787
6 changed files with 168 additions and 72 deletions
+2 -2
View File
@@ -74,9 +74,9 @@ export const images = pgTable("images", {
export const users = pgTable("users", {
id: uuid().notNull().primaryKey().defaultRandom(),
display_name: varchar({ length: 63 }).notNull(),
display_name: varchar({ length: 63 }).unique().notNull(),
username: varchar({ length: 63 }).notNull(),
username: varchar({ length: 63 }).unique().notNull(),
hashed_password: varchar({ length: 255 }).notNull(),
logged_in: boolean().notNull().default(false),