Documents the shift planning and closure/payroll modules (new tables, routes, stores), the dark redesign, and the docker-compose-broken-host workaround. Adds CLAUDE.md pointing agents at docs/. Translates README to English and keeps host-specific infrastructure details out of the repo.
720 B
720 B
Data model
SQLite via better-sqlite3, schema created on boot in backend/src/db/index.ts.
- employees - the whitelist of employee emails, with a soft-delete active flag
- attendance_events - append-only clock-in/out/break log and the derived state machine
- shift_slots - bookable shifts generated from a weekly template or added ad hoc
- shift_signups - an employee's claim on a slot
- pay_rates - versioned hourly rate per employee
- month_closures - the confirm -> lock workflow per employee per month
- payroll - computed + admin-adjusted pay per employee per month