changed pk type to unsigned int
This commit is contained in:
parent
c591302063
commit
27d9bac316
|
|
@ -18,7 +18,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
struct author {
|
struct author {
|
||||||
unsigned long id{};
|
unsigned int id{};
|
||||||
std::string first_name;
|
std::string first_name;
|
||||||
std::string last_name;
|
std::string last_name;
|
||||||
std::string date_of_birth;
|
std::string date_of_birth;
|
||||||
|
|
@ -38,7 +38,7 @@ struct author {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct book {
|
struct book {
|
||||||
unsigned long id{};
|
unsigned int id{};
|
||||||
matador::object::object_ptr<author> book_author;
|
matador::object::object_ptr<author> book_author;
|
||||||
std::string title;
|
std::string title;
|
||||||
unsigned short published_in{};
|
unsigned short published_in{};
|
||||||
|
|
@ -54,7 +54,7 @@ struct book {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct payload {
|
struct payload {
|
||||||
unsigned long id{};
|
unsigned int id{};
|
||||||
|
|
||||||
template<typename Operator>
|
template<typename Operator>
|
||||||
void process( Operator& op ) {
|
void process( Operator& op ) {
|
||||||
|
|
@ -77,7 +77,7 @@ struct job {
|
||||||
Background
|
Background
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned long id{};
|
unsigned int id{};
|
||||||
matador::object::object_ptr<payload> payload;
|
matador::object::object_ptr<payload> payload;
|
||||||
std::string type;
|
std::string type;
|
||||||
std::string description;
|
std::string description;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue