chore: SQLite schema and database, set up SvelteKit #1
No reviewers
Labels
No labels
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/nova-crowd-favorite!1
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/initial-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The objective here is to set up the project foundation for the Nova crowd-favorite app, a SvelteKit + TypeScript app with a local SQLite database.
Changes
src/lib/server/db.ts) with foreign keys enabledsrc/lib/server/schema.sql):teams,team_members: synced from the submission Sheet (Sheet stays read-only)voters: one row per hacker, token stored hashedqr_codes: preprinted codes, claimed by a team membercollections: scans + notes, one per voter per teamballots: top 5 asrank_1–rank_5, one per votersettings: voting open/closed.dbfiles@ -1,3 +1,54 @@# nova-crowd-favoriteFix this README. Right now, it's just for a generic Svelte project.
Other than the README, everything else looks good. We do have to figure out how to get this in Kennel, since it doesn't support SQLite in production right now. Right now it looks like either we have to make a PR to Kennel to add that support (I can do that don't worry) or migrate to PostgreSQL. We could also use some other deployment platform.