CREATE TABLE Person(
	name VARCHAR(50) PRIMARY KEY,
	bdate DATE);

CREATE TABLE Project(
	name VARCHAR(50) PRIMARY KEY);

CREATE TABLE WorksOn(
	person VARCHAR(50) NOT NULL,
	project VARCHAR(50) NOT NULL,
	PRIMARY KEY (person, project));

ALTER TABLE WorksOn ADD INDEX WO_person_IDX(person);
ALTER TABLE WorksOn ADD CONSTRAINT WO_person_FK FOREIGN KEY (person) REFERENCES Person(name);
ALTER TABLE WorksOn ADD INDEX WO_project_IDX(project);
ALTER TABLE WorksOn ADD CONSTRAINT WO_project_FK FOREIGN KEY (project) REFERENCES Project(name);