Table stoq_schema.public.production_produced_item 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()
production_item_quality_result.produced_item_id production_item_quality_result_produced_item_id_fkey R
te_id int8 19  √  new_te()
transaction_entry.id production_produced_item_te_id_fkey R
order_id uuid 2147483647  √  null
production_order.id production_produced_item_order_id_fkey R
product_id uuid 2147483647  √  null
product.id production_produced_item_product_id_fkey R
produced_by_id uuid 2147483647  √  null
login_user.id production_produced_item_produced_by_id_fkey R
produced_date timestamp 29,6  √  null
serial_number int4 10  √  null
entered_stock bool 1  √  null
test_passed bool 1  √  null

Analyzed at Mon Nov 09 14:32 BRST 2015

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc production_produced_item_pkey  
product_id + serial_number Must be unique Asc/Asc production_produced_item_product_id_serial_number_key These unique columns are also nullable
te_id Must be unique Asc production_produced_item_te_id_key This unique column is also nullable

Close relationships  within of separation: