diff --git a/apps/api/libs/database/src/enums.rs b/apps/api/libs/database/src/enums.rs index 9b3e0dff2..e31b98f80 100644 --- a/apps/api/libs/database/src/enums.rs +++ b/apps/api/libs/database/src/enums.rs @@ -96,12 +96,17 @@ pub enum TeamToUserRole { PartialOrd, )] #[diesel(sql_type = sql_types::AssetPermissionRoleEnum)] -#[serde(rename_all = "camelCase")] +#[serde(rename_all = "snake_case")] pub enum AssetPermissionRole { + #[serde(alias = "owner")] Owner, + #[serde(alias = "fullAccess")] FullAccess, + #[serde(alias = "canEdit")] CanEdit, + #[serde(alias = "canFilter")] CanFilter, + #[serde(alias = "canView")] CanView, }