finalize schema/data setup
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
4d7bf09c4e
commit
954b8a11a3
89 changed files with 2324 additions and 6271 deletions
|
|
@ -1,19 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include <ikarus/objects/object.hpp>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct IkarusEntity : public IkarusObject {
|
||||
public:
|
||||
inline IkarusEntity(struct IkarusProject * project, int64_t id);
|
||||
#include <ikarus/values/value.hpp>
|
||||
|
||||
IkarusEntity(IkarusEntity const &) = default;
|
||||
IkarusEntity(IkarusEntity &&) = default;
|
||||
struct IkarusEntity {
|
||||
constinit static inline auto object_name = "entity";
|
||||
constinit static inline auto table_name = "entities";
|
||||
|
||||
IkarusEntity & operator=(IkarusEntity const &) = default;
|
||||
IkarusEntity & operator=(IkarusEntity &&) = default;
|
||||
IkarusEntity(
|
||||
struct IkarusProject * project,
|
||||
int64_t id,
|
||||
std::string_view name
|
||||
);
|
||||
|
||||
~IkarusEntity() override = default;
|
||||
struct IkarusProject * project;
|
||||
int64_t id;
|
||||
std::string name;
|
||||
|
||||
public:
|
||||
std::string_view get_table_name() const noexcept override;
|
||||
std::vector<std::pair<std::string_view, IkarusValue *>> values_ordered;
|
||||
std::unordered_map<std::string, IkarusValue> values;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue