park time can be saved to db now

This commit is contained in:
TinyAtoms
2019-06-29 21:50:36 -03:00
parent a606119626
commit 0eee67d3d9
11 changed files with 82 additions and 37 deletions

View File

@ -7,7 +7,7 @@ SQLite::Database start_db() {
db.exec("create table if not exists Customer (id integer primary key, name text, card_code varchar(20), verhicle int)");
db.exec("create table if not exists Park_spot (id integer primary key, taken boolean, customer_id int)");
db.exec("create table if not exists Park_time (id integer primary key, customer_id int, spot_id int, start real, end real, duration real)");
db.exec("create table if not exists Park_time (id integer primary key, customer_id int, spot_id int, start int, end int, duration int)");
return db;
}