sql: remove distributor stock

This commit is contained in:
King Kévin 2023-01-26 00:46:41 +01:00
parent debe9fa47d
commit c6acaed2ab
1 changed files with 0 additions and 8 deletions

View File

@ -83,14 +83,6 @@ CREATE TABLE IF NOT EXISTS distribution (
FOREIGN KEY (distributor) REFERENCES distributor (id)
);
-- part stock at a distributor
CREATE TABLE IF NOT EXISTS stock (
id INTEGER AUTO_INCREMENT PRIMARY KEY, -- index
distribution INTEGER NOT NULL, -- the part
stock INTEGER NOT NULL,
FOREIGN KEY (distribution) REFERENCES distribution (id)
);
CREATE TABLE IF NOT EXISTS document (
id INTEGER AUTO_INCREMENT PRIMARY KEY, -- index
type TEXT -- document type