Table core.zip_codes
This table stores information on the ZIP code.
# Column Name Nullable Data Type Max Length Description
1zip_code_idbigint0The primary key of this table, which is also a bigserial field.
2state_idinteger0Foreign key to the table core.states
3codecharacter varying12ZIP code of the area.
4zip_code_type_idinteger0Foreign key to the table core.zip_code_types.
5citycharacter varying100Name of the city,
6latnumeric0Latitude of the area.
7lonnumeric0Longitude of the area.
8x_axisnumeric0X-axis of the ZIP code.
9y_axisnumeric0Y-axis of the ZIP code.
10z_axisnumeric0Z-axis of the ZIP code.
11audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
12audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
2 state_id zip_codes_state_id_fkey core.states.state_id
4 zip_code_type_id zip_codes_zip_code_type_id_fkey core.zip_code_types.zip_code_type_id
11 audit_user_id zip_codes_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
zip_codes_pkey postgres btree zip_code_id

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 zip_code_id nextval('core.zip_codes_zip_code_id_seq'::regclass)
12 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description