Table stoq_schema.public.login_user 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()
calls.attendant_id calls_attendant_id_fkey R
client_salary_history.user_id client_salary_history_user_id_fkey R
credit_check_history.user_id credit_check_history_user_id_fkey R
inventory.responsible_id inventory_responsible_id_fkey R
loan.responsible_id loan_responsible_id_fkey R
payment_comment.author_id payment_comment_author_id_fkey R
payment_renegotiation.responsible_id payment_renegotiation_responsible_id_fkey R
production_item_quality_result.tested_by_id production_item_quality_result_tested_by_id_fkey R
production_produced_item.produced_by_id production_produced_item_produced_by_id_fkey R
purchase_order.responsible_id purchase_order_responsible_id_fkey R
receiving_order.responsible_id receiving_order_responsible_id_fkey R
returned_sale.confirm_responsible_id returned_sale_confirm_responsible_id_fkey R
returned_sale.responsible_id returned_sale_responsible_id_fkey R
returned_sale.undo_responsible_id returned_sale_undo_responsible_id_fkey R
sale_comment.author_id sale_comment_author_id_fkey R
stock_decrease.responsible_id stock_decrease_responsible_id_fkey R
stock_transaction_history.responsible_id stock_transaction_history_responsible_id_fkey R
till.responsible_close_id till_responsible_close_id_fkey R
till.responsible_open_id till_responsible_open_id_fkey R
user_branch_access.user_id user_branch_access_user_id_fkey R
work_order_history.user_id work_order_history_user_id_fkey R
work_order_package.receive_responsible_id work_order_package_receive_responsible_id_fkey R
work_order_package.send_responsible_id work_order_package_send_responsible_id_fkey R
te_id int8 19  √  new_te()
transaction_entry.id login_user_te_id_fkey R
username text 2147483647
pw_hash text 2147483647  √  null
is_active bool 1  √  null
profile_id uuid 2147483647  √  null
user_profile.id login_user_profile_id_fkey R
person_id uuid 2147483647  √  null
person.id login_user_person_id_fkey R

Analyzed at Fri Jun 10 16:06 BRT 2016

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc login_user_pkey  
person_id Must be unique Asc login_user_person_id_key This unique column is also nullable
te_id Must be unique Asc login_user_te_id_key This unique column is also nullable
username Must be unique Asc login_user_username_key  

Close relationships  within of separation: