Created models and wrote migrations ofor them. Not sure I did foreign keys and indexes right.