diff --git a/TiendaOnline/gestionPedidos/apps.py b/TiendaOnline/gestionPedidos/apps.py new file mode 100644 index 0000000..92acb68 --- /dev/null +++ b/TiendaOnline/gestionPedidos/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class GestionpedidosConfig(AppConfig): + name = 'gestionPedidos' diff --git a/TiendaOnline/gestionPedidos/models.py b/TiendaOnline/gestionPedidos/models.py new file mode 100644 index 0000000..b12367c --- /dev/null +++ b/TiendaOnline/gestionPedidos/models.py @@ -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() + +