CREATE TABLE raid_builder.game_class(
	game_class_id uuid PRIMARY KEY,
	game_id uuid REFERENCES raid_builder.game(game_id),
	game_class_name text NOT NULL,
	game_class_icon text,

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

CREATE INDEX idx_game_class_game_id ON raid_builder.game_class(game_id);
CREATE INDEX idx_game_class_game_class_name ON raid_builder.game_class(game_class_name);

GRANT ALL ON TABLE raid_builder.game_class TO raid_builder;
