20 lines
298 B
MySQL
20 lines
298 B
MySQL
|
CREATE TABLE person (
|
||
|
id INTEGER PRIMARY KEY,
|
||
|
first_name TEXT,
|
||
|
last_name TEXT,
|
||
|
age INTEGER
|
||
|
);
|
||
|
|
||
|
CREATE TABLE pet (
|
||
|
id INTEGER PRIMARY KEY,
|
||
|
name TEXT,
|
||
|
breed TEXT,
|
||
|
age INTEGER,
|
||
|
dead INTEGER
|
||
|
);
|
||
|
|
||
|
CREATE TABLE person_pet (
|
||
|
person_id INTEGER,
|
||
|
pet_id INTEGER
|
||
|
);
|