fix: add foreign references to activity table
This commit is contained in:
parent
cb803a1c70
commit
c6f9f74be3
|
@ -40,6 +40,12 @@ CREATE TABLE IF NOT EXISTS activity (
|
|||
instrument TEXT, -- Object with which the activity was performed
|
||||
|
||||
FOREIGN KEY (objectId) REFERENCES object(id),
|
||||
FOREIGN KEY (actor) REFERENCES object(id),
|
||||
FOREIGN KEY (object) REFERENCES object(id),
|
||||
FOREIGN KEY (origin) REFERENCES object(id),
|
||||
FOREIGN KEY (target) REFERENCES object(id),
|
||||
FOREIGN KEY (result) REFERENCES object(id),
|
||||
FOREIGN KEY (instrument) REFERENCES object(id),
|
||||
PRIMARY KEY (objectId)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue