This commit is contained in:
2025-11-14 14:47:19 +00:00
parent 2a85845835
commit 3758c7572a
137 changed files with 365654 additions and 11147 deletions
+10 -10
View File
@@ -3,15 +3,15 @@ from modules.database.tools.neontology.basenode import BaseNode
class CCBaseNode(BaseNode):
__primarylabel__: ClassVar[str] = ''
__primaryproperty__: ClassVar[str] = 'unique_id'
unique_id: str
tldraw_snapshot: str
__primaryproperty__: ClassVar[str] = 'uuid_string'
uuid_string: str
node_storage_path: str
def to_dict(self):
return {
"__primarylabel__": self.__primarylabel__,
"unique_id": self.unique_id,
"tldraw_snapshot": self.tldraw_snapshot,
"uuid_string": self.uuid_string,
"node_storage_path": self.node_storage_path,
}
class UserBaseNode(CCBaseNode):
@@ -25,8 +25,8 @@ class UserBaseNode(CCBaseNode):
def to_dict(self):
return {
"__primarylabel__": self.__primarylabel__,
"unique_id": self.unique_id,
"tldraw_snapshot": self.tldraw_snapshot,
"uuid_string": self.uuid_string,
"node_storage_path": self.node_storage_path,
"cc_username": self.cc_username,
"user_db_name": self.user_db_name,
"user_email": self.user_email,
@@ -43,8 +43,8 @@ class WorkerBaseNode(CCBaseNode):
def to_dict(self):
return {
"__primarylabel__": self.__primarylabel__,
"unique_id": self.unique_id,
"tldraw_snapshot": self.tldraw_snapshot,
"uuid_string": self.uuid_string,
"node_storage_path": self.node_storage_path,
"worker_name": self.worker_name,
"worker_email": self.worker_email,
"worker_db_name": self.worker_db_name,