setup server admin

This commit is contained in:
Milo Schwartz 2024-12-25 15:54:32 -05:00
parent 00e3dcaeab
commit f90a822d19
29 changed files with 409 additions and 251 deletions

View file

@ -89,7 +89,10 @@ export const users = sqliteTable("user", {
emailVerified: integer("emailVerified", { mode: "boolean" })
.notNull()
.default(false),
dateCreated: text("dateCreated").notNull()
dateCreated: text("dateCreated").notNull(),
serverAdmin: integer("serverAdmin", { mode: "boolean" })
.notNull()
.default(false)
});
export const newts = sqliteTable("newt", {