Пример #1
0
def map():
    db.create_all()

    user_1 = Users(Login='******',
                   Password='******',
                   Email='*****@*****.**',
                   Lastname='Kolobaieva',
                   Firstname='Katia',
                   Age=20,
                   Eyes='blue',
                   hair='brown',
                   height=160)

    event_1 = Events(event_name='birthday', user_idIDFK=1)

    option_1 = Options(place='cafe',
                       season='summer',
                       temperature=20,
                       event_idIDFK=1)

    clothe_1 = Clothes(style_name='romantic',
                       outwear='t-shirt',
                       lowerwear='jeans',
                       shoes=35,
                       option_idIDFK=1)
    vendor_1 = Vendors(vendor_name='Katia',
                       vendor_address='kyiv',
                       balance=2000,
                       vendor_country='UK',
                       clothe_idIdFk=1)

    # db.session.add_all([student_1, student_2, student_3])
    db.session.add_all([user_1, event_1, option_1, clothe_1, vendor_1])
    db.session.commit()
    return render_template("layout.html")
Пример #2
0
def map():
    db.create_all()
    client_1 = Clients(client_name='Kat',
                       client_age='30',
                       client_money='2000',
                       client_contact='07846351')
    test_1 = Tests(price='1500', productor='Uk', client_idIDFK='1')
    product_1 = Products(product_name='cafe',
                         product_price='1200',
                         test_idIDFK='1')
    shop_1 = Shops(shop_name='romantic',
                   locale='Kyiv',
                   shop_contact='044123567',
                   product_idIDFK='1')
    vendor_1 = Vendors(vendor_name='Katia',
                       city='Kyiv',
                       rating='8',
                       year='2018',
                       product_idIdFk='1')
    db.session.add_all([client_1, test_1, product_1, shop_1, vendor_1])
    db.session.commit()
    return render_template("layout.html")
Пример #3
0
def index():
    db.create_all()
    return render_template("layout.html")