Skip to content

Schema: calendar

Part of the generated database reference.

calendar_event_attendees

  • Domain: calendar Β· Feature gate: #[cfg(feature = "calendar")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/calendar.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
event_id UUID no β€” FK calendar_events.id
email VARCHAR(255) no β€” β€” β€”
name VARCHAR(255) yes β€” β€” β€”
status VARCHAR(255) no 'needs-action' β€” β€”
role VARCHAR(255) no 'req-participant' β€” β€”
rsvp_time TIMESTAMPTZ yes β€” β€” β€”
comment TEXT yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

calendar_event_reminders

  • Domain: calendar Β· Feature gate: #[cfg(feature = "calendar")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/calendar.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
event_id UUID no β€” FK calendar_events.id
reminder_type VARCHAR(255) no 'notification' β€” β€”
minutes_before INTEGER no β€” β€” β€”
is_sent BOOLEAN no FALSE β€” β€”
sent_at TIMESTAMPTZ yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

calendar_events

  • Domain: calendar Β· Feature gate: #[cfg(feature = "calendar")] Β· Migration: 6.5.23-branch-scope-cleanup
  • Rust source: botschema/src/calendar.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
org_id UUID no β€” FK organizations.org_id
bot_id UUID no β€” β€” β€”
branch_id UUID yes β€” FK branches.id
calendar_id UUID no β€” FK calendars.id
owner_id UUID no β€” β€” β€”
title VARCHAR(255) no β€” β€” β€”
description TEXT yes β€” β€” β€”
location VARCHAR(255) yes β€” β€” β€”
start_time TIMESTAMPTZ no β€” β€” β€”
end_time TIMESTAMPTZ no β€” β€” β€”
all_day BOOLEAN no FALSE β€” β€”
recurrence_rule TEXT yes β€” β€” β€”
recurrence_id UUID yes β€” FK calendar_events.id
color VARCHAR(255) yes β€” β€” β€”
status VARCHAR(255) no 'confirmed' β€” β€”
visibility VARCHAR(255) no 'default' β€” β€”
busy_status VARCHAR(255) no 'busy' β€” β€”
reminders JSONB no '[]' β€” β€”
attendees JSONB no '[]' β€” β€”
conference_data JSONB yes β€” β€” β€”
metadata JSONB no '{}' β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”

calendar_shares

  • Domain: calendar Β· Feature gate: #[cfg(feature = "calendar")] Β· Migration: 6.5.15.1-consolidated
  • Rust source: botschema/src/calendar.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
calendar_id UUID no β€” FK calendars.id
shared_with_user_id UUID yes β€” β€” β€”
shared_with_email VARCHAR(255) yes β€” β€” β€”
permission VARCHAR(255) no 'read' β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”

calendars

  • Domain: calendar Β· Feature gate: #[cfg(feature = "calendar")] Β· Migration: 6.5.23-branch-scope-cleanup
  • Rust source: botschema/src/calendar.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
org_id UUID no β€” FK organizations.org_id
bot_id UUID no β€” β€” β€”
branch_id UUID yes β€” FK branches.id
owner_id UUID no β€” β€” β€”
name VARCHAR(255) no β€” β€” β€”
description TEXT yes β€” β€” β€”
color VARCHAR(255) yes '#3b82f6' β€” β€”
timezone VARCHAR(255) yes 'UTC' β€” β€”
is_primary BOOLEAN no FALSE β€” β€”
is_visible BOOLEAN no TRUE β€” β€”
is_shared BOOLEAN no FALSE β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”