salix/db/changes/10461-mother/00-invoiceOut_queue.sql

9 lines
439 B
MySQL
Raw Normal View History

2022-05-24 12:50:33 +00:00
CREATE TABLE `vn`.`invoiceOut_queue` (
`invoiceFk` int(10) unsigned not null,
`queued` datetime default now() not null,
`printed` datetime null,
`status` VARCHAR(50) DEFAULT '' NULL,
CONSTRAINT `invoiceOut_queue_pk` PRIMARY KEY (`invoiceFk`),
CONSTRAINT `invoiceOut_queue_invoiceOut_id_fk` FOREIGN KEY (`invoiceFk`) REFERENCES `vn`.`invoiceOut` (`id`) ON UPDATE CASCADE ON DELETE CASCADE
2022-05-24 12:52:26 +00:00
) comment 'Queue for PDF invoicing';