Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('uom_uom_id_seq'::regclass) |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| category_id | int4 | 10 | null |
|
|
Category |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| create_uid | int4 | 10 | √ | null |
|
|
Created by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| write_uid | int4 | 10 | √ | null |
|
|
Last Updated by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uom_type | varchar | 2147483647 | null |
|
|
Type |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | jsonb | 2147483647 | null |
|
|
Unit of Measure |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| factor | numeric | 0 | null |
|
|
Ratio |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| rounding | numeric | 0 | null |
|
|
Rounding Precision |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| active | bool | 1 | √ | null |
|
|
Active |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| create_date | timestamp | 29,6 | √ | null |
|
|
Created on |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| write_date | timestamp | 29,6 | √ | null |
|
|
Last Updated on |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| uom_uom_pkey | Primary key | Asc | id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| uom_uom_factor_reference_is_one | (((((uom_type)::text = 'reference'::text) AND (factor = 1.0)) OR ((uom_type)::text <> 'reference'::text))) |
| uom_uom_rounding_gt_zero | ((rounding > (0)::numeric)) |
| uom_uom_factor_gt_zero | ((factor <> (0)::numeric)) |

