1. Home
  2. Docs
  3. Constructor of Model
  4. Registers templates

Registers templates

HubCloud uses Registers to save recorder data. Registers are tables with specified columns.


Example:

We need to implement the simplest accounting in a trading company. To solve this case, it is necessary to record information on received/sold products and information on the status of mutual settlements with suppliers/buyers.

For that we need to create a Products table with the following columns:

Period – to record the date and time of receipt/write-off of goods.
Company – Our company in which the operation occurred.
Product – products that received or sold.
Store – Place of storage of products.
Quantity – The number of products received or sold.
Amount – The value of the products that received or sold.
Currency – The currency of the transaction.
Comment – Free text information.

PeriodCompanyStoreProductQuantityAmountCurrencyComment
2020-01-01MainFirstProduct11010USD
2020-01-03MainFirstProduct2-20-40USD

Debit or Credit transactions are implemented as records with (+) or ( -)

Articles