Skip to content
Snippets Groups Projects
Commit f3a4c4a3 authored by root's avatar root
Browse files

Update Computinghost model

parent 70294982
No related branches found
No related tags found
No related merge requests found
No preview for this file type
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,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment