Utopia-Canteen-System/scripts/mysql_meal_schedule_table.sql

15 lines
559 B
SQL

-- Production meal_schedule table (already exists on POD).
-- Schema used by ProductionMealScheduleService (Settings → Meal Schedules).
--
-- Columns:
-- id bigint PK auto_increment
-- meal_name varchar(255) e.g. 'Breakfast', 'Lunch', 'Dinner'
-- start_time time
-- end_time time
-- created_at timestamp
-- updated_at timestamp
-- location_site_id int default 0
--
-- No is_active column; all rows are treated as active.
-- App maps meal_name <-> MealSession (0=Breakfast, 1=Lunch, 2=Tea, 3=Dinner).