class Post(models.Model): image_path = models.CharField(max_length=255) poster = models.ForeignKey(User, related_name='posts') latitude = models.DoubleField() longtitude = models.DoubleField() description = models.TextField() created_at = models.DateTimeField(auto_now_add=True)
class Conta(models.Model): descricao = models.CharField(max_length=150, verbose_name="Descrição") vencimento = models.DateField(max_length=50) valor = models.DoubleField(max_length=50) def__str__(self): return "{} ({})".format(self.nome, self.vencimento, self.valor)
class Lab_tests(models.Model): glucose = models.IntegerField() insulin = models.IntegerField() bloodPressure = models.IntegerField() skinThickness = models.IntegerField() diabetesPedigreeFunction = models.DoubleField() patient_id = models.ForeignKey(Patients, on_delete=models.CASCADE) user_id = models.ForeignKey(Users, on_delete=models.CASCADE)
class Models(models.Model): name = models.CharField(max_length=) file = models.TextField(max_length=) features = models.TextField(max_length=) accuracy = models.DoubleField() hyperparameter = models.TextField(max_length=) confusion_matrix = models.TextField(max_length=) cross_val = models.TextField(max_length=) roc_pic = models.TextField(max_length=)
class AbTestTable(models.Model): my_col1 = models.IntegerField(primary_key=True) my_col2 = models.CharField(blank=True, null=True) m3 = models.NullBooleanField() m4 = models.VarField(blank=True, null=True) # This field type is a guess. m5 = models.TextField(blank=True, null=True) # This field type is a guess. m6 = models.DoubleField(blank=True, null=True) # This field type is a guess. m7 = models.FloatField(blank=True, null=True) # This field type is a guess. m8 = models.TextField(blank=True, null=True) m9 = models.DateTimeField(blank=True, null=True) m10 = models.IntegerField(blank=True, null=True) class Meta: managed = False db_table = 'ab_test_table'
class apiWallet(models.model): """Class deals with the storage of all wallet data. Fields: refID (int): Transaction Refrence ID refTypeID (int): Type of Transaction ownerID1 (int): ID of Sender ownerID2 (int): ID of receiver amount (double): Transaction amount division (int): Wallet Division date (datetime): Date of transaction """ refID = models.IntegerField(unique=True) refTypeID = models.IntegerField() ownerID1 = models.IntegerField() ownerID2 = models.IntegerField() amount = models.DoubleField() division = models.IntegerField() date = models.DateTimeField()
class Product(models.Model): name_id = models.CharField(max_length=200) stock = models.IntegerField(default=0) price = models.DoubleField(default=0)
class Predictions(models.Model): hasDiabetes = models.DoubleField() job_id = models.ForeignKey(Jobs, on_delete=models.CASCADE) model_id = models.ForeignKey(Models, on_delete=models.CASCADE)
class Patients(models.Model): Fname = models.CharField(max_length=30) Lname = models.CharField(max_length=30) age = models.IntegerField() pregnancies = models.IntegerField() BMI = models.DoubleField()