class UpdateClientInput(InputObjectType): email = String(required=True) password = String() type = String() is_active = Boolean() is_staff = Boolean() is_superuser = Boolean() last_login = String()
class CreateClientInput(InputObjectType): """ Clase que encapsula los datos necesarios para la creacion de clientes """ email = String(required=True) password = String(required=True) type = String(required=True) is_active = Boolean(required=True) is_staff = Boolean(required=True) is_superuser = Boolean(required=True) last_login = String()
class UpdateClientInput(InputObjectType): """ Clase que encapsula los datos necesarios para la actualización de cliente """ id = ID(required=True) password = String() is_active = Boolean()
class SaveStudentData(Mutation): class Arguments: name = String() age = Int() studentid = Int() ok = Boolean() def mutate(self, info, name, age, studentid): ok = False return SaveStudentData(ok=ok)
class CreateEnterpriseInput(InputObjectType): """ Clase que encapsula los datos necesarios para la creación de establecimientos """ name = String(required=True) historical_review = String() location = String(required=True) business_hours = String() status = Boolean() # Relaciones image_id = ID()
class CreateClientInput(InputObjectType): """ Clase que encapsula los datos necesarios para la creacion de clientes """ email = String(required=True) password = String(required=True) is_alternative = Boolean(required=True) names = String(required=True) lastnames = String(required=True) location = String(required=True) telephone = String(required=True) license_plate = String()