Table core.tax_authorities
Details on tax authorities, its address and other information associated with it.
# Column Name Nullable Data Type Max Length Description
1tax_authority_idinteger0The primary key of the table.
2tax_master_idinteger0Foreign key to the table core.tax_master.
3tax_authority_codecharacter varying12The code given to the tax authority.
4tax_authority_namecharacter varying100The name of the tax authority, which is a unique field.
5country_idinteger0Foreign key to the table core.countries.
6state_idinteger0Foreign key to the table core.states.
7zip_codecharacter varying12ZIP code of the tax office.
8address_line_1character varying128Address 1.
9address_line_2character varying128Address 2.
10streetcharacter varying50Street address.
11citycharacter varying50Name of the city.
12phonecharacter varying100Phone number of the tax office.
13faxcharacter varying24Fax number of the tax office.
14cellcharacter varying24Cell phone number of the tax office.
15emailcharacter varying128E-mail address of the tax office.
16urlcharacter varying50Web address of the tax office.
17audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
18audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
2 tax_master_id tax_authorities_tax_master_id_fkey core.tax_master.tax_master_id
5 country_id tax_authorities_country_id_fkey core.countries.country_id
6 state_id tax_authorities_state_id_fkey core.states.state_id
17 audit_user_id tax_authorities_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
tax_authorities_pkey postgres btree tax_authority_id
tax_authorities_tax_authority_name_uix postgres btree upper(tax_authority_name::text)
tax_authorities_tax_authority_code_uix postgres btree upper(tax_authority_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 tax_authority_id nextval('core.tax_authorities_tax_authority_id_seq'::regclass)
18 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description