class PipelineModule(Document): module_id = TextField() module_name = TextField() author = TextField() code_link_main = TextField() code_link_settings = TextField() code_link_html = TextField() documentation = TextField()
class P2IRC_User(Document): first_name = TextField() last_name = TextField() email = TextField() password = TextField() the_doc_type = TextField(default='p2irc_user') user_role = TextField(default='plant_scientist')
class WorkflowLockingModule(Document): doc_type = TextField(default='workflow_locking_module') workflow_id = TextField() next_module_id = IntegerField(default=1) module_nodes = ListField( DictField( Mapping.build(nodeID=TextField(), isLocked=BooleanField(), currentOwner=TextField()))) node_access_req_Q = ListField( DictField(Mapping.build(nodeID=TextField(), requestedBy=TextField())))
class Post(Document): doc_type = 'post' title = TextField() filename = TextField() location = TextField() semantic = TextField() scene = TextField() caption = TextField() published = DateTimeField(default=datetime.datetime.utcnow) @property def imgsrc(self): return uploaded_photos.url(self.filename) all = ViewField('Citizen Sensor', '''\ function (doc) { if (doc.doc_type == 'post') emit(doc.published, doc); }''', descending=True)
class Products(Document): doc_type = 'product' name = TextField() category = TextField() quantity = IntegerField()
class AppCodeClone_User(Document): user_email = TextField() user_password = TextField() user_full_name = TextField() the_doc_type = TextField(default='app_code_clone_user')
class TXL_User(Document): user_email = TextField() user_password = TextField() user_full_name = TextField() the_doc_type = TextField(default='txl_user')
class NewBooking(Document): #class for interrogating CouchDB book_name = TextField() book_email = TextField() book_date = TextField() book_time = TextField() book_confirmation = BooleanField(default=False)
class SavedPipeline(Document): pipeline_name = TextField() author = TextField() pipeline_link = TextField() the_doc_type = TextField(default='saved_pipeline') shared_with = ListField(TextField())
class CodeClones(Document): clone_id = TextField() tool = DictField(Mapping.build(id=TextField(),name=TextField())) system = DictField(Mapping.build( id=TextField(), name=TextField() )) fragment_1 = DictField(Mapping.build( path=TextField(), start_line=TextField(), end_line=TextField() )) fragment_2 = DictField(Mapping.build( path=TextField(), start_line=TextField(), end_line=TextField() )) auto_validation_result = ListField(DictField(Mapping.build( algorithm = TextField(), result = TextField() ))) is_validated_by_any_user = TextField(default='no') is_clone_doc = TextField(default='yes') user_validation_result = ListField(DictField(Mapping.build( user = TextField(), result = TextField() )))
class WorkflowLockingTurn(Document): doc_type = TextField(default='workflow_locking_turn') workflow_id = TextField() floor_flag = TextField(default='unoccupied') request_queue = ListField(TextField()) current_floor_owner = TextField()
class TaskSchema(Document): value = TextField() completed = BooleanField()