| 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 INTEGER PRIMARY KEY, |
| 6 | repo_id INTEGER NOT NULL REFERENCES repositories(id) ON DELETE CASCADE, |
| 7 | name TEXT NOT NULL, |
| 8 | size INTEGER NOT NULL, |
| 9 | hash TEXT NOT NULL, |
| 10 | content_type TEXT NOT NULL, |
| 11 | uploader_id INTEGER, |
| 12 | created_ms INTEGER NOT NULL |
| 13 | ); |
| 14 | ON attachments (repo_id); |
| 15 | ON attachments (hash); |