User role based access and moved db

This commit is contained in:
2025-10-10 12:19:43 -04:00
parent b8c545271a
commit d8fbcbbf4d
5 changed files with 56 additions and 9 deletions

View File

@@ -122,6 +122,7 @@ export interface UserAuthOperations {
export interface User {
id: number;
role: 'superAdmin' | 'admin' | 'user';
name?: string | null;
updatedAt: string;
createdAt: string;
email: string;
@@ -251,6 +252,7 @@ export interface PayloadMigration {
*/
export interface UsersSelect<T extends boolean = true> {
role?: T;
name?: T;
updatedAt?: T;
createdAt?: T;
email?: T;