EncryptedPasswordDtoAccountId Property

AccountDto that is attached to the item.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public Guid AccountId { get; set; }

Property Value

Guid

Implements

IHasAccountAccountId

Remarks

  • Referential integrity – This item must refer to a valid AccountDto upon being set; the account must exist.
    Of course, accounts can be deleted later down the line, in which case this property becomes an orphaned reference.
    That is fine, in which case front-end will refer to the object as being made by a deleted account.
  • Lack of value – If no AccountDto is assigned, the value must be Empty. This is a valid state.
  • Does not imply ownership – Just because an item is assigned to a particular account, does not imply that user owns or has the permissions to interact with that item. Assignment is meant as a bureaucratic tool; "this nurse has this pager on their body at all times", for example, making it easier to keep track of what is going on.
  • Data isolation – If the item is company-agnostic (as per CompanyId), no account can be assigned. (including MobileTrack employees). If the object belongs to a company, no MobileTrack support employee can be assigned.
    When the name of the account is going to be displayed, check if the user is allowed to view that employee.
    Otherwise, the name must be hidden from them.

See Also