# | Column Name | Nullable | Data Type | Max Length | Description |
---|---|---|---|---|---|
1 | counter_id | integer | 0 | The primary key of this table, which is also a serial field. | |
2 | store_id | integer | 0 | ||
3 | cash_repository_id | integer | 0 | ||
4 | counter_code | character varying | 12 | ||
5 | counter_name | character varying | 50 | ||
6 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
7 | 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 | store_id | counters_store_id_fkey | office.stores.store_id |
3 | cash_repository_id | counters_cash_repository_id_fkey | office.cash_repositories.cash_repository_id |
6 | audit_user_id | counters_audit_user_id_fkey | office.users.user_id |
Index Name | Owner | Access Method | Definition | Description |
---|---|---|---|---|
counters_pkey | postgres | btree | counter_id | |
counters_counter_name_uix | postgres | btree | upper(counter_name::text) | |
counters_counter_code_uix | postgres | btree | upper(counter_code::text) |
Constraint Name | Description |
---|
# | Column Name | Default |
---|---|---|
1 | counter_id | nextval('office.counters_counter_id_seq'::regclass) |
7 | audit_ts | now() |
Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
---|