Exemple #1
0
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={''})
Exemple #2
0
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
Exemple #3
0
class Aluno(models.model)
    nome= models.Charfield(
        max_length=255,

    )
    idade = models.Integerfield()
        (
        max_length=255,
    )
Exemple #4
0
class square(models.model):
    number = models.Integerfield()
    sqr = models.Integerfield()
Exemple #5
0
	
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():

Exemple #6
0
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)
Exemple #7
0
class stock(models.Model):
    product = models.ForeignKey(product)
    stock = models.Integerfield(
        help_text="Ingrese la cantidad de productos existentes")
Exemple #8
0
class stock (models.Model):
    product=models.Foreignkey(producto)
    stock=models.Integerfield(held_text='Ingrese la cantidad de platillos:')
Exemple #9
0
class Product(models.Model):
    name = models.Charfield(max_length=255)
    price = models.Floatfield()
    stock = models.Integerfield()
    image url
Exemple #10
0
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()