feat(36-01): add isAdmin column to users table schema and generate migration
- Add isAdmin boolean(is_admin) NOT NULL DEFAULT false to users table - Generate migration 0009_spotty_lord_tyger.sql - NOTE: db:push requires DATABASE_URL with correct credentials to apply
This commit is contained in:
@@ -18,6 +18,7 @@ export const users = pgTable("users", {
|
||||
displayName: text("display_name"),
|
||||
avatarUrl: text("avatar_url"),
|
||||
bio: text("bio"),
|
||||
isAdmin: boolean("is_admin").notNull().default(false),
|
||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user