| # | Column Name | Nullable | Data Type | Max Length | Description |
|---|---|---|---|---|---|
| 1 | unit_id | integer | 0 | The primary key of this table, which is also a serial column. | |
| 2 | unit_code | character varying | 12 | The case insensitive unique code which denotes the unit name. | |
| 3 | unit_name | character varying | 50 | The case insensitive unique column which denotes the unit of measure. | |
| 4 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
| 5 | audit_ts | timestamp with time zone | 0 | Contains the date and timestamp of the last insert or update action. |
| # | Column Name | Key Name | References |
|---|---|---|---|
| 4 | audit_user_id | units_audit_user_id_fkey | office.users.user_id |
| Index Name | Owner | Access Method | Definition | Description |
|---|---|---|---|---|
| units_pkey | postgres | btree | unit_id | |
| units_unit_name_uix | postgres | btree | upper(unit_name::text) | |
| units_unit_code_uix | postgres | btree | upper(unit_code::text) |
| Constraint Name | Description |
|---|
| # | Column Name | Default |
|---|---|---|
| 1 | unit_id | nextval('core.units_unit_id_seq'::regclass) |
| 5 | audit_ts | now() |
| Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
|---|