chore: add role column to the table users

This commit is contained in:
Pablo Lara committed 2024-12-16 12:59:40 +01:00
1 parent c49fdc114a
commit 3d9cd177a2
11 files changed
+239 -54

No files matched your search

+19
View File
@@ -325,6 +325,9 @@ export interface UserProfileProps {
email: string;
company_name: string;
date_joined: string;
role: {
name: string;
};
};
relationships: {
memberships: {
@@ -351,6 +354,9 @@ export interface UserProps {
email: string;
company_name: string;
date_joined: string;
role: {
name: string;
};
};
relationships: {
memberships: {
@@ -362,7 +368,20 @@ export interface UserProps {
id: string;
}>;
};
roles: {
meta: {
count: number;
};
data: Array<{
type: "role";
id: string;
}>;
};
};
roles: {
id: string;
name: string;
}[];
}
export interface ProviderProps {
+1
View File
@@ -200,4 +200,5 @@ export const editUserFormSchema = () =>
.optional(),
company_name: z.string().optional(),
userId: z.string(),
role: z.string().optional(),
});