M1 interview question

Implement a simple database schema.