2022-05-11 00:48:51 +00:00
|
|
|
CREATE TABLE families(
|
|
|
|
code VARCHAR(8) PRIMARY KEY,
|
|
|
|
name TEXT
|
2022-05-10 20:59:32 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE replies(
|
2022-05-11 00:48:51 +00:00
|
|
|
family_code VARCHAR(8) NOT NULL,
|
2022-05-10 20:59:32 +00:00
|
|
|
date DATETIME NOT NULL,
|
2022-05-11 00:48:51 +00:00
|
|
|
adults INTEGER NOT NULL,
|
|
|
|
children INTEGER NOT NULL,
|
|
|
|
FOREIGN KEY(family_code) REFERENCES families(code)
|
2022-05-10 20:59:32 +00:00
|
|
|
);
|