class Flow(models.Model): _id = models.ObjectIdField() check_id = models.CharField(max_length=24) switch_name = models.CharField(max_length=50) priority = models.IntegerField() duration_sec = models.IntegerField() hard_timeout = models.IntegerField() byte_count = models.IntegerField() length = models.IntegerField() actions = models.EmbeddedField( model_container=Actions, ) duration_nsec = models.IntegerField() packet_count = models.IntegerField() idle_timeout = models.IntegerField() cookie = models.IntegerField() flags = models.IntegerField() table_id = models.IntegerField() match = models.EmbeddedField( model_container=Match, ) created_at = models.DateTimeField(auto_now_add=True) objects = models.DjongoManager() def __str__(self): return self.switch_name
class BiologicalProperties(models.Model): cellular_locations = models.EmbeddedField(model_container=Cellular) biospecimen_locations = models.EmbeddedField(model_container=Biospecimen) tissue_locations = models.EmbeddedField(model_container=Tissue) pathways = models.EmbeddedField(model_container=Pathway) class Meta: abstract = True
class User(models.Model): name = models.CharField(blank=False, max_length=200) email = models.EmailField(blank=False) insti_email = models.EmailField(blank=True, max_length=100) password_hash = models.CharField(blank=False, max_length=300) profile = models.EmbeddedField(blank=True, model_container=Profile) mesibo_details = models.EmbeddedField(blank=True, model_container=MesiboUser) def __str__(self): return self.name
class myCamaras(models.Model): _id = models.ObjectIdField() instalacion = models.EmbeddedField( model_container=InstalacionEmbebido, null=True, blank=True, ) nombre_camara = models.CharField(max_length=250, blank=False, default='') serial_camara = models.CharField(max_length=250, blank=False, default='') ts = models.TimeField(blank=False) fecha = models.DateField(auto_now_add=True, blank=True, null=True) zonas_camara = models.ArrayField( model_container=ZonaCamara, null=True, blank=True, ) def __unicode__(self): return self.nombre_camara def __str__(self, ): return str(self.nombre_camara) class Meta: db_table = "camaras_historico"
class EmbeddedEntry(models.Model): blog = models.EmbeddedField(model_container=EmbeddedBlog) headline = models.CharField(max_length=255) _id = models.ObjectIdField() def __str__(self): return self.headline
class Posicion(models.Model): _id = models.ObjectIdField() instalacion = models.EmbeddedField( model_container=InstalacionEmbebido, null=True, blank=True, model_form_class=InstalacionEmbebidoForm ) posicion_reloj = models.IntegerField(blank=True, default=0) color = models.CharField(max_length=20, blank=False, default='') activo = models.BooleanField(blank=False, default=True) def __unicode__(self): return self.posicion_reloj def __str__(self,): return str(self.posicion_reloj) def get_id(self): return str(self._id) class Meta: db_table = "posicion"
class Camaras(models.Model): _id = models.ObjectIdField() instalacion = models.EmbeddedField( model_container=InstalacionEmbebido, null=True, blank=True, #model_form_class=ClienteEmbebidoForm ) nombre_camara = models.CharField(max_length=250, blank=False, default='') snapshot = models.CharField(max_length=250, blank=False, default='') serial_camara = models.CharField(max_length=250, blank=False, default='') zonas_camara = models.ArrayField( model_container=ZonaCamara, null=True, blank=True, #model_form_class=AplicacionesSistemaEmbebidoForm ) activo = models.BooleanField(blank=False, default=True) def __unicode__(self): return self.nombre_camara def __str__(self, ): return str(self.nombre_camara) class Meta: db_table = "camaras"
class Exam(models.Model): name = models.CharField(max_length=50) date = models.DateField() examID = models.CharField(max_length=50) # who wrote the exam writers = models.ListField(models.CharField(max_length=30)) course = models.EmbeddedField(model_container=Course) questions = models.ArrayField(model_container=Question) subjects = models.ArrayField(model_container=Subject) objects = models.DjongoManager() def as_json(self): json_dict = dict( examID=self.examID, name=self.name, date=self.date, writers=self.writers, course=self.course.as_json(), # pylint: disable=maybe-no-member questions=list(), subjects=list()) for question in list(self.questions): json_dict['questions'].append(question.as_json()) for subject in list(self.subjects): json_dict['subjects'].append(subject.as_json()) return json_dict
class Price(models.Model): coin_id = models.CharField(max_length=10) name_kr = models.CharField(max_length=10) name_en = models.CharField(max_length=20) standard = models.EmbeddedField(model_container=Standard) target = models.ArrayField(model_container=Target) objects = models.DjongoManager()
class Valores(models.Model): _id = models.ObjectIdField() instalacion = models.EmbeddedField( model_container=InstalacionEmbebido, null=True, blank=True, model_form_class=InstalacionEmbebidoForm) descripcion = models.CharField(max_length=255, blank=False, default='') maximo_aforo = models.IntegerField(blank=True, default=0) mostrar_valor = models.CharField(max_length=255, blank=False, default='') mostrar_capacidad = models.BooleanField(blank=False, default=True) mostrar_ambar = models.BooleanField(blank=False, default=True) activo = models.BooleanField(blank=False, default=True) def __unicode__(self): return self.descripcion def __str__(self, ): return str(self.descripcion) def get_id(self): return str(self._id) class Meta: db_table = "valores"
class University(models.Model): name = models.CharField(max_length=254) address = models.EmbeddedField(model_container=Address) objects = models.DjongoManager() def str(self): return self.name
class Device(models.Model): _class = models.CharField(max_length=100) _id = models.CharField(max_length=23) communicationPort = models.CharField(max_length=23) connectionType: models.BigIntegerField(10) deviceState = models.CharField(max_length=23) deviceStatus = models.BooleanField(default=False) emailId = models.CharField(max_length=60) imagePort = models.CharField(max_length=23) imei = models.CharField(max_length=23) ipAddress = models.CharField(max_length=23) location = models.EmbeddedField(model_container=Location, default=None) macAddress = models.CharField(max_length=23) mdn = models.CharField(max_length=23) modelColor = models.NullBooleanField modelName = models.CharField(max_length=23) modelNumber = models.CharField(max_length=23) oem = models.CharField(max_length=23) oemColor = models.CharField(max_length=23) os = models.CharField(max_length=23) osVersion = models.CharField(max_length=23) serialNumber = models.CharField(max_length=23) team = models.CharField(max_length=23) user = models.ForeignKey(DeviceUser, on_delete=models.SET_NULL, null=True, blank=True) videoStreamingPort = models.CharField(max_length=23)
class Entry(models.Model): blog = models.EmbeddedField(model_container=Blog, ) headline = models.CharField(max_length=255) objects = models.DjongoManager() def __str__(self): return str(self.blog) + str(self.headline)
class ImageEmbed(models.Model): image_name = models.EmbeddedField( Image, ) def __str__(self): return self.image_name
class order_abs(models.Model): order_id = models.IntegerField() buyer_id = models.IntegerField() product_id = models.IntegerField() date_of_order = models.DateTimeField() told_date_of_order = models.DateTimeField() date_of_delivery = models.DateTimeField() order_details = models.EmbeddedField( model_container=order_details_abs, model_form_class=order_details_abs_form) quantity = models.IntegerField(null=False) total_price = models.TextField() payment_status = models.BooleanField(default=False) delivery_status = models.BooleanField(default=False) loan_status = models.BooleanField(default=False) loan_amount = models.IntegerField(default=None) cancel_status = models.BooleanField(default=False) cancel_date = models.DateTimeField() class Meta: abstract = True
class SubjectModel(models.Model): _id = models.ObjectIdField() name = models.CharField(max_length=100) genre = models.CharField(max_length=50) date_created = models.DateTimeField(default=now) author = models.EmbeddedField(model_container=Authors) objects = models.DjongoManager()
class order(models.Model): buyer = models.ForeignKey(buyers, on_delete=models.CASCADE, related_name='buyer_id_order') product = models.ForeignKey(product, on_delete=models.SET_NULL, null=True, related_name='product_id_order') date_of_order = models.DateTimeField() told_date_of_order = models.DateTimeField() date_of_delivery = models.DateTimeField() order_details = models.EmbeddedField( model_container=order_details_abs, model_form_class=order_details_abs_form) quantity = models.IntegerField(null=False) total_price = models.TextField() payment_status = models.BooleanField(default=False) delivery_status = models.BooleanField(default=False) loan_status = models.BooleanField(default=False) loan_amount = models.IntegerField(default=None) cancel_status = models.BooleanField(default=False) cancel_date = models.DateTimeField() objects = models.DjongoManager()
class Site(models.Model): sitename = models.CharField(max_length=200) sitedisplayname = models.CharField(max_length=200, blank=True) organizationname = models.CharField(max_length=200, blank=True) sitedescription = models.TextField(blank=True) siteauthor = models.CharField(max_length=200, blank=True) facebookurl = models.TextField(blank=True) twitterusername = models.CharField(max_length=200, blank=True) linkedinurl = models.TextField(blank=True) searchroute = models.TextField(blank=True) logoroute = models.TextField(blank=True) logowidth = models.IntegerField(default=104) logoheight = models.IntegerField(default=39) templateid = models.IntegerField() sitemetas = models.TextField(blank=True) sitelinks = models.TextField(blank=True) sitescripts = models.TextField(blank=True) sitestyle = models.TextField(blank=True) siteheader = models.TextField(blank=True) sitefooter = models.TextField(blank=True) sitenotes = models.TextField(blank=True) blogcategory = models.CharField(max_length=200, blank=True) national = models.BooleanField(default=True) shortcodes = models.ArrayField(model_container=Shortcode, model_form_class=ShortcodeForm, blank=True) location = models.EmbeddedField(model_container=Location, model_form_class=LocationForm, blank=True) pages = models.ArrayField(model_container=Page, model_form_class=PageForm) objects = models.DjongoManager()
class MatchContent(models.Model): match = models.EmbeddedField(model_container=MatchModel, null=False) match_image = models.FileField(blank=True) match_keyword = models.CharField(max_length=255) match_definition = models.TextField() objects = models.DjongoManager()
class Expense(models.Model): category = models.CharField(max_length=50) amunt = models.DecimalField(max_digits=5, decimal_places=2,blank=True,null=True) price = models.PositiveIntegerField(blank=True , null=True) array = models.ArrayField(model_container=ArrayFieldModel) embedded = models.EmbeddedField(model_container=EmbeddedFieldModel) imgs = models.JSONField(default=[])
class Disease(models.Model): name = models.TextField('Name', max_length=200) omim_id = models.PositiveIntegerField('Omim ID', max_length=20) references = models.EmbeddedField(model_container=ReferenceArray) class Meta: abstract = True
class Display(models.Model): _id = models.ObjectIdField() instalacion = models.EmbeddedField( model_container=InstalacionEmbebido, null=True, blank=True, model_form_class=InstalacionEmbebidoForm ) descripcion = models.CharField(max_length=255, blank=False, default='') valores = models.EmbeddedField( model_container=ValoresEmbebido, null=True, blank=True, model_form_class=ValoresEmbebidoForm ) fondos = models.EmbeddedField( model_container=FondosEmbebido, null=True, blank=True, model_form_class=FondosEmbebidoForm ) posicion = models.EmbeddedField( model_container=PosicionEmbebido, null=True, blank=True, model_form_class=PosicionEmbebidoForm ) espacios = models.EmbeddedField( model_container=EspaciosEmbebido, null=True, blank=True, model_form_class=EspaciosEmbebidoForm ) activo = models.BooleanField(blank=False, default=True) def __unicode__(self): return self.descripcion def __str__(self,): return str(self.descripcion) def get_id(self): return str(self._id) class Meta: db_table = "display"
class GithubEmbed(models.Model): name = models.CharField(max_length=200) image = models.EmbeddedField( model_container=GitHub, ) def __str__(self): return self.name
class MsMs(models.Model): collection_date = models.DateField('Collection date') collision_energy_level = models.TextField('Collision energy level', max_length=20) collision_energy_voltage = models.PositiveSmallIntegerField('Collision energy voltage') created_at = models.DateTimeField('Created at') database_id = models.TextField('Database id', max_length=20) # Energy field is null everywhere energy_field = models.TextField('Energy field', max_length=20, blank=True) id = models.PositiveIntegerField('Spectrum id') instrument_type = models.TextField('Instrument type', max_length=50) ionization_mode = models.TextField('Ionization mode', max_length=10) # Mono mass is null everywhere mono_mass = models.FloatField('Mono mass') ms_ms_peaks = models.EmbeddedField( model_container=MsMsPeakArray, blank=True ) notes = models.TextField('Notes', max_length=1000) peak_counter = models.PositiveIntegerField('Peak count') predicted = models.BooleanField('Is predicted?', default=False) references = models.EmbeddedField( model_container=ReferenceArray, blank=True ) sample_assessment = models.TextField('Sample assessment', max_length=20) sample_concentration = models.FloatField('Sample concentration') sample_concentration_units = models.TextField('Sample concentration units', max_length=10) sample_mass = models.FloatField('Sample mass') sample_mass_units = models.TextField('Sample mass units', max_length=10) # Sample source is null everywhere sample_source = models.TextField('Sample source', max_length=50) # Solvent is null everywhere solvent = models.TextField('Solvent', max_length=50) spectra_assessment = models.TextField('Spectra assessment', max_length=50) splash_key = models.TextField('Splash key', max_length=100) structure_id = models.PositiveIntegerField('Structure id') updated_at = models.DateTimeField('Updated at') class Meta: abstract = True
class Entry(models.Model): blog = models.EmbeddedField(model_container=Blog, model_form_class=BlogForm) meta_data = models.EmbeddedField(model_container=MetaData, model_form_class=MetaDataForm) headline = models.CharField(max_length=255) body_text = models.TextField() authors = models.ArrayReferenceField( to=Author, on_delete=models.CASCADE, ) n_comments = models.IntegerField() def __str__(self): return self.headline
class Departamento(models.Model): _id = models.CharField(max_length=10) direcion = models.CharField(max_length=1000) capacidad = models.IntegerField() Inventario = models.EmbeddedField(model_container=Inventario) def _str_(self): return self._id
class StopTrip(models.Model): trip_id = models.CharField(max_length=30, blank=False, primary_key=True) route_id = models.CharField(max_length=30, blank=False, default='') route_name = models.CharField(max_length=70, blank=False, default='') arrival_time = models.DateTimeField() destination = models.CharField(max_length=200, blank=False, default='') delay = models.IntegerField(blank=False, default=0) delay_delta = models.IntegerField(blank=False, default=0) location = models.EmbeddedField(model_container=Location)
class Promocion(models.Model): descripcion = models.CharField(default='', blank=True, max_length=200, verbose_name="DescripciĆ³n") productos = models.EmbeddedField(verbose_name="", model_container=ProductosPromocion) precio_promocional = models.PositiveIntegerField( default='', blank=False, verbose_name="Precio promocional")
class Entry(models.Model): blog = models.EmbeddedField(model_container=Blog, model_form_class=BlogForm) headline = models.CharField(max_length=255) authors = models.ArrayField(model_container=Author, model_form_class=AuthorForm) objects = models.DjongoManager()
class Taxonomy(models.Model): description = models.TextField('Description', max_length=1000) direct_parent = models.TextField('Direct parent', max_length=100) kingdom = models.TextField('Kingdom', max_length=100) super_class = models.TextField('Super class', max_length=100) main_class = models.TextField('Class', max_length=100) sub_class = models.TextField('Sub class', max_length=100) molecular_framework = models.TextField('Molecular framework', max_length=100) alternative_parents = models.EmbeddedField( model_container=AlternativeParents) substituents = models.EmbeddedField(model_container=SubstituentArray) external_descriptors = models.EmbeddedField( model_container=ExternalDescriptorsArray) class Meta: abstract = True