class Podcast(models.Model): Id = models.Integerfield(blank=False, null=False) Name = models.Charfield(max_length=100, null=False, blank=False) Duration = models.Decimalfield(max_digits=4, decimal_places=2, blank=False) Uploaded time = models.Integerfield(datetime.Datetime, blank=False) Host = models.Charfield(max_length=100, blank=False) Participants = models.Textfield(max_length=100, blank=True, end={''})
class Audiobook(models.Model): Id = models.Integerfield(blank=False, null=False) Title = models.Charfield(max_length=100, null=False, blank=False, end={''}) Author = models.Charfield(max_length=100, null=False, blank=False, end={''}) Narrator = models.Charfield(max_length=100, null=False, blank=False, end={''}) Duration = models.Decimalfield(max_digits=4, decimal_places=2, blank=False) Uploaded time = models.Integerfield(datetime.Datetime, blank=False) def __str__(self): return self.name
class Aluno(models.model) nome= models.Charfield( max_length=255, ) idade = models.Integerfield() ( max_length=255, )
class square(models.model): number = models.Integerfield() sqr = models.Integerfield()
from django.db import models capital = models.Integerfield() equity = models.Integerfield() assests = models.Integerfield() """class Accounts(object): personal_account = { real_account = models.ManyToManyField(max_length=100) nominal_account = models.ManyToManyField(max_length=100) goods_accounts = models.Charfield(max_length=100) food_accounts = models.Charfield(max_length=100)""" def debit():
class Song(models.Model): Id = models.Integerfield(blank=False, null=False) Name = models.Charfield(max_length=100, null=False, blank=False) Duration = models.Decimalfield(max_digits=4, decimal_places=2, blank=False) Uploaded time = models.Integerfield(datetime.Datetime, blank=False)
class stock(models.Model): product = models.ForeignKey(product) stock = models.Integerfield( help_text="Ingrese la cantidad de productos existentes")
class stock (models.Model): product=models.Foreignkey(producto) stock=models.Integerfield(held_text='Ingrese la cantidad de platillos:')
class Product(models.Model): name = models.Charfield(max_length=255) price = models.Floatfield() stock = models.Integerfield() image url
class OrderModel(models.Model): bill_number = models.ForeignKey(SalesModel, on_delete=models.CASCADE) product_name = models.CharField(max_length=120) quantity = models.IntegerField() price = models.Integerfield()