app
This commit is contained in:
parent
cec2d7813b
commit
afd417c728
5
TiendaOnline/gestionPedidos/apps.py
Normal file
5
TiendaOnline/gestionPedidos/apps.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class GestionpedidosConfig(AppConfig):
|
||||||
|
name = 'gestionPedidos'
|
22
TiendaOnline/gestionPedidos/models.py
Normal file
22
TiendaOnline/gestionPedidos/models.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
|
||||||
|
class Clientes(models.Model):
|
||||||
|
nombre = models.CharField(max_length=30)
|
||||||
|
direccion = models.CharField(max_length=50)
|
||||||
|
email = models.EmailField()
|
||||||
|
fono = models.CharField(max_length=10)
|
||||||
|
|
||||||
|
|
||||||
|
class Articulos(models.Model):
|
||||||
|
nombre = models.CharField(max_length=30)
|
||||||
|
seccion = models.CharField(max_length=20)
|
||||||
|
precio = models.IntegerField()
|
||||||
|
|
||||||
|
|
||||||
|
class Pedidos (models.Model):
|
||||||
|
numero = models.IntegerField()
|
||||||
|
fecha = models.DateField()
|
||||||
|
entregado = models.BooleanField()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user