Table stoq_schema.public.work_order Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents
id uuid 2147483647 uuid_generate_v1()
work_order_history
work_order_item
work_order_package_item
te_id int8 19  √  new_te()
transaction_entry
identifier serial 10  √  nextval('work_order_identifier_seq'::regclass)
status work_order_status 2147483647
description text 2147483647  √  null
estimated_hours numeric 10,2  √  null
estimated_cost numeric 20,2  √  null
estimated_start timestamp 29,6  √  null
estimated_finish timestamp 29,6  √  null
open_date timestamp 29,6  √  null
approve_date timestamp 29,6  √  null
finish_date timestamp 29,6  √  null
is_rejected bool 1 false
defect_reported text 2147483647  √  null
defect_detected text 2147483647  √  null
branch_id uuid 2147483647  √  null
branch
sellable_id uuid 2147483647  √  null
sellable
quote_responsible_id uuid 2147483647  √  null
employee
execution_responsible_id uuid 2147483647  √  null
employee
category_id uuid 2147483647  √  null
work_order_category
client_id uuid 2147483647  √  null
client
sale_id uuid 2147483647  √  null
sale
current_branch_id uuid 2147483647  √  null
branch
execution_branch_id uuid 2147483647  √  null
branch
quantity int4 10  √  1
supplier_order text 2147483647  √  null

Analyzed at Fri Jun 10 16:06 BRT 2016

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

Close relationships  within of separation: