From c6acaed2ab42e310dcfd3c0c112021e06e8ccfe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 26 Jan 2023 00:46:41 +0100 Subject: [PATCH] sql: remove distributor stock --- schema.sql | 8 -------- 1 file changed, 8 deletions(-) diff --git a/schema.sql b/schema.sql index 7806aaa..39b4148 100644 --- a/schema.sql +++ b/schema.sql @@ -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