CREATE TABLE public.credito ( idpago integer, numdetarjeta integer, tipo character varying(100), fechaexpira character varying(100), nombrepersona character varying(100) )
CREATE TABLE public.orden ( idorden integer NOT NULL, hora integer, mesero character varying(50), CONSTRAINT orden_pkey PRIMARY KEY (idorden) ) Creacin tabla pago: CREATE TABLE public.pago ( idpago integer NOT NULL, subtotal integer, propina integer, impuesto integer, CONSTRAINT pago_pkey PRIMARY KEY (idpago) )
Creacin de la tabla platillo:
CREATE TABLE public.platilla ( idplatillo integer NOT NULL, cantidad integer, tipo character varying(50), CONSTRAINT platilla_pkey PRIMARY KEY (idplatillo) ) Registros de ORDENES
Registro de CLIENTES Registro de BEBIDAS
Registro de PLATILLOS
MONGO DB
Mostrar todas las Collections
Mostrar todos los Platillos
Mostrar todas las bedidas.
Mostrar todos los clientes.
Mostrar todos rdenes.
Insertar datos en cliente:
Db.Cliente.insert({Mesa:1,Comensales:2}); Insertar datos rdenes: Db.Orden.insert({Hora:9,Mesero:ale}); Inserta datos de bedidas: Db.Bedidas,insert({Cantidad:3,Tipo:Gaseosa}); Inserta datos platillos: Db.Platillos.insert({Cantidad:3,Tipo:Frijol})