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

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

	@property
	def serialize(self):

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