Skip to content
Snippets Groups Projects
statisticalreport_model.py 439 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
		"""
		
root's avatar
root committed
		return {
			'node_properties': {
				'uuid': self.uuid,
				'report_name': self.report_name,
			},
		}