can save to db
This commit is contained in:
@ -12,26 +12,20 @@ using namespace std::chrono;
|
||||
using std::string;
|
||||
using std::to_string;
|
||||
/*
|
||||
db repr of Park_time
|
||||
int id (not null, auto increment)
|
||||
int customer_id (not null) (many to one or something like that)
|
||||
int spot_id (not null, many to one or something like that)
|
||||
int duration
|
||||
datetime start (not null)
|
||||
datetime end
|
||||
|
||||
Dit is gewoon een record van hoe lang, wie en waar iemand parkeert. Basically, een component van
|
||||
de internal state van customer.
|
||||
|
||||
Record of who parked at what park_spot and at what time.
|
||||
*/
|
||||
|
||||
class Park_time {
|
||||
public:
|
||||
Park_time(int c_id, int s_id);
|
||||
// Park_time(int c_id, int s_id );
|
||||
int id;
|
||||
int customer_id;
|
||||
int spot_id;
|
||||
int duration;
|
||||
Park_time(int c_id, int s_id);
|
||||
// Park_time(int c_id, int s_id );
|
||||
|
||||
void clock_out(int c_id, int s_id);
|
||||
friend std::ostream& operator<<(std::ostream& os, const Park_time & pt);
|
||||
|
||||
|
Reference in New Issue
Block a user