# Column Name Nullable Data Type Max Length Description
1counter_idinteger0The primary key of this table, which is also a serial field.
2store_idinteger0
3cash_repository_idinteger0
4counter_codecharacter varying12
5counter_namecharacter varying50
6audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
7audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# 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

Indices

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)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 counter_id nextval('office.counters_counter_id_seq'::regclass)
7 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description