| 965b950f Andy McCall ↶ | 1 | -- The transparency log's index (oxygenhub#238, docs/transparency.md): |
| 2 | -- which entry logged which object, so a proof can be given for it and an |
|
| 3 | -- object is logged once. The log itself is append-only files in the data |
|
| 4 | -- directory (tlog/); these rows only point into it. |
|
| 5 | ( |
|
| 6 | idx BIGINT PRIMARY KEY, |
|
| 7 | object TEXT NOT NULL, |
|
| 8 | kind TEXT NOT NULL, |
|
| 9 | repo_id BIGINT REFERENCES repositories(id) ON DELETE SET NULL, |
|
| 10 | received_ms BIGINT NOT NULL |
|
| 11 | ); |
|
| 12 | ON tlog_entries(object, kind); |
|
| 13 | ON tlog_entries(repo_id, idx); |