Table stoq_schema.public.product_history 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()
te_id int8 19  √  new_te()
transaction_entry.id product_history_te_id_fkey R
quantity_sold numeric 20,3  √  null
quantity_received numeric 20,3  √  null
quantity_transfered numeric 20,3  √  null
quantity_consumed numeric 20,3  √  null
quantity_produced numeric 20,3  √  null
quantity_lost numeric 20,3  √  null
sold_date timestamp 29,6  √  null
received_date timestamp 29,6  √  null
production_date timestamp 29,6  √  null
decreased_date timestamp 29,6  √  null
quantity_decreased numeric 20,3  √  null
branch_id uuid 2147483647
branch.id product_history_branch_id_fkey R
sellable_id uuid 2147483647  √  null
sellable.id product_history_sellable_id_fkey R

Analyzed at Mon Nov 09 14:32 BRST 2015

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

Close relationships  within of separation: