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

class ReductionScaling(StructuredNode):
root's avatar
root committed
	uuid=StringProperty(unique_index=True, default=uuid4)
	dp_step_name=StringProperty()
	created_at=DateTimeProperty()
	updated_at=DateTimeProperty()
root's avatar
root committed
	@property
	def serialize(self):
root's avatar
root committed
		"""
		Serializer for node properties
		"""
		
		return {
			'node_properties': {
				'uuid': self.uuid,
				'dp_step_name': self.dp_step_name,
				'created_at': self.created_at,
				'updated_at': self.updated_at,
			},
		}