Table core.parties
This table stores information on parties and information associated with them.
# Column Name Nullable Data Type Max Length Description
1party_idbigint0The primary key of this table, which is also a serial field.
2party_type_idinteger0Foreign key to the table core.party_types.
3party_codecharacter varying12Code given to the party.
4first_namecharacter varying50First name of the party.
5middle_namecharacter varying50Middle name of the party.
6last_namecharacter varying50Family name of the party.
7party_nametext0Full-name of the party.
8date_of_birthdate0Date of birth of the party.
9entity_idinteger0Foreign key to the table core.entities.
10industry_idinteger0Foreign key to the table core.industries.
11country_idinteger0Foreign key to the table core.countries.
12state_idinteger0Foreign key to the table core.states.
13zip_codecharacter varying12Zip code of the party.
14address_line_1character varying128The address of the party.
15address_line_2character varying128The address of the party.
16streetcharacter varying50The street name where the party is located.
17citycharacter varying50The city name where the party is located.
18phonecharacter varying24The phone number of the party.
19faxcharacter varying24The fax number of the party.
20cellcharacter varying24Cell-phone number of the party.
21emailcharacter varying128E-mail address of the party.
22urlcharacter varying50Web address of the party.
23pan_numbercharacter varying50Permanent Address Number of the party.
24sst_numbercharacter varying50
25cst_numbercharacter varying50
26currency_codecharacter varying12Foreign key to the table core.currencies.
27allow_creditboolean0Select "Yes" if you want to allow credit to the party.
28maximum_credit_periodsmallint0Maximum credit period
29maximum_credit_amountmoney_strict20
30account_idbigint0Foreign key to the table core.accounts.
31audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
32audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
2 party_type_id parties_party_type_id_fkey core.party_types.party_type_id
9 entity_id parties_entity_id_fkey core.entities.entity_id
10 industry_id parties_industry_id_fkey core.industries.industry_id
11 country_id parties_country_id_fkey core.countries.country_id
12 state_id parties_state_id_fkey core.states.state_id
26 currency_code parties_currency_code_fkey core.currencies.currency_code
30 account_id parties_account_id_fkey core.accounts.account_id
31 audit_user_id parties_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
parties_pkey postgres btree party_id
parties_party_code_uix postgres btree upper(party_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 party_id nextval('core.parties_party_id_seq'::regclass)
32 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description
core.party_after_insert_trigger core.party_after_insert_trigger INSERT AFTER 0 ROW
core.party_before_update_trigger core.party_before_update_trigger UPDATE BEFORE 0 ROW