Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/learnhouse/learnhouse
/ RoleCreate
Class
RoleCreate
apps/api/src/db/roles.py:114–115 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
112
113
114
class
RoleCreate(RoleBase):
115
org_id: Optional[int] = Field(default=None, foreign_key=
"organization.id"
)
116
117
118
class
RoleUpdate(SQLModel):
Callers
9
test_create_role_success_and_duplicate_guard
Method · 0.90
test_create_role_validation_and_permission_errors
Method · 0.90
test_create_role_org_and_name_validation
Method · 0.90
test_create_role_rights_validation_branches
Method · 0.90
test_create_role_sequence_recovery_and_rbac_helper
Method · 0.90
test_create_role_sequence_recovery_updates_sequence
Method · 0.90
test_create_role_sequence_error_passthrough
Method · 0.90
test_create_role_permission_missing_key_branch
Method · 0.90
test_create_role_clears_none_org_id_in_read_model
Method · 0.90
Calls
1
Field
Function · 0.50
Tested by
9
test_create_role_success_and_duplicate_guard
Method · 0.72
test_create_role_validation_and_permission_errors
Method · 0.72
test_create_role_org_and_name_validation
Method · 0.72
test_create_role_rights_validation_branches
Method · 0.72
test_create_role_sequence_recovery_and_rbac_helper
Method · 0.72
test_create_role_sequence_recovery_updates_sequence
Method · 0.72
test_create_role_sequence_error_passthrough
Method · 0.72
test_create_role_permission_missing_key_branch
Method · 0.72
test_create_role_clears_none_org_id_in_read_model
Method · 0.72