Use NSDMIs for realm::Property
This commit is contained in:
parent
0ae1bb188e
commit
563a8374d0
|
@ -46,15 +46,12 @@ namespace realm {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Property {
|
struct Property {
|
||||||
public:
|
|
||||||
Property() : object_type(""), is_primary(false), is_indexed(false), is_nullable(false) {}
|
|
||||||
|
|
||||||
std::string name;
|
std::string name;
|
||||||
PropertyType type;
|
PropertyType type;
|
||||||
std::string object_type;
|
std::string object_type;
|
||||||
bool is_primary;
|
bool is_primary = false;
|
||||||
bool is_indexed;
|
bool is_indexed = false;
|
||||||
bool is_nullable;
|
bool is_nullable = false;
|
||||||
|
|
||||||
size_t table_column;
|
size_t table_column;
|
||||||
bool requires_index() { return is_primary || is_indexed; }
|
bool requires_index() { return is_primary || is_indexed; }
|
||||||
|
|
Loading…
Reference in New Issue