# | Column Name | Nullable | Data Type | Max Length | Description |
---|---|---|---|---|---|
1 | compound_unit_id | integer | 0 | The primary key of this table, which is also a serial field. | |
2 | base_unit_id | integer | 0 | Foreign key to the table core.units. | |
3 | value | smallint | 0 | ||
4 | compare_unit_id | integer | 0 | ||
5 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
6 | audit_ts | timestamp with time zone | 0 | Contains the date and timestamp of the last insert or update action. |
# | Column Name | Key Name | References |
---|---|---|---|
2 | base_unit_id | compound_units_base_unit_id_fkey | core.units.unit_id |
4 | compare_unit_id | compound_units_compare_unit_id_fkey | core.units.unit_id |
5 | audit_user_id | compound_units_audit_user_id_fkey | office.users.user_id |
Index Name | Owner | Access Method | Definition | Description |
---|---|---|---|---|
compound_units_pkey | postgres | btree | compound_unit_id | |
compound_units_info_uix | postgres | btree | base_unit_id compare_unit_id |
Constraint Name | Description |
---|---|
compound_units_chk CHECK (base_unit_id <> compare_unit_id) |
# | Column Name | Default |
---|---|---|
1 | compound_unit_id | nextval('core.compound_units_compound_unit_id_seq'::regclass) |
6 | audit_ts | now() |
Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
---|