Table Data dictionary report - production_history_items

Generated: 9/23/2016 2:57: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_history_items_id_seq'::regclass)
order_id integer Yes No ID linking to production_history.ID
sequence smallint No No Sequence number starting from 0
parent_item_id integer No No
whse character varying(6) No No Warehouse the raw material came from
part_no character varying(34) No No Part number the raw material came from
description character varying(80) No No Description the raw material came from
unit_qty numeric(15,5) No No Unit quantity
yield_qty numeric(21,5) No No Yield quantity
scrap_qty numeric(21,5) No No Actual scrap quantity
extended_qty numeric(21,5) No No Extended quantity consumed for build
consumed_qty numeric(21,5) No No Consumed quantity per unit
unit_cost numeric(15,5) No No Cost per unit
user_cost_flag boolean No No Did user edit the cost TRUE = Yes FALSE = No
uom_usage character varying(10) No No Unit of measure
uom_usage_factor numeric(13,5) No No Unit of measure factor applied
direct_factor boolean No No Direct factor TRUE = Yes FALSE = No
lead_time numeric(5) No No Lead time of item
date date No No Date item was committed
category character varying(6) No No Category of the item
expected_yield_pct numeric(5,2) No No Expected yield percentage
expected_scrap_pct numeric(5,2) No No Expected scrap percentage
guid character varying(32) No No GUID linking to PO or production order
phase_id character varying(20) No No
req_no character varying(10) No No Requisition number item is linked to
vend_no character varying(20) No No Primary vendor for this item. (was editable by user)
employee character varying(6) No No Employee that was added to this line
template_no character varying(10) No No Template number for this line
template_guid character varying(32) No No Template GUID
user_flag boolean No No
revision character varying(8) No No
instructions text No No Component instructons
_dbversion integer No No
_modified timestamp without time zone No No
_modified_by character varying(3) No No
_created timestamp without time zone No No
_created_by character varying(3) No No
udf_data hstore No No ''::hstore hstore field containing user defined data

Constraints

Name Type Definition Comment
production_history_items_pkey Primary key (id)
production_history_items_order_id_fkey Foreign key (order_id) REFERENCES production_history (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION
production_history_items_parent_id_fkey Foreign key (order_id, parent_item_id) REFERENCES production_history_items (order_id, id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION
production_history_items_order_id_id_key Unique (order_id, id)

Report generated by pgAdmin III