Table stoq_schema.public.person Generated by
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 uuid_generate_v1()
address.person_id address_person_id_fkey R
branch.person_id branch_person_id_fkey R
calls.person_id calls_person_id_fkey R
client.person_id client_person_id_fkey R
company.person_id company_person_id_fkey R
contact_info.person_id contact_info_person_id_fkey R
employee.person_id employee_person_id_fkey R
fiscal_book_entry.drawee_id fiscal_book_entry_drawee_id_fkey R
individual.person_id individual_person_id_fkey R
login_user.person_id login_user_person_id_fkey R
payment_group.payer_id payment_group_payer_id_fkey R
payment_group.recipient_id payment_group_recipient_id_fkey R
person.merged_with_id person_merged_with_id_fkey R
sales_person.person_id sales_person_person_id_fkey R
stock_decrease.person_id stock_decrease_person_id_fkey R
supplier.person_id supplier_person_id_fkey R
transporter.person_id transporter_person_id_fkey R
te_id int8 19  √  new_te() person_te_id_fkey R
name text 2147483647  √  null
phone_number text 2147483647  √  null
mobile_number text 2147483647  √  null
fax_number text 2147483647  √  null
email text 2147483647  √  null
notes text 2147483647  √  null
merged_with_id uuid 2147483647  √  null person_merged_with_id_fkey R

Analyzed at Mon Nov 09 14:32 BRST 2015

Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc person_pkey  
te_id Must be unique Asc person_te_id_key This unique column is also nullable

Close relationships  within of separation: