diff --git a/dataproc/api/models/__pycache__/computinghost_model.cpython-38.pyc b/dataproc/api/models/__pycache__/computinghost_model.cpython-38.pyc index 299231008e6a8a8a281d3aceff342896ba63db43..ce0680db48c07496a73642bc80b3ce8fed7430cc 100644 Binary files a/dataproc/api/models/__pycache__/computinghost_model.cpython-38.pyc and b/dataproc/api/models/__pycache__/computinghost_model.cpython-38.pyc differ diff --git a/dataproc/api/models/computinghost_model.py b/dataproc/api/models/computinghost_model.py index 9653e38564bc5419d4ae909db89d2986e3094ce2..cae15482f075b8d4e595866f1f8a35501d275acd 100644 --- a/dataproc/api/models/computinghost_model.py +++ b/dataproc/api/models/computinghost_model.py @@ -1,6 +1,9 @@ from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo +from uuid import uuid4 class ComputingHost(StructuredNode): + name=StringProperty() + uuid=StringProperty(unique_index=True, default=uuid4) ch_softwares=StringProperty() ch_softwares_number=IntegerProperty() @@ -13,6 +16,8 @@ class ComputingHost(StructuredNode): return { 'node_properties': { + 'name': self.name, + 'uuid': self.uuid, 'ch_softwares': self.ch_softwares, 'ch_softwares_number': self.ch_softwares_number, },