diff --git a/schema.sql b/schema.sql index ed2c7db..45c64bb 100644 --- a/schema.sql +++ b/schema.sql @@ -65,16 +65,11 @@ CREATE TABLE IF NOT EXISTS distribution ( FOREIGN KEY (distributor) REFERENCES distributor (id) ); -CREATE TABLE IF NOT EXISTS document ( - id INTEGER AUTO_INCREMENT PRIMARY KEY, -- index - type TEXT -- document type -); - -- part attachments CREATE TABLE IF NOT EXISTS attachment ( id INTEGER AUTO_INCREMENT PRIMARY KEY, -- index part INTEGER NOT NULL, -- the part - type INTEGER, -- attachment document type + mime TEXT NOT NULL, -- attachment document type path TEXT NOT NULL, -- the path to the attachment priority INTEGER NOT NULL, -- in which place the attachment should be displayed FOREIGN KEY (part) REFERENCES part (id),