# | Column Name | Nullable | Data Type | Max Length | Description |
---|---|---|---|---|---|
1 | state_id | integer | 0 | Primary key of the table. | |
2 | country_id | integer | 0 | Foreign key to the table core.states. | |
3 | state_code | character varying | 12 | The code word given to the state name. | |
4 | state_name | character varying | 100 | Tha name of the states in the U.S.A, which is a unique field. | |
5 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
6 | audit_ts | timestamp with time zone | 0 | Contains the date and timestamp of the last insert or update action. |
# | 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 |
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) |
Constraint Name | Description |
---|
# | Column Name | Default |
---|---|---|
1 | state_id | nextval('core.states_state_id_seq'::regclass) |
6 | audit_ts | now() |
Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
---|