Table core.state_sales_taxes
Details on sales tax of the state in the U.S.A and other information associated with it.
# Column Name Nullable Data Type Max Length Description
1state_sales_tax_idinteger0The primary key of the table.
2state_sales_tax_codecharacter varying12The code given to the state sales tax.
3state_sales_tax_namecharacter varying100The name of the sales tax, which is also a unique field.
4state_idinteger0Foreign key to the table core.states.
5entity_idinteger0Foreign key to the table core.entities.
6industry_idinteger0Foreign key to the table core.industries.
7item_group_idinteger0Foreign key to the table core.item_groups.
8ratedecimal_strict20Tax rate of the state.
9audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
10audit_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 state_sales_taxes_state_id_fkey core.states.state_id
5 entity_id state_sales_taxes_entity_id_fkey core.entities.entity_id
6 industry_id state_sales_taxes_industry_id_fkey core.industries.industry_id
7 item_group_id state_sales_taxes_item_group_id_fkey core.item_groups.item_group_id
9 audit_user_id state_sales_taxes_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
state_sales_taxes_pkey postgres btree state_sales_tax_id
state_sales_taxes_state_id_item_group_id_uix postgres btree state_id item_group_id
state_sales_taxes_state_id_industry_id_uix postgres btree state_id industry_id
state_sales_taxes_state_id_entity_id_uix postgres btree state_id entity_id
state_sales_taxes_state_sales_tax_name_uix postgres btree upper(state_sales_tax_name::text)
state_sales_taxes_state_sales_tax_code_uix postgres btree upper(state_sales_tax_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 state_sales_tax_id nextval('core.state_sales_taxes_state_sales_tax_id_seq'::regclass)
8 rate 0
10 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description