clean and comments for category templates and php files

This commit is contained in:
JBthePenguin 2021-08-31 13:36:06 +02:00
parent 5ee30cf9ed
commit ff037ff75b
18 changed files with 180 additions and 72 deletions

View file

@ -31,3 +31,15 @@ CREATE TABLE IF NOT EXISTS plugin_materiels_output (
additional_comment varchar(255),
FOREIGN KEY ( equipment_id ) REFERENCES plugin_materiels_equipment( id ) ON DELETE RESTRICT ON UPDATE CASCADE
);
CREATE TABLE IF NOT EXISTS plugin_materiels_movement (
id integer NOT NULL PRIMARY KEY autoincrement,
side boolean NOT NULL CHECK(side IN(0,1)), /*0 -> entry, 1 -> output*/
kind varchar(20) NOT NULL,
equipment_number integer NOT NULL,
equipment_id integer NOT NULL,
mvt_date date NOT NULL,
additional_comment varchar(255),
FOREIGN KEY ( equipment_id ) REFERENCES plugin_materiels_equipment( id ) ON DELETE RESTRICT ON UPDATE CASCADE
);