fix: add foreign references to activity table

This commit is contained in:
Nat 2024-09-01 14:53:09 -07:00
parent cb803a1c70
commit c6f9f74be3
1 changed files with 6 additions and 0 deletions

View File

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