Data model
What is stored where.
| Where | What |
|---|---|
| Disk (one bare repository per repository, by id) | the git data: objects, refs |
| Postgres, engine schema | repositories, pull requests, issues, reviews, branch rules, as the engine keeps them |
Postgres, sypnia_git schema | the link between Sypnia accounts and the engine’s users; use-case links (commit, issue or pull request ↔ case); mirrors and their state; imports and exports with their reports; HTTPS tokens (hashed); webhook deliveries |
| S3 | Git LFS files, release files, nightly git bundles of every repository with a dump of its issues and pull requests |
The nightly bundle is also what export archive gives you: your repository and its history as plain files.