| 1c52d940 Andy McCall ↶ | 1 | -- Files attached to issues, comments and proposals (oxygenhub#350): kept by |
| 2 | -- content in the hub's assets store, as release assets are, and served |
|
| 3 | -- under the repository's read rules. |
|
| 4 | ( |
|
| 5 | id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, |
|
| 6 | repo_id BIGINT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, |
|
| 7 | name TEXT NOT NULL, |
|
| 8 | size BIGINT NOT NULL, |
|
| 9 | hash TEXT NOT NULL, |
|
| 10 | content_type TEXT NOT NULL, |
|
| 11 | uploader_id BIGINT, |
|
| 12 | created_ms BIGINT NOT NULL |
|
| 13 | ); |
|
| 14 | ON attachments (repo_id); |
|
| 15 | ON attachments (hash); |