CREATE TABLE raid_builder.person(
	person_id uuid PRIMARY KEY,
	raid_group_id uuid REFERENCES raid_builder.raid_group(raid_group_id) NOT NULL,
	person_name text NOT NULL,
	discord_id text,

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

CREATE INDEX idx_person_raid_group_id ON raid_builder.person(raid_group_id);

GRANT ALL ON TABLE raid_builder.person TO raid_builder;
