feat(auth): finally better auth working as i wanted it to
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { pgTable, text, uuid, uniqueIndex } from "drizzle-orm/pg-core";
|
||||
import { user } from "./auth-schema.js";
|
||||
|
||||
export const userRole = pgTable(
|
||||
"user_role",
|
||||
export const userRoles = pgTable(
|
||||
"user_roles",
|
||||
{
|
||||
userRoleId: uuid("user_role_id").defaultRandom().primaryKey(),
|
||||
userId: text("user_id")
|
||||
@@ -15,3 +15,4 @@ export const userRole = pgTable(
|
||||
uniqueIndex("unique_user_module").on(table.userId, table.module),
|
||||
]
|
||||
);
|
||||
export type UserRole = typeof userRoles.$inferSelect;
|
||||
|
||||
Reference in New Issue
Block a user