salix/db/changes/10340-summer/00-buy_importReference.sql

15 lines
376 B
MySQL
Raw Normal View History

create table `vn`.`buyImportReference`
(
itemFk int not null,
name varchar(80) not null,
company varchar(80) not null,
size int not null,
constraint buyImportReference_pk
primary key (itemFk, name, company, size),
constraint itemFk___fk
foreign key (itemFk) references item (id)
on update cascade on delete cascade
)
comment 'Referencias de compras importadas';