Добавить общие события и множественный выбор в календарь
This commit is contained in:
@@ -854,6 +854,7 @@ CREATE INDEX IF NOT EXISTS idx_post_lesson_task_closures_group_date ON post_less
|
||||
CREATE TABLE IF NOT EXISTS calendar_events (
|
||||
id SERIAL PRIMARY KEY,
|
||||
user_id INT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
is_common BOOLEAN NOT NULL DEFAULT false,
|
||||
title VARCHAR(200) NOT NULL DEFAULT '',
|
||||
notes TEXT NOT NULL DEFAULT '',
|
||||
location VARCHAR(200) NOT NULL DEFAULT '',
|
||||
@@ -870,4 +871,5 @@ CREATE TABLE IF NOT EXISTS calendar_events (
|
||||
purge_at TIMESTAMPTZ
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_calendar_events_user_start ON calendar_events(user_id, starts_at) WHERE deleted_at IS NULL;
|
||||
CREATE INDEX IF NOT EXISTS idx_calendar_events_common_start ON calendar_events(starts_at) WHERE deleted_at IS NULL AND is_common;
|
||||
CREATE INDEX IF NOT EXISTS idx_calendar_events_purge ON calendar_events(purge_at) WHERE purge_at IS NOT NULL;
|
||||
|
||||
Reference in New Issue
Block a user