felt/internal/store/migrations/003_seed_data.sql
Mikkel Georgsen af13732b2b feat(01-01): initialize Go module, dependency tree, and project scaffold
- Go module at github.com/felt-app/felt with go-libsql pinned to commit hash
- Full directory structure per research recommendations (cmd/leaf, internal/*, frontend/)
- Makefile with build, run, run-dev, test, frontend, all, clean targets
- LibSQL database with WAL mode, foreign keys, and embedded migration runner
- SvelteKit SPA stub served via go:embed
- Package stubs for all internal packages (server, nats, store, auth, clock, etc.)
- go build and go vet pass cleanly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:34:44 +01:00

27 lines
1.2 KiB
SQL

-- 003_seed_data.sql
-- Default venue settings and built-in chip sets
-- Applied on every fresh database
-- Default venue settings (DKK, Denmark)
INSERT OR IGNORE INTO venue_settings (id, venue_name, currency_code, currency_symbol, rounding_denomination, receipt_mode, timezone)
VALUES (1, '', 'DKK', 'kr', 5000, 'digital', 'Europe/Copenhagen');
-- Standard chip set (universal denominations)
INSERT OR IGNORE INTO chip_sets (id, name, is_builtin) VALUES (1, 'Standard', 1);
INSERT OR IGNORE INTO chip_denominations (chip_set_id, value, color_hex, label, sort_order) VALUES
(1, 25, '#FFFFFF', '25', 1),
(1, 100, '#FF0000', '100', 2),
(1, 500, '#00AA00', '500', 3),
(1, 1000, '#000000', '1000', 4),
(1, 5000, '#0000FF', '5000', 5);
-- Copenhagen chip set (DKK-friendly denominations)
INSERT OR IGNORE INTO chip_sets (id, name, is_builtin) VALUES (2, 'Copenhagen', 1);
INSERT OR IGNORE INTO chip_denominations (chip_set_id, value, color_hex, label, sort_order) VALUES
(2, 100, '#FFFFFF', '100', 1),
(2, 500, '#FF0000', '500', 2),
(2, 1000, '#00AA00', '1000', 3),
(2, 5000, '#000000', '5000', 4),
(2, 10000, '#0000FF', '10000', 5);