from app import db, Countries, Cities
db.create_all()

UK = Countries(name='United Kingdom')
db.session.add(UK)
db.session.commit()

ldn = Cities(name='London', Countries=UK)
mcr = Cities(name='Manchester', country=Country.query.filter_by(
    name='United Kingdom').first())

db.session.add(ldn)
db.session.add(mcr)
db.session.commit()
