c_order_header_v

0 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
ad_client_id numeric 10 null
ad_org_id numeric 10 null
isactive bpchar 1 null
created timestamp 29,6 null
createdby numeric 10 null
updated timestamp 29,6 null
updatedby numeric 10 null
ad_language varchar 2147483647 null
c_order_id numeric 10 null
c_order.c_order_id Implied Constraint R
issotrx bpchar 1 null
documentno varchar 30 null
docstatus bpchar 2 null
c_doctype_id numeric 10 null
c_doctype.c_doctype_id Implied Constraint R
c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
bpvalue varchar 40 null
bptaxid varchar 20 null
naics varchar 6 null
duns varchar 11 null
org_location_id numeric 10 null
taxid varchar 20 null
m_warehouse_id numeric 10 null
m_warehouse.m_warehouse_id Implied Constraint R
warehouse_location_id numeric 10 null
documenttype varchar 60 null
documenttypenote varchar 2000 null
salesrep_id numeric 10 null
salesrep_name varchar 2147483647 null
character_entity.name Implied Constraint R
dateordered timestamp 29,6 null
datepromised timestamp 29,6 null
bpgreeting varchar 60 null
name varchar 120 null
name2 varchar 60 null
bpcontactgreeting varchar 60 null
title varchar 40 null
phone varchar 40 null
contactname text 2147483647 null
c_location_id numeric 10 null
c_location.c_location_id Implied Constraint R
postal text 2147483647 null
referenceno varchar 40 null
bill_bpartner_id numeric 10 null
bill_location_id numeric 10 null
bill_user_id numeric 10 null
bill_bpvalue varchar 40 null
bill_bptaxid varchar 20 null
bill_name varchar 120 null
bill_name2 varchar 60 null
bill_title varchar 40 null
bill_phone varchar 40 null
bill_contactname text 2147483647 null
bill_c_location_id numeric 10 null
c_location.c_location_id Implied Constraint R
description varchar 500 null
poreference varchar 20 null
c_currency_id numeric 10 null
c_currency.c_currency_id Implied Constraint R
paymentterm varchar 60 null
paymenttermnote varchar 2000 null
c_charge_id numeric 10 null
c_charge.c_charge_id Implied Constraint R
chargeamt numeric 0 null
totallines numeric 0 null
grandtotal numeric 0 null
amtinwords numeric 0 null
m_pricelist_id numeric 10 null
m_pricelist.m_pricelist_id Implied Constraint R
istaxincluded bpchar 1 null
volume numeric 0 null
weight numeric 0 null
c_campaign_id numeric 10 null
c_campaign.c_campaign_id Implied Constraint R
c_project_id numeric 10 null
c_project.c_project_id Implied Constraint R
c_activity_id numeric 10 null
c_activity.c_activity_id Implied Constraint R
m_shipper_id numeric 10 null
m_shipper.m_shipper_id Implied Constraint R
deliveryrule bpchar 1 null
deliveryviarule bpchar 1 null
priorityrule bpchar 1 null
invoicerule bpchar 1 null
logo_id numeric 10 null
ad_orgtrx_id numeric 10 null
ad_user_id numeric 10 null
amountrefunded numeric 22,2 null
amounttendered numeric 22,2 null
c_bpartner_location_id numeric 10 null
c_bpartner_location.c_bpartner_location_id Implied Constraint R
c_cashline_id numeric 10 null
c_cashline.c_cashline_id Implied Constraint R
c_cashplanline_id numeric 10 null
c_cashplanline.c_cashplanline_id Implied Constraint R
c_conversiontype_id numeric 10 null
c_conversiontype.c_conversiontype_id Implied Constraint R
c_doctypetarget_id numeric 10 null
copyfrom bpchar 1 null
c_payment_id numeric 10 null
c_payment.c_payment_id Implied Constraint R
c_paymentterm_id numeric 10 null
c_paymentterm.c_paymentterm_id Implied Constraint R
c_pos_id numeric 10 null
c_pos.c_pos_id Implied Constraint R
dateacct timestamp 29,6 null
dateprinted timestamp 29,6 null
docaction bpchar 2 null
dropship_bpartner_id numeric 10 null
dropship_location_id numeric 10 null
dropship_user_id numeric 10 null
freightamt numeric 0 null
freightcostrule bpchar 1 null
isapproved bpchar 1 null
iscreditapproved bpchar 1 null
isdelivered bpchar 1 null
isdiscountprinted bpchar 1 null
isdropship bpchar 1 null
isinvoiced bpchar 1 null
ispayschedulevalid bpchar 1 null
isprinted bpchar 1 null
isselected bpchar 1 null
isselfservice bpchar 1 null
istransferred bpchar 1 null
link_order_id numeric 10 null
m_freightcategory_id numeric 10 null
m_freightcategory.m_freightcategory_id Implied Constraint R
ordertype varchar 510 null
pay_bpartner_id numeric 10 null
pay_location_id numeric 10 null
paymentrule bpchar 1 null
posted bpchar 1 null
processed bpchar 1 null
processedon numeric 0 null
promotioncode varchar 30 null
ref_order_id numeric 10 null
sendemail bpchar 1 null
user1_id numeric 10 null
user2_id numeric 10 null
m_warehouse_ad_org_id numeric 10 null
m_warehouse_description varchar 255 null
m_warehouse_isactive bpchar 1 null
isdisallownegativeinv bpchar 1 null
isintransit bpchar 1 null
m_warehousesource_id numeric 10 null
m_warehouse_name varchar 60 null
replenishmentclass varchar 60 null
separator bpchar 1 null
m_warehouse_value varchar 40 null
c_paymentterm_ad_org_id numeric 10 null
afterdelivery bpchar 1 null
c_paymentterm_description varchar 255 null
discount numeric 0 null
discount2 numeric 0 null
discountdays numeric 10 null
discountdays2 numeric 10 null
fixmonthcutoff numeric 10 null
fixmonthday numeric 10 null
fixmonthoffset numeric 10 null
gracedays numeric 10 null
c_paymentterm_isactive bpchar 1 null
isdefault bpchar 1 null
isduefixed bpchar 1 null
isnextbusinessday bpchar 1 null
isvalid bpchar 1 null
netday bpchar 1 null
netdays numeric 10 null
paymenttermusage bpchar 1 null
m_paymentterm_value varchar 40 null
bp_acqusitioncost numeric 0 null
bp_actuallifetimevalue numeric 0 null
bp_ad_language varchar 6 null
ad_language.ad_language Implied Constraint R
bp_ad_orgbp_id numeric 10 null
bp_ad_org_id numeric 10 null
bp_bpartner_parent_id numeric 10 null
bp_c_bp_group_id numeric 10 null
c_bp_group.c_bp_group_id Implied Constraint R
bp_c_dunning_id numeric 10 null
c_dunning.c_dunning_id Implied Constraint R
bp_c_greeting_id numeric 10 null
c_greeting.c_greeting_id Implied Constraint R
bp_c_invoiceschedule_id numeric 10 null
c_invoiceschedule.c_invoiceschedule_id Implied Constraint R
bp_c_paymentterm_id numeric 10 null
c_paymentterm.c_paymentterm_id Implied Constraint R
bp_created timestamp 29,6 null
bp_createdby numeric 10 null
bp_c_taxgroup_id numeric 10 null
c_taxgroup.c_taxgroup_id Implied Constraint R
bp_deliveryrule bpchar 1 null
bp_deliveryviarule bpchar 1 null
bp_description varchar 255 null
bp_dunninggrace timestamp 29,6 null
bp_firstsale timestamp 29,6 null
bp_flatdiscount numeric 0 null
bp_freightcostrule bpchar 1 null
bp_invoicerule bpchar 1 null
bp_isactive bpchar 1 null
bp_iscustomer bpchar 1 null
bp_isdiscountprinted bpchar 1 null
bp_isemployee bpchar 1 null
bp_ismanufacturer bpchar 1 null
bp_isonetime bpchar 1 null
bp_ispotaxexempt bpchar 1 null
bp_isprospect bpchar 1 null
bp_issalesrep bpchar 1 null
bp_issummary bpchar 1 null
bp_istaxexempt bpchar 1 null
bp_isvendor bpchar 1 null
bp_logo_id numeric 10 null
bp_m_discountschema_id numeric 10 null
m_discountschema.m_discountschema_id Implied Constraint R
bp_m_pricelist_id numeric 10 null
m_pricelist.m_pricelist_id Implied Constraint R
bp_numberemployees numeric 10 null
bp_paymentrule bpchar 1 null
bp_paymentrulepo bpchar 1 null
bp_po_discountschema_id numeric 10 null
bp_po_paymentterm_id numeric 10 null
bp_po_pricelist_id numeric 10 null
bp_poreference varchar 20 null
bp_potentiallifetimevalue numeric 0 null
bp_rating bpchar 1 null
bp_salesrep_id numeric 10 null
bp_salesvolume numeric 10 null
bp_sendemail bpchar 1 null
bp_shareofcustomer numeric 10 null
bp_shelflifeminpct numeric 10 null
bp_so_creditlimit numeric 0 null
bp_socreditstatus bpchar 1 null
bp_so_creditused numeric 0 null
bp_so_description varchar 255 null
bp_totalopenbalance numeric 0 null
bp_updated timestamp 29,6 null
bp_updatedby numeric 10 null
bp_url varchar 120 null
c_greeting_ad_org_id numeric 10 null
c_greeting_isactive bpchar 1 null
isfirstnameonly bpchar 1 null
c_greeting_name varchar 60 null
bp_location_ad_org_id numeric 10 null
bp_location_c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
bp_location_created timestamp 29,6 null
bp_location_createdby numeric 10 null
bp_location_c_salesregion_id numeric 10 null
c_salesregion.c_salesregion_id Implied Constraint R
bp_location_fax varchar 40 null
bp_location_isactive bpchar 1 null
bp_location_isbillto bpchar 1 null
bp_location_isdn varchar 40 null
bp_location_ispayfrom bpchar 1 null
bp_location_isremitto bpchar 1 null
bp_location_isshipto bpchar 1 null
bp_location_name varchar 60 null
bp_location_phone varchar 40 null
bp_location_phone2 varchar 40 null
bp_location_updated timestamp 29,6 null
bp_location_updatedby numeric 10 null
address1 varchar 60 null
address2 varchar 60 null
address3 varchar 60 null
address4 varchar 60 null
c_location_ad_org_id numeric 10 null
c_city_id numeric 10 null
c_city.c_city_id Implied Constraint R
c_country_id numeric 10 null
c_country.c_country_id Implied Constraint R
city varchar 60 null
c_location_created timestamp 29,6 null
c_location_createdby numeric 10 null
c_region_id numeric 10 null
c_region.c_region_id Implied Constraint R
c_location_isactive bpchar 1 null
regionname varchar 40 null
c_location_updated timestamp 29,6 null
c_location_updatedby numeric 10 null
ad_user_ad_org_id numeric 10 null
ad_user_ad_orgtrx_id numeric 10 null
ad_user_ad_birthday timestamp 29,6 null
ad_user_c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
ad_user_c_bpartner_location_id numeric 10 null
c_bpartner_location.c_bpartner_location_id Implied Constraint R
ad_user_c_greeting_id numeric 10 null
c_greeting.c_greeting_id Implied Constraint R
ad_user_comments varchar 2000 null
ad_user_created timestamp 29,6 null
ad_user_createdby numeric 10 null
ad_user_description text 2147483647 null
ad_user_email varchar 60 null
ad_user_fax varchar 40 null
ad_user_isactive bpchar 1 null
ad_user_lastcontact timestamp 29,6 null
ad_user_lastresult varchar 255 null
ad_user_phone2 varchar 40 null
ad_user_supervisor_id numeric 10 null
ad_user_updated timestamp 29,6 null
ad_user_updatedby numeric 10 null
ad_user_value varchar 40 null
c_user_greeting_ad_org_id numeric 10 null
c_user_greeting_isactive bpchar 1 null
c_user_greeting_isfnameonly bpchar 1 null
c_user_greeting_name varchar 60 null
ad_orginfo_ad_org_id numeric 10 null
ad_orgtype_id numeric 10 null
ad_orgtype.ad_orgtype_id Implied Constraint R
c_calendar_id numeric 10 null
c_calendar.c_calendar_id Implied Constraint R
ad_orginfo_created timestamp 29,6 null
ad_orginfo_createdby numeric 10 null
dropship_warehouse_id numeric 10 null
ad_orginfo_duns varchar 11 null
ad_orginfo_email varchar 60 null
ad_orginfo_fax varchar 40 null
ad_orginfo_isactive bpchar 1 null
ad_orginfo_m_warehouse_id numeric 10 null
m_warehouse.m_warehouse_id Implied Constraint R
parent_org_id numeric 10 null
ad_orginfo_phone varchar 40 null
ad_orginfo_phone2 varchar 40 null
receiptfootermsg varchar 1023 null
supervisor_id numeric 10 null
ad_orginfo_updated timestamp 29,6 null
ad_orginfo_updatedby numeric 10 null
salesrep_ad_org_id numeric 10 null
salesrep_ad_orgtrx_id numeric 10 null
salesrep_ad_birthday timestamp 29,6 null
salesrep_c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
salesrep_c_bp_location_id numeric 10 null
salesrep_c_greeting_id numeric 10 null
c_greeting.c_greeting_id Implied Constraint R
salesrep_comments varchar 2000 null
salesrep_created timestamp 29,6 null
salesrep_createdby numeric 10 null
salesrep_description text 2147483647 null
salesrep_email varchar 60 null
salesrep_fax varchar 40 null
salesrep_isactive bpchar 1 null
salesrep_lastcontact timestamp 29,6 null
salesrep_lastresult varchar 255 null
salesrep_phone varchar 40 null
salesrep_phone2 varchar 40 null
salesrep_supervisor_id numeric 10 null
salesrep_title varchar 40 null
salesrep_updated timestamp 29,6 null
salesrep_updatedby numeric 10 null
salesrep_value varchar 40 null
salesrep_bp_acqusitioncost numeric 0 null
salesrep_bp_actuallifetimeval numeric 0 null
salesrep_bp_ad_language varchar 6 null
ad_language.ad_language Implied Constraint R
salesrep_bp_ad_orgbp_id numeric 10 null
salesrep_bp_ad_org_id numeric 10 null
salesrep_bp_bpartner_parent_id numeric 10 null
salesrep_bp_c_bp_group_id numeric 10 null
c_bp_group.c_bp_group_id Implied Constraint R
salesrep_bp_c_dunning_id numeric 10 null
c_dunning.c_dunning_id Implied Constraint R
salesrep_bp_c_greeting_id numeric 10 null
c_greeting.c_greeting_id Implied Constraint R
salesrep_bp_c_invoicesched_id numeric 10 null
salesrep_bp_c_paymentterm_id numeric 10 null
c_paymentterm.c_paymentterm_id Implied Constraint R
salesrep_bp_created timestamp 29,6 null
salesrep_bp_createdby numeric 10 null
salesrep_bp_c_taxgroup_id numeric 10 null
c_taxgroup.c_taxgroup_id Implied Constraint R
salesrep_bp_deliveryrule bpchar 1 null
salesrep_bp_deliveryviarule bpchar 1 null
salesrep_bp_description varchar 255 null
salesrep_bp_dunninggrace timestamp 29,6 null
salesrep_bp_duns varchar 11 null
salesrep_bp_firstsale timestamp 29,6 null
salesrep_bp_flatdiscount numeric 0 null
salesrep_bp_freightcostrule bpchar 1 null
salesrep_bp_invoicerule bpchar 1 null
salesrep_bp_isactive bpchar 1 null
salesrep_bp_iscustomer bpchar 1 null
salesrep_bp_isdiscountprinted bpchar 1 null
salesrep_bp_isemployee bpchar 1 null
salesrep_bp_ismanufacturer bpchar 1 null
salesrep_bp_isonetime bpchar 1 null
salesrep_bp_ispotaxexempt bpchar 1 null
salesrep_bp_isprospect bpchar 1 null
salesrep_bp_issalesrep bpchar 1 null
salesrep_bp_issummary bpchar 1 null
salesrep_bp_istaxexempt bpchar 1 null
salesrep_bp_isvendor bpchar 1 null
salesrep_bp_logo_id numeric 10 null
salesrep_bp_m_discountschm_id numeric 10 null
salesrep_bp_m_pricelist_id numeric 10 null
m_pricelist.m_pricelist_id Implied Constraint R
salesrep_bp_naics varchar 6 null
salesrep_bp_name2 varchar 60 null
salesrep_bp_numberemployees numeric 10 null
salesrep_bp_paymentrule bpchar 1 null
salesrep_bp_paymentrulepo bpchar 1 null
salesrep_bp_po_discountschm_id numeric 10 null
salesrep_bp_po_paymentterm_id numeric 10 null
salesrep_bp_po_pricelist_id numeric 10 null
salesrep_bp_poreference varchar 20 null
salesrep_bp_potentiallifetime numeric 0 null
salesrep_bp_rating bpchar 1 null
salesrep_bp_referenceno varchar 40 null
salesrep_bp_salesrep_id numeric 10 null
salesrep_bp_salesvolume numeric 10 null
salesrep_bp_sendemail bpchar 1 null
salesrep_bp_shareofcustomer numeric 10 null
salesrep_bp_shelflifeminpct numeric 10 null
salesrep_bp_so_creditlimit numeric 0 null
salesrep_bp_socreditstatus bpchar 1 null
salesrep_bp_so_creditused numeric 0 null
salesrep_bp_so_description varchar 255 null
salesrep_bp_taxid varchar 20 null
salesrep_bp_totalopenbalance numeric 0 null
salesrep_bp_updated timestamp 29,6 null
salesrep_bp_updatedby numeric 10 null
salesrep_bp_url varchar 120 null
salesrep_bp_value varchar 40 null
bill_bp_acqusitioncost numeric 0 null
bill_bp_actuallifetimevalue numeric 0 null
bill_bp_ad_language varchar 6 null
ad_language.ad_language Implied Constraint R
bill_bp_ad_orgbp_id numeric 10 null
bill_bp_ad_org_id numeric 10 null
bill_bp_bpartner_parent_id numeric 10 null
bill_bp_c_bp_group_id numeric 10 null
c_bp_group.c_bp_group_id Implied Constraint R
bill_bp_c_dunning_id numeric 10 null
c_dunning.c_dunning_id Implied Constraint R
bill_bp_c_greeting_id numeric 10 null
c_greeting.c_greeting_id Implied Constraint R
bill_bp_c_invoiceschedule_id numeric 10 null
c_invoiceschedule.c_invoiceschedule_id Implied Constraint R
bill_bp_c_paymentterm_id numeric 10 null
c_paymentterm.c_paymentterm_id Implied Constraint R
bill_bp_created timestamp 29,6 null
bill_bp_createdby numeric 10 null
bill_bp_c_taxgroup_id numeric 10 null
c_taxgroup.c_taxgroup_id Implied Constraint R
bill_bp_deliveryrule bpchar 1 null
bill_bp_deliveryviarule bpchar 1 null
bill_bp_description varchar 255 null
bill_bp_dunninggrace timestamp 29,6 null
bill_bp_duns varchar 11 null
bill_bp_firstsale timestamp 29,6 null
bill_bp_flatdiscount numeric 0 null
bill_bp_freightcostrule bpchar 1 null
bill_bp_invoicerule bpchar 1 null
bill_bp_isactive bpchar 1 null
bill_bp_iscustomer bpchar 1 null
bill_bp_isdiscountprinted bpchar 1 null
bill_bp_isemployee bpchar 1 null
bill_bp_ismanufacturer bpchar 1 null
bill_bp_isonetime bpchar 1 null
bill_bp_ispotaxexempt bpchar 1 null
bill_bp_isprospect bpchar 1 null
bill_bp_issalesrep bpchar 1 null
bill_bp_issummary bpchar 1 null
bill_bp_istaxexempt bpchar 1 null
bill_bp_isvendor bpchar 1 null
bill_bp_logo_id numeric 10 null
bill_bp_m_discountschema_id numeric 10 null
m_discountschema.m_discountschema_id Implied Constraint R
bill_bp_m_pricelist_id numeric 10 null
m_pricelist.m_pricelist_id Implied Constraint R
bill_bp_naics varchar 6 null
bill_bp_numberemployees numeric 10 null
bill_bp_paymentrule bpchar 1 null
bill_bp_paymentrulepo bpchar 1 null
bill_bp_po_discountschema_id numeric 10 null
bill_bp_po_paymentterm_id numeric 10 null
bill_bp_po_pricelist_id numeric 10 null
bill_bp_poreference varchar 20 null
bill_bp_potentiallifetimevalue numeric 0 null
bill_bp_rating bpchar 1 null
bill_bp_referenceno varchar 40 null
bill_bp_salesrep_id numeric 10 null
bill_bp_salesvolume numeric 10 null
bill_bp_sendemail bpchar 1 null
bill_bp_shareofcustomer numeric 10 null
bill_bp_shelflifeminpct numeric 10 null
bill_bp_so_creditlimit numeric 0 null
bill_bp_socreditstatus bpchar 1 null
bill_bp_so_creditused numeric 0 null
bill_bp_so_description varchar 255 null
bill_bp_totalopenbalance numeric 0 null
bill_bp_updated timestamp 29,6 null
bill_bp_updatedby numeric 10 null
bill_bp_url varchar 120 null
bill_bp_location_ad_org_id numeric 10 null
bill_bp_location_c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
bill_bp_location_created timestamp 29,6 null
bill_bp_location_createdby numeric 10 null
bill_bp_location_c_salesreg_id numeric 10 null
bill_bp_location_fax varchar 40 null
bill_bp_location_isactive bpchar 1 null
bill_bp_location_isbillto bpchar 1 null
bill_bp_location_isdn varchar 40 null
bill_bp_location_ispayfrom bpchar 1 null
bill_bp_location_isremitto bpchar 1 null
bill_bp_location_isshipto bpchar 1 null
bill_bp_location_name varchar 60 null
bill_bp_location_phone varchar 40 null
bill_bp_location_phone2 varchar 40 null
bill_bp_location_updated timestamp 29,6 null
bill_bp_location_updatedby numeric 10 null
bill_user_ad_org_id numeric 10 null
bill_user_ad_orgtrx_id numeric 10 null
bill_user_ad_birthday timestamp 29,6 null
bill_user_c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
bill_user_c_bp_location_id numeric 10 null
bill_user_c_greeting_id numeric 10 null
c_greeting.c_greeting_id Implied Constraint R
bill_user_comments varchar 2000 null
bill_user_created timestamp 29,6 null
bill_user_createdby numeric 10 null
bill_user_description text 2147483647 null
bill_user_email varchar 60 null
bill_user_fax varchar 40 null
bill_user_isactive bpchar 1 null
bill_user_lastcontact timestamp 29,6 null
bill_user_lastresult varchar 255 null
bill_user_phone2 varchar 40 null
bill_user_supervisor_id numeric 10 null
bill_user_updated timestamp 29,6 null
bill_user_updatedby numeric 10 null
bill_user_value varchar 40 null
cursymbol varchar 10 null
cur_description varchar 255 null
cof_cob_location_c_bpartner_id numeric 10 null
c_bpartner.c_bpartner_id Implied Constraint R
cof_cob_location_created timestamp 29,6 null
cof_cob_location_createdby numeric 10 null
cof_cob_location_c_salesreg_id numeric 10 null
cof_cob_location_fax varchar 40 null
cof_cob_location_isactive bpchar 1 null
cof_cob_location_isbillto bpchar 1 null
cof_cob_location_isdn varchar 40 null
cof_cob_location_ispayfrom bpchar 1 null
cof_cob_location_isremitto bpchar 1 null
cof_cob_location_isshipto bpchar 1 null
cof_cob_location_name varchar 60 null
cof_cob_location_phone varchar 40 null
cof_cob_location_phone2 varchar 40 null
cof_cob_location_updated timestamp 29,6 null
cof_cob_location_updatedby numeric 10 null
cof_cob_location_address1 varchar 60 null
cof_cob_location_address2 varchar 60 null
cof_cob_location_city varchar 60 null
cof_cob_location_postal varchar 10 null
cof_cob_location_regionname varchar 40 null
cof_cob_location_address3 varchar 60 null
cof_cob_location_address4 varchar 60 null
cof_c_custody varchar 60 null
cof_freightamt numeric 0 null

Relationships

View Definition