u
This commit is contained in:
@@ -29,7 +29,10 @@ const MODULE_ORDER = [
|
||||
'order',
|
||||
'manifestattachment',
|
||||
'ledger',
|
||||
'warehouse',
|
||||
'stock',
|
||||
'posterminal',
|
||||
'printer',
|
||||
'google_auth',
|
||||
'pic',
|
||||
'numbers',
|
||||
@@ -335,7 +338,7 @@ const SCHEMA_TABLES = [
|
||||
['file', 'id PK, hash:s(64), mimetype:s(255), name:s(255), size:bi, created:dt, modified:dt, content:bin, thumbavif?:bin, thumbx?:i, thumby?:i, meta?:txt'],
|
||||
['google_auth', 'id PK, email:s(320) UQ, picture?:s(2048), picturebinary?:bin, sub?:s(255) UQ, created_at:dt, selected_company?->company'],
|
||||
['language', 'id PK, iso639:s(10) UQ'],
|
||||
['ledger', 'id PK, manifestarticle_id->manifestarticle, transaction_type:s(100), amount:f, transaction_text:txt, hash_version:i, prev_hash?:s(128) [append-only]'],
|
||||
['ledger', 'id PK, manifestarticle_id->manifestarticle, warehouse_id?->warehouse, transaction_type:s(100), amount:f, transaction_text:txt, hash_version:i, prev_hash?:s(128) [append-only]'],
|
||||
['manifest', 'id PK, company_id->company, number:s(100), type:s(100), entity_id?->entity, external_number?:s(100), date:dt, created_at:dt'],
|
||||
['manifestarticle', 'id PK, manifest_id->manifest, sku?:s(100), name?:s(255), pu:f=1, amount:f, net:f, comment?:txt, rebate:f=0, taxrate:f=0'],
|
||||
['manifestattachment', 'id PK, manifest_id->manifest, file_id->file, sort:i=0, UQ(manifest_id, sort)'],
|
||||
@@ -351,6 +354,7 @@ const SCHEMA_TABLES = [
|
||||
['tax', 'id PK, rate:d(18,4) UQ'],
|
||||
['unit', 'id PK, company_id->company, si:s(50), basesi:s(50), basesifactor:f, UQ(company_id, si)'],
|
||||
['unittext', 'id PK, unit_id->unit, language_id->language, symbol:s(50), name:s(255), UQ(unit_id, language_id)'],
|
||||
['warehouse', 'id PK, company_id->company, name:s(255), UQ(company_id, name)'],
|
||||
];
|
||||
|
||||
// Write the index API.md linking to each section file.
|
||||
|
||||
Reference in New Issue
Block a user