Table stoq_schema.public.product 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()
inventory_item.product_id inventory_item_product_id_fkey R
product.parent_id product_parent_id_fkey R
product_attribute.product_id product_attribute_product_id_fkey R
product_component.component_id product_component_component_id_fkey R
product_component.product_id product_component_product_id_fkey R
product_option_map.product_id product_option_map_product_id_fkey R
product_quality_test.product_id product_quality_test_product_id_fkey R
product_supplier_info.product_id product_supplier_info_product_id_fkey R
production_item.product_id production_item_product_id_fkey R
production_material.product_id production_material_product_id_fkey R
production_produced_item.product_id production_produced_item_product_id_fkey R
storable.id storable_id_fkey R
sellable.id product_id_fkey R
te_id int8 19  √  new_te()
transaction_entry.id product_te_id_fkey R
consignment bool 1 false
location text 2147483647  √  null
part_number text 2147483647  √  null
family text 2147483647  √  null
brand text 2147483647  √  null
model text 2147483647  √  null
ncm text 2147483647  √  null
ex_tipi text 2147483647  √  null
genero text 2147483647  √  null
production_time int4 10  √  0
manage_stock bool 1  √  true
is_composed bool 1  √  false
width numeric 10,2  √  null
height numeric 10,2  √  null
depth numeric 10,2  √  null
weight numeric 10,2  √  null
icms_template_id uuid 2147483647  √  null
product_icms_template.id product_icms_template_id_fkey R
ipi_template_id uuid 2147483647  √  null
product_ipi_template.id product_ipi_template_id_fkey R
manufacturer_id uuid 2147483647  √  null
product_manufacturer.id product_manufacturer_id_fkey R
is_grid bool 1  √  false
parent_id uuid 2147483647  √  null
product.id product_parent_id_fkey R
internal_use bool 1  √  false
pis_template_id uuid 2147483647  √  null
product_pis_template.id product_pis_template_id_fkey R
cofins_template_id uuid 2147483647  √  null
product_cofins_template.id product_cofins_template_id_fkey R
is_package bool 1  √  false

Analyzed at Fri Jun 10 16:06 BRT 2016

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

Close relationships  within of separation: