diff --git a/src/db/schema.ts b/src/db/schema.ts index 58f3874..f0b5d3b 100644 --- a/src/db/schema.ts +++ b/src/db/schema.ts @@ -1,3 +1,4 @@ +import { Role } from "@/constants/enum"; import { HasDefault, NotNull } from "drizzle-orm"; import { pgTable, PgTimestampBuilderInitial, timestamp, uuid, varchar } from "drizzle-orm/pg-core"; @@ -21,6 +22,8 @@ export const User = pgTable("user", { avatar: varchar("avatar"), + roles: varchar("roles").default(Role.User.toString()), + createdAt: createdAt("created_at"), updatedAt: updatedAt("updated_at") });