CREATE TABLE raid_builder.raid_group_calendar_event(
	raid_group_calendar_event_id uuid PRIMARY KEY,
	raid_group_id uuid REFERENCES raid_builder.raid_group(raid_group_id) NOT NULL,
	event_name text NOT NULL,
	event_description text,
	event_start_date timestamptz NOT NULL,
	event_end_date timestamptz NOT NULL,

	--Auditing
	modified_by uuid,
	modified_date timestamptz,
	created_by uuid NOT NULL,
	created_date timestamptz NOT NULL
);

CREATE INDEX idx_raid_group_calendar_event_raid_group_id ON raid_builder.raid_group_calendar_event(raid_group_id);

GRANT ALL ON TABLE raid_builder.raid_group_calendar_event TO raid_builder;
