vicky-remi-wedding-website/france/schema.sql

13 lines
279 B
MySQL
Raw Normal View History

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