alxjrvs / alxjrvs/orrey

Schema: date_polls, poll_dates, poll_responses; minimal game_days

Aperta
#34 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
phase:4
Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1h 34m
PR unite (30g)
23

Descrizione

- [ ] `date_polls` — nullable `target_session_id`, `game_id`, `game_day_kind`, **`win_rule`** (`min_players` | `quorum_of_roster` | `best_available` | `organiser_picks`), `win_threshold`, status, `opened_by`, `closes_at`, channel/message ids, `auto_resolve`.
- [ ] `poll_dates` — ≤10 per poll, each with an **`outcome`** (open/won/lost/withdrawn).
- [ ] `poll_responses` — poll_date_id, user_id, available (bool), responded_at.
- [ ] Partial unique index enforcing **max one open poll per target session**.
- [ ] `game_days` arrives here in minimal form (id, kind, date, title, state) because the untargeted poll mints them; capacity, venue, host, `game_id` and seating come in phase 5.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by finding the existing database schema or migration entry points in the project, since the issue does not name files. Add the date_polls, poll_dates, poll_responses, and minimal game_days structures with the listed fields and constraints. Done means the schema includes the max-one-open-poll partial unique index and the poll date limit/outcome requirements are represented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
sql
Ambito
database
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
62/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.