CREATE TABLE Person (ID int(11) NOT NULL AUTO_INCREMENT, Name varchar(255), Address varchar(255), PRIMARY KEY (ID));
CREATE TABLE Car (ID int(11) NOT NULL AUTO_INCREMENT, PersonID int(11) NOT NULL, Brand varchar(255), Model varchar(255), PRIMARY KEY (ID));
ALTER TABLE Car ADD INDEX FKCar973347 (PersonID), ADD CONSTRAINT FKCar973347 FOREIGN KEY (PersonID) REFERENCES Person (ID);
