Table core.counties
This table stores information on counties, their code, the state they belong etc.
# Column Name Nullable Data Type Max Length Description
1county_idinteger0The primary key of this table, which is also a serial field.
2county_codecharacter varying12The code given to the county,which is a unique field.
3county_namecharacter varying100The name of the county, which is a unique field.
4state_idinteger0State code of the county.
5audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
6audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
4 state_id counties_state_id_fkey core.states.state_id
5 audit_user_id counties_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
counties_pkey postgres btree county_id

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 county_id nextval('core.counties_county_id_seq'::regclass)
6 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description