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

21
headers/Park_spot.h Normal file
View File

@ -0,0 +1,21 @@
#include "Customer.h"
/*
db representation:
int id not null
bool taken not null
int customer_id (null) (many to one, foreign key, whatever)
Dit representeert een parkeerplaats. Het heeft als internal state alleen dat t bezet is of niet.
*/
class Park_spot {
public:
int id;
bool taken;
Customer* parked; //TODO: think about memory management
Park_spot(int id_);
void clock(Customer* c_customer);
private:
};