begin to calculate stock, next calculate outputed

This commit is contained in:
JBthePenguin 2021-06-07 18:30:20 +02:00
parent c4f8b4fb87
commit 71775c0f67
9 changed files with 96 additions and 68 deletions

View file

@ -7,7 +7,6 @@ CREATE TABLE IF NOT EXISTS plugin_materiels_category (
CREATE TABLE IF NOT EXISTS plugin_materiels_equipment (
id integer NOT NULL PRIMARY KEY autoincrement,
category_id integer NOT NULL,
stock_number integer NOT NULL,
designation varchar(255) NOT NULL,
CONSTRAINT u_equipment_designation UNIQUE ( designation ),
FOREIGN KEY ( category_id ) REFERENCES plugin_materiels_category( id ) ON DELETE RESTRICT ON UPDATE CASCADE