# rental changelog

## 1.2.0 (2026-12-02), minor
- For Guest Reviews. New optional table `review_scores` (a review's category scores on the 0-5 scale of `reviews.rating`;
  a category the channel did not ask is absent, never zero) and vocabulary `review_categories` (cleanliness, accuracy,
  communication, check_in, location, value). Guest Reviews moves its category scores out of its own `d_scores` table.
- New conformance check `review_scores_valid` at fail: it reads only the new table, which a 1.1 database does not have
  (skipped there), so no 1.1 database can fail it.
- Fixtures: three category scores on the fixture review. Migration `migrations/1.1-to-1.2.sql` for a stored 1.1 database.
  Every board on rental@1 re-pinned to 1.2.0.

## 1.1.0 (2026-12-01), minor
- For Sixto Operator (aparthotels and multi-unit operators). New optional columns: `listings.unit_code`, `max_guests`;
  `reservations.guest_key` (the source's opaque guest key, for repeat guests only; never a name, and never in a shared
  copy) and `checkin_status`; `payouts.status` (received, expected, overdue, cancelled; NULL keeps the 1.0 meaning,
  received); `availability.price` and `min_stay` (an open night with no price is "unpriced"); `reviews.needs_reply` and
  `reply_status`.
- New optional tables: `properties` (a building's name, time zone, currency, first stay), `reservation_units` (a stay
  holding several units or moving between them; money is shared over unit-nights), `cleanings`, `tasks` (kind, state and
  dates only, never the text), `guest_registrations` (SIRE, TRA, SES Hospedajes, Alloggiati, SIBA filings, never a
  guest's name, initials or document), `filing_incidents`, `invoices` (e-invoices and notes, never the buyer),
  `ledger_months` (the host's own books per month and currency) and `cancel_reasons` (counts per sorted reason).
- Vocabularies: `checkin_statuses`, `payout_statuses`, `reply_statuses`, `cleaning_actions`, `cleaning_statuses`,
  `task_statuses`, `authorities`, `registration_statuses`, `invoice_statuses`.
- `dates_valid` covers the new date columns. New checks at `warn`: `ops_refs_known`, `ops_values_sane`.
- Fixtures: a two-unit stay, a priced and an unpriced night, a review waiting for a reply, a cleaning, a task, SIRE and
  TRA filings, an incident, an e-invoice, a ledger month and a cancellation reason. Migration `migrations/1.0-to-1.1.sql`
  for a stored 1.0 database (the library and boards rebuild theirs).

## 1.0.0 (2026-11-29)
- First published version, from the launch plan's field list with what a real board needed added: `listings.tz`
  (local dates and lead time per property), `listings.city`/`country`, `reservations.booked_on` (exports give a date,
  not a time) and `cancelled_on`, an `adjustments` table (refunds, alterations, resolutions, cancellation fees, signed to
  the host), `payouts.channel`/`reference`, an `expenses` table (from the finance@2 ledger by `txn_id`, or a file),
  optional `reviews` (ratings only), and `fx_rates`.
- `vocab/expense_categories.csv`: `Taxes` is property taxes only; lodging tax guests paid is never a cost.
- Night rule as travel@1: `check_out` exclusive, `nights = check_out - check_in`.
- Conformance checks: real dates, nights, listings known, money signs, taxes remitted within collected, cancellation
  dates, provenance (fail); overlapping sold stays, payout reconciliation, adjustments and expense properties known,
  IANA time zones, rating range (warn).
