From 904724cbceb10d62bcac09f6fc6568c96024f254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 26 Jan 2023 06:12:28 +0100 Subject: [PATCH] sql: integrate mime type in attachment --- schema.sql | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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),