diff --git a/dataproc/api/models/beamlineparams_model.py b/dataproc/api/models/beamlineparams_model.py new file mode 100644 index 0000000000000000000000000000000000000000..2e941f962af64dd67849763ac6b0c720b5baf7d8 --- /dev/null +++ b/dataproc/api/models/beamlineparams_model.py @@ -0,0 +1,28 @@ +# Python imports +from uuid import uuid4 + +# Third-party imports +from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo + +class BeamlineParams(StructuredNode): + + """ + Defines node properties and relationships + Provides data serializer + """ + + # Properties + uuid=StringProperty(unique_index=True, default=uuid4) + + @property + def serialize(self): + + """ + Serializer for node properties + """ + + return { + 'BeamlineParams_node_properties': { + 'uuid': self.uuid, + }, + } \ No newline at end of file