ores.iam.account_type
Table of Contents
Reference data table defining valid account type classifications. Examples: 'user', 'service', 'algorithm', 'llm'.
Account types are managed by the system tenant and are used to categorise accounts for different purposes. User accounts can login with passwords, while service accounts authenticate via sessions only.
Flags
Columns
type
Unique type code.
Examples: 'user', 'service', 'algorithm', 'llm'.
name
Human-readable name for the type.
std::string(faker::word::adjective()) + " Account"
description
Detailed description of the account type.
std::string(faker::lorem::sentence())
display_order
Order for UI display purposes.
faker::number::integer(1, 100)
SQL
Flags
Extra drops
drop function if exists ores_iam_validate_account_type_fn;
Validation function
Insert trigger
Validations
| column | validation_function |
|---|---|
| change_reason_code | ores_dq_validate_change_reason_fn |
C++
Flags
Repository
Domain includes
#include <chrono> #include <string>
Entity includes
#include <string> #include "sqlgen/Timestamp.hpp"
Conventions
Table display
| column | header |
|---|---|
| type | Type |
| name | Name |
| description | Description |
| display_order | Order |
| modified_by | Modified By |
| version | Version |
Qt
Detail fields
| field | label | widget | type | is_key | is_required | placeholder |
|---|---|---|---|---|---|---|
| type | Type | codeEdit | line_edit | true | true | Enter account type code |
| name | Name | nameEdit | line_edit | true | Enter display name | |
| description | Description | descriptionEdit | text_edit | Enter a description |
Columns (Qt model)
| enum_name | field | header | type | width |
|---|---|---|---|---|
| Type | type | Type | string | 120 |
| Name | name | Name | string | 200 |
| Description | description | Description | string | 300 |
| DisplayOrder | display_order | Order | int | 80 |
| Version | version | Version | int | 80 |
| ModifiedBy | modified_by | Modified By | string | 120 |
| RecordedAt | recorded_at | Recorded At | timestamp | 150 |
Custom repository methods
See also
- ores.iam — component group overview.