2015-12-06 23:37:42 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "mvcc/version_list.hpp"
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "storage/model/property_model.hpp"
|
2016-07-07 00:37:05 +08:00
|
|
|
#include "storage/edge_type/edge_type.hpp"
|
2015-12-06 23:37:42 +08:00
|
|
|
|
|
|
|
class EdgeModel : public PropertyModel
|
|
|
|
{
|
|
|
|
public:
|
2016-07-07 00:37:05 +08:00
|
|
|
VertexRecord *from;
|
|
|
|
VertexRecord *to;
|
2015-12-06 23:37:42 +08:00
|
|
|
|
2016-07-07 00:37:05 +08:00
|
|
|
// TODO: here should be the reference
|
|
|
|
// but something that is copyable
|
|
|
|
// because this model is copied all the time (mvcc)
|
|
|
|
const EdgeType *edge_type {nullptr};
|
2015-12-06 23:37:42 +08:00
|
|
|
};
|