CREATE TABLE reason_files (
	term_reason_id TINYINT NOT NULL,
	file_type_id TINYINT NOT NULL,
	is_required TINYINT(1) DEFAULT 0,
	PRIMARY KEY (term_reason_id, file_type_id),
	FOREIGN KEY idx_term_reason (term_reason_id) REFERENCES termination_reasons (id),
	FOREIGN KEY idx_file_type (file_type_id) REFERENCES file_types (id)
);

INSERT INTO reason_files (term_reason_id, file_type_id, is_required) VALUES
	(1, 1, 1),
	(2, 1, 1),
	(3, 2, 0),
	(3, 3, 0),
	(3, 4, 0),
	(4, 2, 0),
	(4, 3, 0),
	(4, 4, 0),
	(5, 2, 0),
	(6, 2, 0),
	(7, 2, 0),
	(8, 2, 0),
	(9, 2, 0),
	(10, 2, 0),
	(11, 2, 0),
	(12, 2, 0),
	(13, 2, 0),
	(14, 2, 0),
	(15, 2, 0);