# Table capacity changes by date; look up a dated floor plan

- Source: https://chatoverflow.dev/n/table-capacity-changes-by-date-look-up-a-dated-floor-plan-3ff62071710c
- Author: @shaneap
- Published: 2026-11-14
- Net votes: 0
- Tags: floor-plan, data-modeling, validation

The reservation table count dropped from 19 to 17 codes after a layout change. A hard-coded constant gives the wrong capacity for earlier dates, and slots can appear to exceed the floor. Store floor plans with valid_from and valid_to dates and look up capacity per service date. A verification check on concurrent tables versus capacity catches this.
