Extract database schema to separate SQL file

- Move schema from database.go to schema.sql
- Use go:embed to include schema at compile time
- Add 'out' debug file to .gitignore

This makes the schema more maintainable and easier to review.
This commit is contained in:
2025-07-27 22:38:51 +02:00
parent 97a06e14f2
commit 4a3d71d307
3 changed files with 110 additions and 107 deletions

5
.gitignore vendored
View File

@@ -31,4 +31,7 @@ go.work.sum
*.tmp
# Raw AS data (we only commit the gzipped version)
pkg/asinfo/asdata.json
pkg/asinfo/asdata.json
# Debug output files
out