Table Data dictionary report - production_template_items

Generated: 9/23/2016 2:59:34 PM
Server: PostgreSQL 9.3 (localhost:5432)
Database: datadict
Schema: public

Columns

Name Data type Not Null? Primary key? Default Comment
id integer Yes Yes nextval('production_template_items_id_seq'::regclass)
template_id integer Yes No Links to production_templates.id
child_template_id integer No No Links to template_id for sub assemblies
sequence smallint No No Sequence number starting from 0
whse character varying(6) No No Warehouse of item
part_no character varying(34) No No Part number of item
description character varying(80) No No Description of item
unit_qty numeric(15,5) No No Quantity of component
unit_cost numeric(15,5) No No Cost of component
user_cost_flag boolean No No User edit cost TRUE = Yes FALSE = No
uom_usage character varying(10) No No Unit of measure quantity
lead_time numeric(5) No No Lead time for item
category character varying(6) No No Category for component
expected_scrap_pct numeric(5,2) No No Expected scrap for the component
guid character varying(32) No No GUID linking to purchase or production order
vend_no character varying(20) No No Vendor this component is to be ordered from.
employee character varying(6) No No Employee added to this line.
revision character varying(8) No No
instructions text No No Line isntructions for this component
user_flag boolean No No
_dbversion integer No No
_created timestamp without time zone No No
_created_by character varying(3) No No
_modified timestamp without time zone No No
_modified_by character varying(3) No No
parent_item_id integer No No ID of the parent when sub assemblies are toggled
udf_data hstore No No ''::hstore hstore field containing user defined data

Constraints

Name Type Definition Comment
production_template_items_pkey Primary key (id)
production_template_items_child_template_fkey Foreign key (child_template_id) REFERENCES production_templates (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE SET NULL
production_template_items_parent_id_fkey Foreign key (template_id, parent_item_id) REFERENCES production_template_items (template_id, id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
production_template_items_template_id_fkey Foreign key (template_id) REFERENCES production_templates (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
production_template_items_template_id_id_key Unique (template_id, id)

Report generated by pgAdmin III