recurringEventInstancesTable
Variable: recurringEventInstancesTable
constrecurringEventInstancesTable:PgTableWithColumns<{ }>
Defined in: src/drizzle/tables/recurringEventInstances.ts:33
Drizzle ORM postgres table definition for recurring event event instances.
This table stores pre-calculated instances of recurring events within a hot window (typically 12-24 months ahead). Each instance represents a specific occurrence of a recurring event with calculated dates and times.
The actual event properties (name, description, etc.) are resolved at query time by:
- Inheriting from the base template event
- Applying any exceptions from the event_exceptions table
This approach eliminates data duplication while providing fast date-range queries.