Table stoq_schema.public.stock_decrease 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()
stock_decrease_item.stock_decrease_id stock_decrease_item_stock_decrease_id_fkey R
te_id int8 19  √  new_te()
transaction_entry.id stock_decrease_te_id_fkey R
identifier serial 10  √  nextval('stock_decrease_identifier_seq'::regclass)
confirm_date timestamp 29,6  √  null
status stock_decrease_status 2147483647
reason text 2147483647  √  null
notes text 2147483647  √  null
responsible_id uuid 2147483647  √  null
login_user.id stock_decrease_responsible_id_fkey R
removed_by_id uuid 2147483647  √  null
employee.id stock_decrease_removed_by_id_fkey R
branch_id uuid 2147483647
branch.id stock_decrease_branch_id_fkey R
person_id uuid 2147483647  √  null
person.id stock_decrease_person_id_fkey R
cfop_id uuid 2147483647  √  null
cfop_data.id stock_decrease_cfop_id_fkey R
group_id uuid 2147483647  √  null
payment_group.id stock_decrease_group_id_fkey R
cost_center_id uuid 2147483647  √  null
cost_center.id stock_decrease_cost_center_id_fkey R
invoice_number int4 10  √  null
invoice_id uuid 2147483647  √  null
invoice.id stock_decrease_invoice_id_fkey R

Analyzed at Fri Jun 10 16:06 BRT 2016

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc stock_decrease_pkey  
identifier + branch_id Must be unique Asc/Asc stock_decrease_identifier_branch_id_key  
te_id Must be unique Asc stock_decrease_te_id_key This unique column is also nullable

Close relationships  within of separation: