CREATE TABLE cars (
  car_id serial PRIMARY KEY
  ,make text NOT NULL
  ,model text NOT NULL
);

CREATE TABLE owners (
  owner_id serial PRIMARY KEY
  ,name text
);

CREATE TABLE owner_cars (
  owner_car_id serial PRIMARY KEY
  ,owner_id integer NOT NULL REFERENCES owners ON UPDATE CASCADE
  ,car_id integer NOT NULL REFERENCES cars ON UPDATE CASCADE
);
