Skip to content
Snippets Groups Projects
autoproc_cmd_options_model.py 529 B
Newer Older
# Python imports
from uuid import uuid4

# Third-party imports
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo

class AutoprocCmdOptions(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 {
		'autoproc_cmd_options_node_properties': {
		'uuid': self.uuid,
		},
		}