1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-10 23:33:07 +00:00

uhhh yeah

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2024-12-25 18:44:29 -05:00
parent 5abe0b5fad
commit afc634b0d2
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
43 changed files with 573 additions and 3792 deletions

View file

@ -13,8 +13,7 @@ export const users = pgTable("users", {
name: varchar({ length: 26 }).unique().notNull(),
pass: varchar({ length: 255 }).notNull(),
registered: timestamp().notNull(),
moderator: boolean().default(false).notNull(),
banned: boolean().default(false).notNull() //! Not actually functional, banned users can still login
status: integer().default(0).notNull() // 000 |> verified / banned / moderator
});
export const updates = pgTable("updates", {
@ -69,5 +68,5 @@ export const inviteCodes = pgTable("invite_codes", {
user: integer("user_id").references(() => users.id, { onDelete: "cascade" }),
granted: timestamp().notNull(),
expires: timestamp().default(new Date(0)),
confersModerator: boolean("confers_moderator").default(false)
confers: integer().default(0)
});