Table stoq_schema.public.employee Generated by
SchemaSpy
Legend: SourceForge.net
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()
branch.manager_id branch_manager_id_fkey R
employee_role_history.employee_id employee_role_history_employee_id_fkey R
production_order.responsible_id production_order_responsible_id_fkey R
stock_decrease.removed_by_id stock_decrease_removed_by_id_fkey R
transfer_order.destination_responsible_id transfer_order_destination_responsible_id_fkey R
transfer_order.source_responsible_id transfer_order_source_responsible_id_fkey R
work_order.execution_responsible_id work_order_execution_responsible_id_fkey R
work_order.quote_responsible_id work_order_quote_responsible_id_fkey R
te_id int8 19  √  new_te()
transaction_entry.id employee_te_id_fkey R
is_active bool 1  √  null
admission_date timestamp 29,6  √  null
expire_vacation timestamp 29,6  √  null
salary numeric 20,2  √  null
status employee_status 2147483647
registry_number text 2147483647  √  null
education_level text 2147483647  √  null
dependent_person_number int4 10  √  null
role_id uuid 2147483647  √  null
employee_role.id employee_role_id_fkey R
workpermit_data_id uuid 2147483647  √  null
work_permit_data.id employee_workpermit_data_id_fkey R
military_data_id uuid 2147483647  √  null
military_data.id employee_military_data_id_fkey R
voter_data_id uuid 2147483647  √  null
voter_data.id employee_voter_data_id_fkey R
bank_account_id uuid 2147483647  √  null
bank_account.id employee_bank_account_id_fkey R
person_id uuid 2147483647  √  null
person.id employee_person_id_fkey R
branch_id uuid 2147483647  √  null
branch.id employee_branch_id_fkey R

Analyzed at Mon Nov 09 14:32 BRST 2015

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc employee_pkey  
person_id Must be unique Asc employee_person_id_key This unique column is also nullable
te_id Must be unique Asc employee_te_id_key This unique column is also nullable

Close relationships  within of separation: