Skip to content
Snippets Groups Projects
statisticalreport_model.py 475 B
Newer Older
from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo
root's avatar
root committed
from uuid import uuid4

class StatisticalReport(StructuredNode):
root's avatar
root committed
	uuid=StringProperty(unique_index=True, default=uuid4)
	report_name=StringProperty()

	@property
	def serialize(self):

		"""
		Serializer for node properties
		"""
		
	    return {
	        'node_properties': {
	            'uuid': self.uuid,
	            'report_name': self.report_name,
	        },
	    }