Vridlo/types/User: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''User''' is a structure that represents User model. It is described as:
'''User''' is a '''''primary''''' structure that represents User model. It is described as:


* '''id''' is ''natural '''mandatory read-only'''''
* '''id''' is ''natural '''mandatory read-only'''''
  Unique identifier of account.
  Unique identifier of user.
 
* '''names''' is ''[[Vridlo/types/Name|Name]] array '''mandatory'''''
* '''names''' is ''[[Vridlo/types/Name|Name]] array '''mandatory'''''
  Name array for the account. It can include first name, last name, nickname, or title.
  Name array for the account. It can include first name, last name, nickname, or title.
* '''permissions''' is ''[[Vridlo/types/Permission|Permission]] array '''mandatory'''''
 
  Defines permissions for the account, permissions include the admin, or any other write permission to a model.
* '''recitals''' is ''[[Vridlo/types/Recital|Recital]] array '''mandatory'''''
  Recitals array for the user, it describes all of user's logins, email, jabber addresses etc.
 
* '''descriptions''' is ''[[Vridlo/types/Lorem|Lorem]] array '''optional'''''
* '''descriptions''' is ''[[Vridlo/types/Lorem|Lorem]] array '''optional'''''
  Descriptions array of the user, which defined as array of [[Vridlo/types/Lorem|Lorems]].
  Descriptions array of the user, which is defined as array of [[Vridlo/types/Lorem|Lorems]].
* '''recitals''' is ''[[Vridlo/types/Recital|Recital]] array '''mandatory'''''
 
  Recitals array for the user or group, it defines all of user or group logins, email, jabber addresses etc.
* '''permission_slugs''' is ''string array '''mandatory'''''
  Defines slugs of the account's [[Vridlo/types/Permission|permissions]], the permissions include the admin, or any other write permission to a model.
 
* '''sign_in_count''' is ''positive '''mandatory read-only'''''
* '''sign_in_count''' is ''positive '''mandatory read-only'''''
  Unique identifier of account.
  Unique identifier of user.
 
* '''current_sign_in_at''' is ''datetime '''mandatory read-only'''''
* '''current_sign_in_at''' is ''datetime '''mandatory read-only'''''
  Current signed in as datetime. Can be blank, when user have signed in less than once.
  Current signed in as datetime. Can be blank, when user have signed in less than once.
* '''last_sign_in_at''' is ''datetime '''mandatory read-only'''''
* '''last_sign_in_at''' is ''datetime '''mandatory read-only'''''
  Last time signed in as datetime. Can be blank, when user have signed in less than two times.
  Last time signed in as datetime. Can be blank, when user have signed in less than two times.
* '''confirmed''' is ''boolean '''mandatory read-only'''''
* '''confirmed''' is ''boolean '''mandatory read-only'''''
  Confirmed account state.
  Confirmed user state.

Latest revision as of 21:39, 13 December 2019

User is a primary structure that represents User model. It is described as:

  • id is natural mandatory read-only
Unique identifier of user.
  • names is Name array mandatory
Name array for the account. It can include first name, last name, nickname, or title.
  • recitals is Recital array mandatory
Recitals array for the user, it describes all of user's logins, email, jabber addresses etc.
  • descriptions is Lorem array optional
Descriptions array of the user, which is defined as array of Lorems.
  • permission_slugs is string array mandatory
Defines slugs of the account's permissions, the permissions include the admin, or any other write permission to a model.
  • sign_in_count is positive mandatory read-only
Unique identifier of user.
  • current_sign_in_at is datetime mandatory read-only
Current signed in as datetime. Can be blank, when user have signed in less than once.
  • last_sign_in_at is datetime mandatory read-only
Last time signed in as datetime. Can be blank, when user have signed in less than two times.
  • confirmed is boolean mandatory read-only
Confirmed user state.