Merge pull request #442 from buster-so/dal/role-casing-bug

enums for org role moved over
This commit is contained in:
dal 2025-07-08 13:06:42 -07:00 committed by GitHub
commit 6d39d72819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -37,12 +37,17 @@ pub enum MessageFeedback {
diesel::FromSqlRow, diesel::FromSqlRow,
)] )]
#[diesel(sql_type = sql_types::UserOrganizationRoleEnum)] #[diesel(sql_type = sql_types::UserOrganizationRoleEnum)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "snake_case")]
pub enum UserOrganizationRole { pub enum UserOrganizationRole {
#[serde(alias = "workspaceAdmin")]
WorkspaceAdmin, WorkspaceAdmin,
#[serde(alias = "dataAdmin")]
DataAdmin, DataAdmin,
#[serde(alias = "querier")]
Querier, Querier,
#[serde(alias = "restrictedQuerier")]
RestrictedQuerier, RestrictedQuerier,
#[serde(alias = "viewer")]
Viewer, Viewer,
} }