fix drone and sqlc generation
Some checks failed
continuous-integration/drone/push Build was killed

This commit is contained in:
2026-01-13 19:49:13 +11:00
parent ea1eeb5c21
commit a81613a8c2
28 changed files with 3718 additions and 288 deletions

View File

@@ -100,7 +100,7 @@ This is where `templ` files live. Anything you want to render to the user goes h
### DB
This is the directory that `sqlc` generates to. Update `queries.sql` to build
your database operations.
your database operations. The schema for `sqlc` lives in `db/schema.sql`.
Once `queries.sql` is updated, run `make generate-sql` to update the generated models
@@ -133,6 +133,12 @@ DB_DRIVER=postgres DB_URL=postgres://user:pass@localhost:5432/vctp?sslmode=disab
PostgreSQL migrations live in `db/migrations_postgres`, while SQLite migrations remain in
`db/migrations`.
#### Snapshot Retention
Hourly and daily snapshot table retention can be configured with environment variables:
- `HOURLY_SNAPSHOT_MAX_AGE_DAYS` (default: 60)
- `DAILY_SNAPSHOT_MAX_AGE_MONTHS` (default: 12)
### Dist
This is where your assets live. Any Javascript, images, or styling needs to go in the