Table core.states
Information on the states of the U.S.A.
# Column Name Nullable Data Type Max Length Description
1state_idinteger0Primary key of the table.
2country_idinteger0Foreign key to the table core.states.
3state_codecharacter varying12The code word given to the state name.
4state_namecharacter varying100Tha name of the states in the U.S.A, which is a unique field.
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
2 country_id states_country_id_fkey core.countries.country_id
5 audit_user_id states_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
states_pkey postgres btree state_id
states_state_name_uix postgres btree country_id upper(state_name::text)
states_state_code_uix postgres btree country_id upper(state_code::text)

Check Constraints

Constraint Name Description

Default Values

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

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description