sql: integrate mime type in attachment
This commit is contained in:
parent
d756bd39c1
commit
904724cbce
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue