alter table invoice add foreign key (parts_id) references parts (id);
alter table ar add foreign key (customer_id) references customer (id);
alter table ap add foreign key (vendor_id) references vendor (id);
-alter table orderitems add foreign key (trans_id) references oe (id);
alter table orderitems add foreign key (parts_id) references parts (id);
--Modify the possible length of bank account numbers
);
CREATE TABLE "orderitems" (
- "trans_id" integer REFERENCES oe (id),
+ "trans_id" integer,
"parts_id" integer REFERENCES parts (id),
"description" text,
"qty" real,