User role based access and moved db
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user