# Data model

SQLite via `better-sqlite3`, schema created on boot in `backend/src/db/index.ts`.

- [employees](./employees.md) - the whitelist of employee emails, with a soft-delete active flag
- [attendance_events](./attendance-events.md) - append-only clock-in/out/break log and the derived state machine
