From afd417c728775b62edf446c53a316d2dd34d4001 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Fri, 13 Nov 2020 01:14:23 -0300 Subject: [PATCH] app --- TiendaOnline/gestionPedidos/apps.py | 5 +++++ TiendaOnline/gestionPedidos/models.py | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 TiendaOnline/gestionPedidos/apps.py create mode 100644 TiendaOnline/gestionPedidos/models.py 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() + +