Table core.countries
This table stores information on list of countries and their their code.
# Column Name Nullable Data Type Max Length Description
1country_idinteger0The primary key of this table, which is also a serial field.
2country_codecharacter varying12The code of the country.
3country_namecharacter varying100The name of the country.
4audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
5audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
4 audit_user_id countries_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
countries_pkey postgres btree country_id
countries_country_name_uix postgres btree upper(country_name::text)
countries_country_code_uix postgres btree upper(country_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 country_id nextval('core.countries_country_id_seq'::regclass)
5 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description