class Topic(ADT_WITH_ID): assessment_id = IntField() stakeholder_id = IntField() slug = StrField() code = StrField() name = StrField() description = StrField()
class SubQuestion(ADT_WITH_ID): sub_form_id = IntField() order = IntField() columns = IntField() slug = StrField() title = StrField() description = StrField() data_type = StrField() options = DictField(null=True)
class Aspect(ADT_WITH_ID): topic_id = IntField() order = IntField() slug = StrField() code = StrField() title = StrField() quick_description = StrField() valorative_questions = StrField() mandatory_indicators = StrField() evaluation_levels = StrField() explanatory_notes = StrField() is_negative = BoolField()
class OrganizationForUpdate(ADT): address = StrField() state = StrField() country = StrField() sector = StrField() web = StrField() description = StrField()
class Question(ADT_WITH_ID): form_id = IntField() order = IntField() slug = StrField() title = StrField() quick_description = StrField() full_description = StrField() examples = StrField() data_type = StrField() options = DictField(null=True)
class Organization(ADT_WITH_ID): name = StrField() address = StrField() state = StrField() country = StrField() sector = StrField() web = StrField() description = StrField() def edit(self, organization_for_update): self.address = organization_for_update.address self.state = organization_for_update.address self.country = organization_for_update.country self.sector = organization_for_update.address self.web = organization_for_update.address self.description = organization_for_update.address
class Assessment(ADT_WITH_ID): name = StrField() slug = StrField() version = StrField() year = StrField() description = StrField()
class Form(ADT_WITH_ID): assessment_id = IntField() stakeholder_id = IntField(null=True) slug = StrField() name = StrField() description = StrField()
class SubForm(ADT_WITH_ID): form_id = IntField() order = IntField() slug = StrField() caption = StrField() description = StrField()
class Card(ADT_WITH_ID): deck_id = IntField() title = StrField() strength = IntField() defense = IntField()
class Deck(ADT_WITH_ID): name = StrField()
class Mineral(ADT_WITH_ID): name = StrField() description = StrField() hardness = IntField()
class OrganizationForCreate(ADT): name = StrField()