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:
parent
5abe0b5fad
commit
afc634b0d2
43 changed files with 573 additions and 3792 deletions
|
@ -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)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue