BloomERP

Users & Permissions models

Column and nullable values apply to fields stored on the model's table.

ApiKey

bloomerp.models.api.api_key.ApiKey

Database table bloomerp_api_key

FieldTypeColumnNullableDescription
idUUIDFieldidNo—
datetime_createdDateTimeFielddatetime_createdNo—
datetime_updatedDateTimeFielddatetime_updatedNo—
created_byUserField to bloomerp.Usercreated_by_idYes—
updated_byUserField to bloomerp.Userupdated_by_idYes—
accountForeignKey to bloomerp.Useraccount_idNoThe account whose permissions this API key uses.
nameCharFieldnameNoA human-readable label for this API key.
key_prefixCharFieldkey_prefixNoVisible token prefix used to identify the API key without storing the raw token.
key_hashCharFieldkey_hashNoHashed API key secret. The raw token is only shown when it is created.
last_used_atDateTimeFieldlast_used_atYes—
expires_atDateTimeFieldexpires_atYes—
revoked_atDateTimeFieldrevoked_atYes—
filesGenericRelation to bloomerp.FileReference———
commentsGenericRelation to bloomerp.Comment———
object_labelsBloomerpLabelsField———

User

bloomerp.models.users.user.User

Database table auth_user

FieldTypeColumnNullableDescription
idBigAutoFieldidNo—
passwordCharFieldpasswordNo—
last_loginDateTimeFieldlast_loginYes—
is_superuserBooleanFieldis_superuserNoDesignates that this user has all permissions without explicitly assigning them.
usernameCharFieldusernameNoRequired. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
first_nameCharFieldfirst_nameNo—
last_nameCharFieldlast_nameNo—
emailEmailFieldemailNo—
is_staffBooleanFieldis_staffNoDesignates whether the user can log into this admin site.
is_activeBooleanFieldis_activeNoDesignates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedDateTimeFielddate_joinedNo—
avatarImageFieldavatarYes—
default_email_accountForeignKey to bloomerp.EmailAccountdefault_email_account_idYesPreferred sender when composing outside an inbox.
date_view_preferenceCharFielddate_view_preferenceNoThe date format to be used in the application
datetime_view_preferenceCharFielddatetime_view_preferenceNoThe datetime format to be used in the application
detail_sidebar_view_preferenceCharFielddetail_sidebar_view_preferenceNoThe detail view sidebar panel to show first
groupsManyToManyField to auth.Group——The groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsManyToManyField to auth.Permission——Specific permissions for this user.

UserObjectLayoutPreference

bloomerp.models.users.user_object_layout_preference.UserObjectLayoutPreference

Model to store user preferences for object layouts.

Database table bloomerp_userobjectlayoutpreference

FieldTypeColumnNullableDescription
idBigAutoFieldidNo—
layoutJSONFieldlayoutNo—
nameCharFieldnameNoOptional name for this preference, for user reference
userForeignKey to bloomerp.Useruser_idNo—
selectedBooleanFieldselectedNoIndicates if this preference is currently selected for the user. Only one preference per user can be selected at a time.
source_objectForeignKey to bloomerp.UserObjectLayoutPreferencesource_object_idYesReference to the original preference from which this preference was derived. This is used to track the origin of derived preferences.
initial_defaultBooleanFieldinitial_defaultNoIndicates if this preference is the initial default for the user. This is used to determine the user's default preference when they first create an account.
content_typeForeignKey to contenttypes.ContentTypecontent_type_idNo—
shared_with_usersManyToManyField to bloomerp.User——Users with whom this preference is shared.
shared_with_groupsManyToManyField to auth.Group——Groups with whom this preference is shared.