Currently there are no foreign key constraints on the ORDERITEMS table, yet there are a number of columns referring to other tables:
So, it looks like there should be 3 foreign keys on the table just to document the data model better if nothing else. Especially the trans_id <->
oe.id relationship does not seem very straight forward.
Erik.