sql: integrate mime type in attachment

This commit is contained in:
King Kévin 2023-01-26 06:12:28 +01:00
parent d756bd39c1
commit 904724cbce
1 changed files with 1 additions and 6 deletions

View File

@ -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),