2015-03-26 21:49:14 +01:00
|
|
|
from models import *
|
|
|
|
from app import db
|
|
|
|
|
|
|
|
db.drop_all()
|
|
|
|
db.create_all()
|
|
|
|
|
|
|
|
feli = User()
|
2015-03-26 22:23:11 +01:00
|
|
|
feli.configure("feliciaan", True, 0)
|
2015-03-26 21:49:14 +01:00
|
|
|
db.session.add(feli)
|
|
|
|
|
2015-03-27 14:03:28 +01:00
|
|
|
destro = User()
|
2015-03-28 13:32:22 +01:00
|
|
|
destro.configure('destro', True, 0)
|
2015-03-28 00:08:27 +01:00
|
|
|
db.session.add(destro)
|
2015-03-26 21:49:14 +01:00
|
|
|
|
2015-03-28 12:17:04 +01:00
|
|
|
burrito = Location()
|
|
|
|
burrito.configure("Burrito Bar", "Top-4-straat Keknet-city", "burritofest.com")
|
|
|
|
db.session.add(burrito)
|
|
|
|
|
|
|
|
blauw_kotje = Location()
|
|
|
|
blauw_kotje.configure("'t Blauw Kotje", "Top-5-straat Keknet-city", "frietfest.com")
|
|
|
|
db.session.add(blauw_kotje)
|
|
|
|
|
2015-03-28 19:25:38 +01:00
|
|
|
chili_con_carne = Product()
|
2015-03-28 12:17:04 +01:00
|
|
|
chili_con_carne.configure(burrito, "Chili Con Carne", 550)
|
|
|
|
db.session.add(chili_con_carne)
|
|
|
|
|
2015-03-28 19:25:38 +01:00
|
|
|
medium_pak_frieten = Product()
|
2015-03-28 12:17:04 +01:00
|
|
|
medium_pak_frieten.configure(blauw_kotje, "Medium Pak Frieten", 220)
|
|
|
|
db.session.add(medium_pak_frieten)
|
2015-03-26 21:49:14 +01:00
|
|
|
# To future developers, add yourself here
|
|
|
|
|
|
|
|
# commit all the things
|
|
|
|
db.session.commit()
|