From 37c6cf1e422bb2e76bc451d282c5891b26059fd3 Mon Sep 17 00:00:00 2001 From: San Date: Sun, 1 Oct 2023 22:10:58 +0300 Subject: [PATCH] Added Orders --- .../pandas_to_postgresql-checkpoint.ipynb | 401 ++++++++ doc/pandas_to_postgresql.ipynb | 900 +----------------- frontend/src/lib/ItemTable.svelte | 6 +- .../src/lib/{ItemForm.svelte => Order.svelte} | 144 +-- frontend/src/lib/OrderItem.svelte | 86 ++ frontend/src/routes/Home.svelte | 55 +- src/handler.rs | 109 +-- src/model.rs | 19 +- src/schema.rs | 12 +- 9 files changed, 714 insertions(+), 1018 deletions(-) create mode 100644 doc/.ipynb_checkpoints/pandas_to_postgresql-checkpoint.ipynb rename frontend/src/lib/{ItemForm.svelte => Order.svelte} (71%) create mode 100644 frontend/src/lib/OrderItem.svelte diff --git a/doc/.ipynb_checkpoints/pandas_to_postgresql-checkpoint.ipynb b/doc/.ipynb_checkpoints/pandas_to_postgresql-checkpoint.ipynb new file mode 100644 index 0000000..c1db7bf --- /dev/null +++ b/doc/.ipynb_checkpoints/pandas_to_postgresql-checkpoint.ipynb @@ -0,0 +1,401 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 21, + "id": "paperback-berry", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Requirement already satisfied: pandas==1.1.5 in c:\\python39\\lib\\site-packages (1.1.5)\n", + "Requirement already satisfied: SQLAlchemy==1.4.45 in c:\\python39\\lib\\site-packages (1.4.45)\n", + "Requirement already satisfied: pytz>=2017.2 in c:\\python39\\lib\\site-packages (from pandas==1.1.5) (2023.3.post1)\n", + "Requirement already satisfied: numpy>=1.15.4 in c:\\python39\\lib\\site-packages (from pandas==1.1.5) (1.26.0)\n", + "Requirement already satisfied: python-dateutil>=2.7.3 in c:\\python39\\lib\\site-packages (from pandas==1.1.5) (2.8.2)\n", + "Requirement already satisfied: greenlet!=0.4.17 in c:\\python39\\lib\\site-packages (from SQLAlchemy==1.4.45) (2.0.2)\n", + "Requirement already satisfied: six>=1.5 in c:\\python39\\lib\\site-packages (from python-dateutil>=2.7.3->pandas==1.1.5) (1.16.0)\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "\n", + "[notice] A new release of pip is available: 23.0 -> 23.2.1\n", + "[notice] To update, run: python.exe -m pip install --upgrade pip\n" + ] + } + ], + "source": [ + "!pip install pandas==1.1.5 SQLAlchemy==1.4.45" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "addressed-housing", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Engine(postgresql+psycopg2://sganis:***@ep-rough-butterfly-86904001.eu-central-1.aws.neon.tech/neondb?schema=public)" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import pandas as pd\n", + "import os\n", + "import psycopg2 as pg\n", + "from sqlalchemy import create_engine\n", + "\n", + "DATABASE_URL='postgresql+psycopg2://sganis:c74GKNsDyBfW@ep-rough-butterfly-86904001.eu-central-1.aws.neon.tech/neondb?schema=public'\n", + "engine = create_engine(DATABASE_URL)\n", + "engine" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "corporate-palmer", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
iddatecustomerproductquantitypricedeleted
062019-01-04JOYA140False
172019-01-10IVANA6150False
282019-01-10IVANB250False
392019-01-10IVANC10300False
4142019-02-07PASADOREB10False
........................
8288432021-11-01LAURAB5300False
8298442021-11-01LAURAW1150False
8308452021-12-01OSCARG2280False
8318462021-12-01OSCARV2220False
8328472021-12-01OSCARA8560False
\n", + "

833 rows × 7 columns

\n", + "
" + ], + "text/plain": [ + " id date customer product quantity price deleted\n", + "0 6 2019-01-04 JOY A 1 40 False\n", + "1 7 2019-01-10 IVAN A 6 150 False\n", + "2 8 2019-01-10 IVAN B 2 50 False\n", + "3 9 2019-01-10 IVAN C 10 300 False\n", + "4 14 2019-02-07 PASADORE B 1 0 False\n", + ".. ... ... ... ... ... ... ...\n", + "828 843 2021-11-01 LAURA B 5 300 False\n", + "829 844 2021-11-01 LAURA W 1 150 False\n", + "830 845 2021-12-01 OSCAR G 2 280 False\n", + "831 846 2021-12-01 OSCAR V 2 220 False\n", + "832 847 2021-12-01 OSCAR A 8 560 False\n", + "\n", + "[833 rows x 7 columns]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "path = fr'C:\\Users\\San\\Downloads\\pyme.csv'\n", + "data = pd.read_csv(path)\n", + "data" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "id": "surprising-masters", + "metadata": {}, + "outputs": [ + { + "ename": "TypeError", + "evalue": "__init__() got multiple values for argument 'schema'", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)", + "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mdata\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mto_sql\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'pyme'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mengine\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mif_exists\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m'replace'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mschema\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m'public'\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mindex\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mFalse\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", + "\u001b[1;32mc:\\python39\\lib\\site-packages\\pandas\\core\\generic.py\u001b[0m in \u001b[0;36mto_sql\u001b[1;34m(self, name, con, schema, if_exists, index, index_label, chunksize, dtype, method)\u001b[0m\n\u001b[0;32m 2776\u001b[0m \u001b[0mCoordinates\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 2777\u001b[0m \u001b[1;33m*\u001b[0m \u001b[0mindex\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mindex\u001b[0m\u001b[1;33m)\u001b[0m \u001b[0mint64\u001b[0m \u001b[1;36m0\u001b[0m \u001b[1;36m1\u001b[0m \u001b[1;36m2\u001b[0m \u001b[1;36m3\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 2778\u001b[1;33m \u001b[0mData\u001b[0m \u001b[0mvariables\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2779\u001b[0m \u001b[0mname\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mindex\u001b[0m\u001b[1;33m)\u001b[0m \u001b[0mobject\u001b[0m \u001b[1;34m'falcon'\u001b[0m \u001b[1;34m'parrot'\u001b[0m \u001b[1;34m'lion'\u001b[0m \u001b[1;34m'monkey'\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 2780\u001b[0m \u001b[1;32mclass\u001b[0m \u001b[1;33m(\u001b[0m\u001b[0mindex\u001b[0m\u001b[1;33m)\u001b[0m \u001b[0mobject\u001b[0m \u001b[1;34m'bird'\u001b[0m \u001b[1;34m'bird'\u001b[0m \u001b[1;34m'mammal'\u001b[0m \u001b[1;34m'mammal'\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32mc:\\python39\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36mto_sql\u001b[1;34m(frame, name, con, schema, if_exists, index, index_label, chunksize, dtype, method)\u001b[0m\n\u001b[0;32m 579\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 580\u001b[0m \u001b[0mpandas_sql\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mpandasSQL_builder\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcon\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mschema\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mschema\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 581\u001b[1;33m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 582\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mSeries\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 583\u001b[0m \u001b[0mframe\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mframe\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mto_frame\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32mc:\\python39\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36mpandasSQL_builder\u001b[1;34m(con, schema, meta, is_cursor)\u001b[0m\n\u001b[0;32m 655\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0m_is_sqlalchemy_connectable\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcon\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 656\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0mSQLDatabase\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcon\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mschema\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mschema\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmeta\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mmeta\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 657\u001b[1;33m \u001b[1;32melif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcon\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstr\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 658\u001b[0m \u001b[1;32mraise\u001b[0m \u001b[0mImportError\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"Using URI string without sqlalchemy installed.\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 659\u001b[0m \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;32mc:\\python39\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36m__init__\u001b[1;34m(self, engine, schema, meta)\u001b[0m\n\u001b[0;32m 1146\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 1147\u001b[0m \u001b[0mmeta\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mMetaData\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mconnectable\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mschema\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mschema\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1148\u001b[1;33m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 1149\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmeta\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mmeta\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 1150\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;31mTypeError\u001b[0m: __init__() got multiple values for argument 'schema'" + ] + } + ], + "source": [ + "data.to_sql('pyme', engine, if_exists='replace', schema='public', index=False)" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "fiscal-slovakia", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Requirement already satisfied: pandas in c:\\python39\\lib\\site-packages (2.1.1)\n", + "Requirement already satisfied: numpy>=1.22.4 in c:\\python39\\lib\\site-packages (from pandas) (1.26.0)\n", + "Requirement already satisfied: tzdata>=2022.1 in c:\\python39\\lib\\site-packages (from pandas) (2023.3)\n", + "Requirement already satisfied: python-dateutil>=2.8.2 in c:\\python39\\lib\\site-packages (from pandas) (2.8.2)\n", + "Requirement already satisfied: pytz>=2020.1 in c:\\python39\\lib\\site-packages (from pandas) (2023.3.post1)\n", + "Requirement already satisfied: six>=1.5 in c:\\python39\\lib\\site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0)\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "\n", + "[notice] A new release of pip is available: 23.0 -> 23.2.1\n", + "[notice] To update, run: python.exe -m pip install --upgrade pip\n" + ] + } + ], + "source": [ + "!pip install pandas -U" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "progressive-potato", + "metadata": {}, + "outputs": [], + "source": [ + "path = fr'C:\\Users\\San\\Downloads\\pyme.csv'" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "unlikely-department", + "metadata": { + "scrolled": false + }, + "outputs": [ + { + "ename": "NameError", + "evalue": "name 'order' is not defined", + "output_type": "error", + "traceback": [ + "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)", + "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[0mprev_cust\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 6\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 7\u001b[1;33m \u001b[0morder\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 8\u001b[0m \u001b[0mitems\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;33m[\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 9\u001b[0m \u001b[0morder_id\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", + "\u001b[1;31mNameError\u001b[0m: name 'order' is not defined" + ] + } + ], + "source": [ + "with open(path) as r:\n", + " next(r)\n", + " prev_order_id = None\n", + " prev_date = None\n", + " prev_cust = None\n", + " \n", + " items = []\n", + " order_id = 1\n", + " \n", + " for line in r:\n", + " f = line.split(',')\n", + " date = f[1]\n", + " cust = f[2]\n", + " prod = f[3]\n", + " qty = f[4]\n", + " price = f[5]\n", + " \n", + " if prev_date == date and prev_cust == cust:\n", + " order = [date, cust]\n", + " items.append([prod,qty,price])\n", + " else:\n", + " date = order[0]\n", + " cust = order[1]\n", + " price = sum([i[2] for i in items])\n", + " print(f\"insert into pyme_order (id,date,customer,price) values ({order_id},'{date}','{cust}',{price});\")\n", + "\n", + " for i in items:\n", + " prod = i[0]\n", + " qty = i[1]\n", + " price = i[2]\n", + " print(f\"insert into pyme_order_item (order_id,product,quantity) values ({order_id},'{prod}',{qty},{price});\")\n", + " order_id += 1\n", + " \n", + " prev_date = date\n", + " prev_cust = cust\n", + " \n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "previous-beaver", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.10" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/doc/pandas_to_postgresql.ipynb b/doc/pandas_to_postgresql.ipynb index 0fe31b1..830194f 100644 --- a/doc/pandas_to_postgresql.ipynb +++ b/doc/pandas_to_postgresql.ipynb @@ -35,7 +35,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 1, "id": "addressed-housing", "metadata": {}, "outputs": [ @@ -45,7 +45,7 @@ "Engine(postgresql+psycopg2://sganis:***@ep-rough-butterfly-86904001.eu-central-1.aws.neon.tech/neondb?schema=public)" ] }, - "execution_count": 22, + "execution_count": 1, "metadata": {}, "output_type": "execute_result" } @@ -63,7 +63,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 2, "id": "corporate-palmer", "metadata": {}, "outputs": [ @@ -230,7 +230,7 @@ "[833 rows x 7 columns]" ] }, - "execution_count": 23, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -301,868 +301,68 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 25, "id": "progressive-potato", "metadata": {}, "outputs": [], "source": [ - "path = fr'C:\\Users\\San\\Downloads\\pyme.csv'" + "path = fr'C:\\Users\\San\\Downloads\\pyme.csv'\n", + "path_output = fr'C:\\Dev\\pyme\\doc\\pyme_data.sql'" ] }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 26, "id": "unlikely-department", "metadata": { "scrolled": false }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-01-04','JOY','A',1,40,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-01-10','IVAN','A',6,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-01-10','IVAN','B',2,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-01-10','IVAN','C',10,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-02-07','PASADORE','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-02-07','PASADORE','C',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-02-16','BIBIANA','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-02-16','BIBIANA','B',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-02-16','BIBIANA','C',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-02-28','EVERLYN','B',2,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-03-14','JIMMY','B',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-03-14','JIMMY','C',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-01','JOY','A',3,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-11','JIMMY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-11','JIMMY','C',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-11','JOY','A',2,80,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-11','MEJICANA','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-15','HENRY','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-15','HENRY','C',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-17','JOY','A',1,40,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-17','IVAN4','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-20','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-20','JOY','B',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-20','JOY','C',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-26','HENRY','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-26','IVAN4','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-26','ZUNINO','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-04-26','ZUNINO','C',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-03','HENRY','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-06','JOY','A',1,40,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-07','HENRY','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-09','IVAN4','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-12','LOUIS','A',2,90,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-15','LOUIS','A',1,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-17','MARIANA','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-17','MARIANA','C',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-19','IVAN4','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-21','LUPE','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-24','IVAN4','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-24','IVAN4','B',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-24','IVAN4','C',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-05-28','JOY','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-06-23','ZUNINO','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-06-23','ZUNINO','C',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-08-25','IVAN4','A',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-08-25','HENRY','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-08-25','JIMMY','C',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-08-25','PABLO','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-08-25','RUBEN','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-03','IVAN4','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-03','IVAN4','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-03','IVAN4','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-12','BIBIANA','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-12','BIBIANA','C',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-12','IVAN4','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-19','JACKY','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-19','IVAN4','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-19','EDGAR','A',12,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-19','IVAN4','A',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-28','IVAN4','A',3,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-28','HENRY','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-09-30','IVAN','A',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-01','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-01','JOY','B',2,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-03','JOY','A',1,40,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-03','JACKY','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-03','JACKY','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-15','JOY','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-15','JOY','B',2,80,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-15','JOY','C',2,80,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-15','JOY','A',1,45,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-15','JOY','B',2,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-10-28','HENRY','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-04','LAURA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-11','EDGAR F','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-11','EDGAR','A',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-11','ANDINO','A',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-13','NAYI','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-13','MORIA','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-13','LAURA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-13','JIMMY','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-13','JIMMY','C',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-15','LAURA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-21','LAURA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-21','JOY','A',2,80,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-21','JOY','B',1,40,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-26','JAIRO','A',3,18,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-26','JAIRO','C',2,12,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-26','JAIRO','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-28','ZUNINO','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-28','ZUNINO','C',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-28','BIBIANA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-28','BIBIANA','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-30','MARIFE','A',10,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-11-30','MARIFE','W',5,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-03','LAURA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-04','LAURA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-05','BIBIANA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-05','BIBIANA','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-12','JOY','A',5,225,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-16','JIMMY','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-16','JIMMY','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-16','JOY','A',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-16','LAURA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-19','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-20','NAYI','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-20','NAYI','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-21','MARITZA','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-21','MARITZA','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-21','BIBIANA','A',9,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-21','BIBIANA','C',9,525,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-30','TITA INA','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-30','NAYI','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-31','BIBIANA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2019-12-31','BIBIANA','C',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-01-05','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-01-16','ALEJANDRA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-01-29','LUIS G','C',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-01-15','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-05','JIMMY','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-05','JIMMY','C',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-06','BIBIANA','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-06','BIBIANA','C',9,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-06','ANDINO','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-07','BIBIANA','C',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-18','JIMMY','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-18','JIMMY','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-20','BIBIANA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-20','BIBIANA','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','BIBIANA','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','YUVI','A',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','YUVI','W',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','YUVI','B',2,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','YUVI','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','YUVI','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-26','YUVI','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-28','JACKY','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-28','JACKY','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-29','LAURA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-02-29','HENRY','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-05','LUPE','W',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-05','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-05','LAURA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-09','ANWAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-10','JIMMY','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-13','BIBIANA','B',9,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-11','JOY','A',5,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-11','ALEJANDRA','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-11','NAYI','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-11','BIBIANA','A',7,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-11','LAURA','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','LUIS G','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','JIMMY','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','BIBIANA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','BIBIANA','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','ANDINO','A',3,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','JOY','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','ALEJANDRA','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-03-16','NAYI','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','BIBIANA','A',15,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','BIBIANA','C',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','ANDINO','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','LUIS G','C',9,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','NAYI','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','IVAN','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','IVAN','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','JIMMY','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','JIMMY','C',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','ZUNINO','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','JOY','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','ALEJANDRA','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','ALEJANDRA','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-04-17','MARIFE','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','BIBIANA','C',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','BIBIANA','B',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','NAYI','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','VERONICA V','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','VERONICA V','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','JAIRO','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','JOY','A',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','VERONICA A','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','VERONICA A','C',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','ALEJANDRA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','ALEJANDRA','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','NAYI','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','LUIS G','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','LUIS G','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','VERONICA V','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','VERONICA V','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','BIBIANA','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','BIBIANA','B',5,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','BIBIANA','C',5,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','NAYI','B',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','NAYI','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','ALEJANDRA','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-05-08','ALEJANDRA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','HENRY','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','IVAN','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','LUIS G','C',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','LUIS G','A',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','LAURA','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','HENRY','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','ZUNINO','A',3,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','ZUNINO','C',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','ANWAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','JIMMY','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','JIMMY','C',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','VERONICA A','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','VERONICA A','C',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','JIMMY','B',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','ALEJANDRA','B',3,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','ALEJANDRA','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','ANWAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','EVAN','A',18,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','LAURA','W',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','NAUDEEP','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','BIBIANA','C',15,750,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','JACKI','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','JACKI','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','BIBIANA','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','BIBIANA','B',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','BIBIANA','C',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-06-02','HENRY','W',5,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','JOY','W',1,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','JOY','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','JAIRO','A',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','LAURA','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','VERONICA V','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ALEJANDRA','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ALEJANDRA','B',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','CRISTINA','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVERLYN','V',1,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVERLYN','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ANWAR','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ANWAR','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','MARIFE','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','MARIFE','B',4,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','NAYI','W',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ZUNINO','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ZUNINO','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVERLYN','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ANWAR','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ANWAR','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVERLYN','A',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','LUIS G','C',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','LUIS G','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','VERONICA V','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','LAURA','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','BIBIANA','A',12,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','BIBIANA','C',12,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVERLYN','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','JAIRO','W',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','JAIRO','A',2,110,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVAN','A',18,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','VERONICA V','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','VERONICA V','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','VERONICA V','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','NAYI','W',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','MARIFE','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','IVAN','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','IVAN','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','IVAN','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ZUNINO','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','ZUNINO','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','EVERLYN','B',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-07-02','HENRY','W',2,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','EVERLYN','B',3,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','LAURA','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ANWAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ANWAR','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ALBINA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','JIMMY','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','JIMMY','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','JIMMY','C',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','LUIS G','C',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','RUBEN','A',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','RUBEN','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ANWAR','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ANWAR','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','VERONICA V','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','OSCAR','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ALEJANDRA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ALEJANDRA','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','EVERLYN','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','LULIA','A',6,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ZAPICO','A',6,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','ANDINO','W',4,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','BIBIANA','V',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-08-13','BIBIANA','C',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','HENRY','A',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','HENRY','W',4,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','IVAN','C',7,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','IVAN','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','HENRY','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','OSCAR','B',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','OSCAR','B',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JUANI','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JUANI','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JUANI','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JUANI','V',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JUANI','G',3,450,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','BIBIANA','C',20,1000,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','DONA','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','EVAN','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','EVAN','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ALEX','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ALEX','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ANWAR','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ALEX','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ALEX','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','EVERLYN','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','MAYA','B',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','MAYA','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','MAYA','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ALEJANDRA','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','KATY','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','KATY','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','VERONICA V','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','VERONICA V','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','IVAN','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','LUIS G','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JAIRO','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','JAIRO','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','MARIFE','B',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','LULIA','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','ALEX','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','EVAN','A',15,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','MARIFE','A',10,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','MARIFE','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','EVERLYN','B',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','LULIA','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-09-04','LAURA','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','JIMMY','C',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','JIMMY','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','EMIL','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','EMIL','A',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','PRUDENCIO','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','HENRY','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','HENRY','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','HENRY','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','ALEX','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','VERONICA V','A',6,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','JESS','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','JESS','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','EVERLYN','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','EVERLYN','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','EMIL','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','BIBIANA','C',13,780,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','BIBIANA','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','BIBIANA','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','BIBIANA','V',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','VERONICA V','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','LAURA','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','LAURA','W',6,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','NAYI','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','VERONICA V','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','HENRY','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-10-09','HENRY','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ZUNINO','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ZUNINO','C',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ZUNINO','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ALEX','A',9,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ALEX','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','PASADORE ','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','OSCAR','A',17,1020,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','LAURA','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','LAURA','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','PRUDENCIO','W',4,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','PRUDENCIO','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA V','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA V','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA V','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','JIMMY','C',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','JIMMY','W',6,1080,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ALEJANDRA','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','KEIDDY','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','KEIDDY','B',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','JAIRO','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','LUIS G','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','LUIS G','C',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA V','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ZAPICO','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ZAPICO','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ZAPICO','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA A','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','FELIPE','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','FELIPE','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ALEX','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','IVAN','B',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','HENRY','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','HENRY','B',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','HENRY','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','KEIDDY','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ALEX','W',26,4680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ALEX','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','LAURA','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','LAURA','W',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ANWAR','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','ANWAR','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA V','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-11-02','VERONICA V','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','NAYI','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','BIBIANA','C',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','BIBIANA','A',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','EVAN','A',15,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','EVAN','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','GABRIELLA','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','OSCAR','A',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','OSCAR','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','OSCAR','V',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','ALEJANDRA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','ALEJANDRA','B',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','NAYI','W',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JON','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JON','B',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JON','W',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','HENRY','W',3,460,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JIMMY','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','GABRIELLA','V',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','ANDINO','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','ANDINO','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JAIRO','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','LAURA G','C',2,160,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','LAURA G','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JON','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','JAIRO','W',6,1000,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','NAYI','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','LAURA G','A',3,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','LAURA G','B',1,80,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-06','EVAN','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-29','HENRY','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-29','HENRY','A',6,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-29','LAURA G','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-29','JAIRO','W',4,690,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-29','EVAN','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2020-12-30','NAYI','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-08','JON','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-08','ALEX','W',50,7500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-08','ANDINO','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-08','ANDINO','A',7,490,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-08','ANDINO','W',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-08','ANDINO','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','ANWAR','B',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','ZAPICO','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','ZUNINO','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','ZUNINO','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','ZUNINO','C',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','HENRY','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-12','HENRY','B',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','RUBEN','A',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','RUBEN','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','NAYI','W',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','ANWAR','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','ANWAR','B',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','ALEJANDRA','A',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','ANWAR','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','JIMMY','A',7,490,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','JIMMY','C',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','JIMMY','B',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','DANIELA','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','HENRY','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','LAURA','A',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','LAURA','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-01-14','LAURA','W',3,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','EVAN','A',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','EVAN','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ANWAR','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JON','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JON','B',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JON','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','LUIS G','A',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','LUIS G','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ALEX','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JAIRO','W',6,1080,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','CRISTINA','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ALEJANDRA','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ALEJANDRA','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','FELIPE','A',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','HENRY','A',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ANWAR','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','A',3,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','B',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JOY','G',1,135,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JAIRO','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','NAYI','W',1,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','NAYI','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','NAYI','B',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ANWAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ZAPICO','W',3,510,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ZAPICO','G',3,425,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ZAPICO','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ZAPICO','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ZAPICO','BY',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','B',5,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','VERONICA V','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','HENRY','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','MARIFE','W',3,460,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','HENRY','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ALEX','A',12,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JAIRO','W',6,1000,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','JOY','G',1,135,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','OSCAR','A',20,1200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','OSCAR','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','OSCAR','G',2,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','OSCAR','V',2,225,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','DANIELA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','DANIELA','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','EVAN','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-02-01','ALEX','W',50,7500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ALEX','W',50,7500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ALEJANDRA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ALEJANDRA','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','KEIDDY','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','KEIDDY','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','JOY','W',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','JAIRO','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ALEX','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','LAURA','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','JON','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','DANIELA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','DANIELA','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','OMAR','W',3,520,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','OMAR','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','NAYI','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VERONICA V','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VERONICA V','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VERONICA V','W',3,510,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VANESSA','W',2,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ANWAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','JON','W',2,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VERONICA V','W',2,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','EVAN','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','EVAN','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','EVAN','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','JAIRO','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','JAIRO','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ALEJANDRA','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','ALEJANDRA','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VERONICA A','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','VERONICA A','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','HENRY','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','OMAR','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-03-01','OMAR','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','NAYI','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','EVERLYN','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JON','W',1,170,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','KATY','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','PANZA','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','KEYANG','A',9,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','KEIDDY','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ALEJANDRA','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ALEJANDRA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','PASADORE','B',4,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','LUPE','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','W',3,520,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JAIRO','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','MARIFE','A',10,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA EV','B',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA A','W',4,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA A','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','LUIS G','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','LUIS G','B',5,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','G',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JAIRO','W',3,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','YUVI','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','BIBIANA','A',15,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','BIBIANA','C',15,1050,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','RONDI','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','OMAR','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','VERONICA V','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','OMAR','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JON','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JON','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JAIRO','W',4,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JAIRO','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','JAIRO','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ZAPICO','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ZAPICO','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ZAPICO','G',3,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ZAPICO','V',3,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ZAPICO','BY',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','ZAPICO','W',3,510,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','LUIS G','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','LUIS G','C',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','LUIS G','BY',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','NAYI','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-04-01','HENRY','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','JON','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','RUBEN','W',1,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','LUPE','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','IVAN','B',3,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','KATY','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','KATY','V',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ALEJANDRA','A',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','HELIODORO','A',7,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','HELIODORO','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','HELIODORO','C',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','HELIODORO','V',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','NAYI','B',2,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ZUNINO','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ZUNINO','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ANWAR','A',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','RONDI','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','HENRY','A',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','HENRY','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ZAPICO','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ZAPICO','G',3,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ZAPICO','BY',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ZUNINO','C',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ALEJANDRA','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','ALEJANDRA','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','VERONICA A','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','VERONICA A','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','EVAN','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','EVAN','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-05-01','EVAN','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','JAIRO','W',6,1000,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','JAIRO','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','JAIRO','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','JAIRO','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','BIBIANA','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','BIBIANA','C',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','OMAR','A',3,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','OMAR','G',2,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','EVAN','A',8,560,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','LAURA G','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','LAURA G','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','OSCAR','A',16,1120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','OSCAR','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','OSCAR','G',3,450,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','OSCAR','V',3,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEX','A',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEX','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','RONDI','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEJANDRA','A',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEJANDRA','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','KATY','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEX','W',15,2250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEX','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','ALEX','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','HENRY','A',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','PANZA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','PANZA','B',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','PANZA','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-06-01','EVAN','A',8,480,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','YUVI','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','YUVI','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','LUPE','W',2,400,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','VANESSA','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','NAYI','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','EVERLYN','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-07-01','EVERLYN','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','VANESSA','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','VANESSA','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','RONDI','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','RONDI','G',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','KATY','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','OMAR','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','OMAR','G',6,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','OMAR','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','BIBIANA','B',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','BIBIANA','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','ALEJANDRA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','ALEJANDRA','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','OMAR','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','KATY','V',1,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','KATY','G',1,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','KATY','C',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','KATY','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','KATY','C',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','RUBEN','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','RUBEN','B',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','NAYI','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','ANDINO','G',2,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','ALVARO','G',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','ALVARO','A',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','VERONICA V','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','VERONICA V','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','VERONICA V','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','VERONICA V','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','LUIS G','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-08-01','LUIS G','BY',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','JOY','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA EV','A',1,50,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','LAURA','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','A',3,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA V','G',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA V','A',6,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HENRY','A',6,250,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','RONDI','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HENRY','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ALEX','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','EVAN','A',10,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HANI','A',6,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','JAIRO','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HANI','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HANI','V',3,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','KATY','W',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','KATY','G',1,110,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA V','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA V','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','A',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA A','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','CARL','G',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PASADORE','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PASADORE','A',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PASADORE','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HANI','A',6,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','OMAR','A',4,240,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','OMAR','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','RONDI','W',3,500,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','JAIRO','W',7,1200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','JAIRO','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','A',2,110,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','PANZA','B',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','EVAN','C',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','EVAN','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','KEIDDY','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','KEIDDY','B',9,630,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HENRY','W',2,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','HENRY','B',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','VERONICA V','A',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','CARL','G',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ZAPICO','W',3,510,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ZAPICO','G',3,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ZAPICO','V',3,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ZAPICO','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ZAPICO','W',3,510,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-09-01','ZAPICO','A',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HENRY','W',8,1300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KATY','W',3,450,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KATY','G',3,330,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KATY','C',1,60,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','LAURA','A',2,120,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','OMAR','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','MARIFE','A',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','JAIRO','W',6,1000,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','ALEX','A',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HANI','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HANI','A',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','PANZA','W',2,320,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','PANZA','A',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','CARL','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','JAIRO','W',6,1000,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','JAIRO','A',3,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HENRY','A',8,560,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KEIDDY','A',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','ALEX','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','RONDI','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KEIDDY','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','LAURA','V',2,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','JAIRO','W',3,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','VERONICA V','G',3,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','VERONICA V','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','VERONICA EV','B',2,100,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HENRY','A',9,630,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HENRY','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','EVAN','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','HANI','A',12,840,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','OSCAR','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','OSCAR','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','OSCAR','G',2,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','OSCAR','V',2,220,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','JON','W',1,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KATY','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-10-01','KATY','G',1,110,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','YANET','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','YANET','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','YANET','C',3,210,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','LUPE','A',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','JIMMY','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','JIMMY','A',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','JIMMY','B',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','JIMMY','C',9,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','PASADORE','B',2,0,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','MARIFE','A',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VANESSA','V',5,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','CRISTINA','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','CRISTINA','A',1,70,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','KEIDDY','B',4,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','HENRY','W',8,1360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','HENRY','A',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','HENRY','B',5,350,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VERONICA V','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VERONICA V','G',2,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VERONICA V','A',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','YANET','W',5,900,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','YANET','A',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','YANET','B',2,140,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','OMAR','A',6,420,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','OMAR','W',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','OMAR','G',4,600,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','MARIFE','G',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','MARIFE','W',2,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VANESSA','W',4,680,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VANESSA','W',2,340,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','VANESSA','V',2,220,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','NAYI','W',2,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','RONDI','W',4,720,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','KATY','G',3,320,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','ALEX','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','PANZA','A',3,200,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','EVAN','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','JON','T',3,540,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','JON','W',2,360,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','EVAN','A',10,700,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','EVAN','W',1,180,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','LAURA','A',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','LAURA','B',5,300,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-11-01','LAURA','W',1,150,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-12-01','OSCAR','G',2,280,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-12-01','OSCAR','V',2,220,false);\n", - "insert into pyme (date,customer,product,quantity,price,deleted) values ('2021-12-01','OSCAR','A',8,560,false);\n" - ] - } - ], + "outputs": [], "source": [ - "with open(path) as r:\n", + "with open(path) as r, open(path_output, 'wt') as w:\n", " next(r)\n", + " prev_order_id = None\n", + " prev_date = None\n", + " prev_cust = None\n", + " \n", + " items = []\n", + " order_id = 1\n", + " \n", " for line in r:\n", " f = line.split(',')\n", - " print(f\"insert into pyme (date,customer,product,quantity,price,deleted) values ('{f[1]}','{f[2]}','{f[3]}',{f[4]},{f[5]},{f[6].strip().lower()});\")" + " date = f[1]\n", + " cust = f[2]\n", + " prod = f[3]\n", + " qty = f[4]\n", + " price = int(f[5])\n", + " \n", + " if ((prev_date == date and prev_cust == cust) or \n", + " prev_date == None and prev_cust == None):\n", + " order = [date, cust]\n", + " items.append([prod,qty,price])\n", + " \n", + " else:\n", + " \n", + " date1 = order[0]\n", + " cust1 = order[1]\n", + " price1 = sum([i[2] for i in items])\n", + " \n", + " w.write(f\"insert into pyme_order (id,date,customer,price) values ({order_id},'{date1}','{cust1}',{price1});\\n\")\n", + "\n", + " for i in items:\n", + " prod1 = i[0]\n", + " qty1 = i[1]\n", + " price1 = i[2]\n", + " w.write(f\"insert into pyme_order_item (order_id,product,quantity) values ({order_id},'{prod1}',{qty1});\\n\")\n", + " \n", + " order_id += 1\n", + " items = []\n", + " order = [date, cust]\n", + " items.append([prod,qty,price])\n", + " \n", + " prev_date = date\n", + " prev_cust = cust\n", + " \n" ] }, { diff --git a/frontend/src/lib/ItemTable.svelte b/frontend/src/lib/ItemTable.svelte index 53bde42..31d1319 100644 --- a/frontend/src/lib/ItemTable.svelte +++ b/frontend/src/lib/ItemTable.svelte @@ -76,7 +76,7 @@ {/each} - Actions + @@ -85,7 +85,7 @@ {#each table.columns as col} { o[col] || ""} {/each} - + {/each} diff --git a/frontend/src/lib/ItemForm.svelte b/frontend/src/lib/Order.svelte similarity index 71% rename from frontend/src/lib/ItemForm.svelte rename to frontend/src/lib/Order.svelte index ef18a10..e12a2fd 100644 --- a/frontend/src/lib/ItemForm.svelte +++ b/frontend/src/lib/Order.svelte @@ -11,6 +11,7 @@ import Error from './Error.svelte'; import ItemManager from './itemManager'; import { createEventDispatcher } from 'svelte'; + import OrderItem from './OrderItem.svelte'; const dispatch = createEventDispatcher() const close = (e) => { @@ -30,13 +31,18 @@ let currentProduct; export let isModify; - export let item = { + + export let order = { date: today, customer: '', - product: 'A', - quantity: 1, price: 0, paid: true, + notes: '', + items : [{ + product: 'A', + quantity: 1, + price: 0, + }] } @@ -48,39 +54,46 @@ .typeError("Invalid date") .required("Required"), customer: yup.string().required("Required"), - product: yup.string().required("Required"), - quantity: yup.number().required("Required"), price: yup.number().required("Required"), + items: yup.array().of( + yup.object().shape({ + product: yup.string().required("Required"), + quantity: yup.number().required("Required"), + price: yup.number().required("Required"), + }) + ), }); onMount(async () => { if (!manager) manager = new ItemManager(url); products = await getProducts(); - updatePrice(); errors = {} }); const handleSubmit = async () => { - item.customer = currentCustomer; - item.quantity = Number.parseInt(item.quantity); - item.price = Number.parseInt(item.price); + order.customer = currentCustomer; + for (let item of order.items) { + item.quantity = Number.parseInt(item.quantity); + item.price = Number.parseInt(item.price); + } try { - await schema.validate(item, { abortEarly: false }); + await schema.validate(order, { abortEarly: false }); errors = {}; await save(); } catch (err) { + console.log(err); errors = extractErrors(err); //console.log(errors); } } const extractErrors = (err) => { + console.log(JSON.stringify(err)); return err.inner.reduce((acc, err) => { return { ...acc, [err.path]: err.message }; }, {}); } - const getCustomer = async (q) => { if (q.length < 1){ customers = []; @@ -125,9 +138,9 @@ return []; } const save = async () => { - let itemToSave = JSON.parse(JSON.stringify(item)) + let itemToSave = JSON.parse(JSON.stringify(order)) // convert date to string - itemToSave.date = dayjs(item.date).format('YYYY-MM-DD'); + itemToSave.date = dayjs(order.date).format('YYYY-MM-DD'); console.log('saving item:', itemToSave); if(!isModify) { console.log('creating item'); @@ -139,25 +152,47 @@ error = manager.error; dispatch('saved'); } - - const remove = async () => { - - } const handleCreate = (username) => { console.log('adding ', username); customers.unshift(username); customers = customers; return username; } - const updatePrice = () => { - console.log('updating price...'); + const updatePrice = (e) => { + const index = e.detail; + console.log('updating price item', index); + let item = order.items[index]; for (const p of products) { - if (p[0]===item.product) { + if (p[0]===item.product) { item.price = item.quantity * Number(p[1]); - break; + console.log("price", item.price); + order.item = {...item}; + break; } } + updateTotal(); } + const updateTotal = () => { + console.log('updating total...'); + let sum = 0; + order.items.forEach( i => { + sum += i.price; + }); + order.price = sum; + } + const addItem = async () => { + order.items.push({ + product: 'A', + quantity: 1, + price: 0, + }); + order.items = [...order.items]; + } + const removeItem = async (index) => { + order.items.splice(index, 1); + order.items = [...order.items]; + } +
@@ -176,7 +211,7 @@ Date
-
-
- - - {#if errors.product}{errors.product}{/if} -
-
- - - {#if errors.quantity}{errors.quantity}{/if} -
+ {#each order.items as item, index} + + {/each} + +
- + +
+
+ - {#if errors.price}{errors.price}{/if} + bind:value={order.price} + class="form-control" id="price" + min="1" max="10000">
+
+ +
+
-
+
+ bind:checked={order.paid} disabled={$working} id="paid"> -
- {#if errors.price}{errors.price}{/if} +
+
-
{#if isModify} @@ -285,8 +315,6 @@
- -
diff --git a/frontend/src/lib/OrderItem.svelte b/frontend/src/lib/OrderItem.svelte new file mode 100644 index 0000000..2a943c6 --- /dev/null +++ b/frontend/src/lib/OrderItem.svelte @@ -0,0 +1,86 @@ + + +
+
+ {#if hasLabels} + + {/if} + + +
+
+ {#if hasLabels} + + {/if} + + +
+
+ {#if hasLabels} + + {/if} + + +
+
+ {#if hasLabels} +
+ {:else} + + {/if} +
+
+ + + \ No newline at end of file diff --git a/frontend/src/routes/Home.svelte b/frontend/src/routes/Home.svelte index cff81a1..babba0b 100644 --- a/frontend/src/routes/Home.svelte +++ b/frontend/src/routes/Home.svelte @@ -5,7 +5,7 @@ import { API_URL, state, apierror } from '../lib/store'; import ItemsTable from '../lib/ItemTable.svelte'; import ItemManager from "../lib/itemManager.js" - import ItemForm from '../lib/ItemForm.svelte'; + import Order from '../lib/Order.svelte'; let url = `${API_URL}pyme/` let isModal; @@ -20,18 +20,22 @@ let title = "Items"; let table = { - header : ['Date','Cust','Qty','Prod','Price', 'Paid'], - columns : ['date','customer','quantity','product','price','paid'], + header : ['Date','Cust','Total', 'Paid'], + columns : ['date','customer','price','paid'], } let itemInit = { date: today, customer: '', - product: 'A', - quantity: 1, price: 0, paid: true, + notes: '', + items : [{ + product: 'A', + quantity: 1, + price: 0, + }] } - let item = {...itemInit} + let order = {...itemInit} let items = []; let error = ''; @@ -68,28 +72,6 @@ }, waitTime); } } - const save = async () => { - console.log('saving item:', item); - if(!isModify) { - console.log('creating item'); - await manager.create(item); - } else { - console.log('updating item'); - await manager.modify(item); - } - error = manager.error; - items = manager.result; - if (!error) { - isModal = false; - } - } - const remove = async () => { - await manager.remove(item.id); - error = manager.error; - items = manager.result; - isModal = false; - isRemove = false; - } const sort = async (e) => { let col = e.detail; if (col === manager.sortCol) { @@ -105,7 +87,7 @@ items = manager.result; } const showCreate = () => { - item = {...itemInit}; + order = {...itemInit}; showForm = true; showToolbar = false; isModify = false; @@ -114,7 +96,7 @@ const showModify = (e) => { let o = e.detail; o.date = dayjs(o.date).toDate(); - item = {...o}; + order = {...o}; showForm = true; showToolbar = false; isModify = true; @@ -122,7 +104,7 @@ } const showRemove = (e) => { let o = e.detail; - item = {...o}; + order = {...o}; isRemove = true; isModal = true; error = ''; @@ -147,12 +129,11 @@
{#if showForm} - -
-
Item:
-
- -{/if} +
+
Item:
+
+ + {/if}
diff --git a/src/handler.rs b/src/handler.rs index e1d35a1..8736f40 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -15,7 +15,7 @@ use axum::{ }; use crate::{ auth::{Claims, AuthPayload, AuthError, KEYS}, - model::ItemModel, + model::{OrderModel,ItemModel}, schema::{Params, CreateItemSchema, UpdateItemSchema}, AppState, }; @@ -30,19 +30,6 @@ pub async fn token( if payload.username.is_empty() || payload.password.is_empty() { return Err(AuthError::MissingCredentials); } - - // get the user for the email from database - // let user = sqlx::query_as::<_, models::auth::User>( - // "SELECT username, password FROM users where email = $1", - // ) - // .bind(&payload.email) - // .fetch_optional(&pool) - // .await - // .map_err(|err| { - // dbg!(err); - // AuthError::InternalServerError - // })?; - // if password is encrypted than decode it first before comparing if payload.username != "alice" || payload.password != "secret" { // password is incorrect @@ -78,7 +65,7 @@ pub async fn get_items( let limit = params.limit.unwrap_or(50); let offset = (params.page.unwrap_or(1) - 1) * limit; - let mut query = QueryBuilder::new("SELECT * from pyme"); + let mut query = QueryBuilder::new("SELECT * from pyme_order"); if q.len() > 0 { query.push(" where customer ilike "); query.push_bind(format!("%{}%", q)); @@ -90,11 +77,12 @@ pub async fn get_items( } else { query.push(" asc"); } + query.push(", id desc "); query.push(" limit "); query.push_bind(limit); query.push(" offset "); query.push_bind(offset); - let query = query.build_query_as::(); + let query = query.build_query_as::(); println!("{}", query.sql()); println!("q={} sortcol={} desc={} limit={} offset={}", q,sortcol,desc,limit,offset); @@ -121,8 +109,8 @@ pub async fn get_item( State(state): State> ) -> Result)> { println!("id={}", id); - let query = sqlx::query_as::<_, ItemModel>(r#" - SELECT * FROM pyme WHERE id = $1 + let query = sqlx::query_as::<_, OrderModel>(r#" + SELECT * FROM pyme_order WHERE id = $1 "#) .bind(id) .fetch_one(&state.db).await; @@ -146,41 +134,50 @@ pub async fn create_item( State(state): State>, Json(body): Json, ) -> Result)> { - let query = sqlx::query_as::<_,ItemModel>( - "INSERT INTO pyme (date,customer,product,quantity,price,paid, notes) - VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING *") + let query = sqlx::query_as::<_,OrderModel>( + "INSERT INTO pyme_order (date,customer,price,paid, notes) + VALUES ($1, $2, $3, $4, $5) RETURNING *") .bind(body.date.to_string()) .bind(body.customer.to_string()) - .bind(body.product.to_string()) - .bind(body.quantity) .bind(body.price) .bind(body.paid) .bind(body.notes) .fetch_one(&state.db) .await; - match query { - Ok(item) => { - let res = json!(item); - return Ok((StatusCode::CREATED, Json(res))); - } - Err(e) => { - if e.to_string() - .contains("duplicate key value violates unique constraint") - { - let error = json!({ - "detail": "Item with that title already exists", - }); - println!("{:?}", e); - return Err((StatusCode::CONFLICT, Json(error))); - } + if let Err(e) = query { + if e.to_string() + .contains("duplicate key value violates unique constraint") + { + let error = json!({ + "detail": "Item with that title already exists", + }); println!("{:?}", e); - return Err(( - StatusCode::INTERNAL_SERVER_ERROR, - Json(json!({"status": "error","message": format!("{:?}", e)})), - )); + return Err((StatusCode::CONFLICT, Json(error))); + } + println!("{:?}", e); + return Err(( + StatusCode::INTERNAL_SERVER_ERROR, + Json(json!({"status": "error","message": format!("{:?}", e)})), + )); + } + let item = query.unwrap(); + + for i in body.items.into_iter() { + let query = sqlx::query_as::<_,ItemModel>( + "INSERT INTO pyme_order_item (order_id,product,quantity) + VALUES ($1, $2, $3) RETURNING *") + .bind(item.id) + .bind(i.product) + .bind(i.quantity) + .fetch_one(&state.db) + .await; + if let Err(e) = query { + let error = json!({"status": "error","message": format!("{:?}", e)}); + return Err((StatusCode::INTERNAL_SERVER_ERROR,Json(error))); } } + Ok(Json(serde_json::json!(item))) } pub async fn update_item( @@ -189,7 +186,7 @@ pub async fn update_item( Json(body): Json, ) -> Result)> { - let query = sqlx::query_as::<_, ItemModel>( + let query = sqlx::query_as::<_, OrderModel>( "SELECT * FROM pyme WHERE id = $1") .bind(body.id) .fetch_one(&state.db) @@ -205,15 +202,13 @@ pub async fn update_item( let item = query.unwrap(); - let query = sqlx::query_as::<_, ItemModel>( - "UPDATE pyme SET date=$1, customer=$2, product=$3, - quantity=$4, price=$5, paid=$6, notes=$7 + let query = sqlx::query_as::<_, OrderModel>( + "UPDATE pyme_order SET date=$1, customer=$2, + price=$5, paid=$6, notes=$7 WHERE id=$8 RETURNING *") .bind(body.date.to_owned().unwrap_or(item.date)) .bind(body.customer.to_owned().unwrap_or(item.customer)) - .bind(body.product.to_owned().unwrap_or(item.product)) - .bind(body.quantity.to_owned().unwrap_or(item.quantity)) - .bind(body.price.to_owned().unwrap_or(item.quantity)) + .bind(body.price.to_owned().unwrap_or(item.price)) .bind(body.paid.to_owned().unwrap_or(item.paid)) .bind(body.notes.to_owned().unwrap_or(item.notes.unwrap_or("".to_string()))) .bind(body.id) @@ -239,7 +234,7 @@ pub async fn delete_item( Path(id): Path, State(state): State> ) -> Result)> { - let rows_affected = sqlx::query("DELETE FROM pyme WHERE id = $1") + let rows_affected = sqlx::query("DELETE FROM pyme_order WHERE id = $1") .bind(id) .execute(&state.db) .await @@ -270,13 +265,13 @@ pub async fn get_customers( if letters.len() > 0 { query = sqlx::query(r#" - SELECT DISTINCT customer FROM pyme + SELECT DISTINCT customer FROM pyme_order WHERE customer ilike $1 ORDER BY customer "#).bind(format!("%{}%", letters)); } else { query = sqlx::query(r#" - SELECT DISTINCT customer FROM pyme ORDER BY customer + SELECT DISTINCT customer FROM pyme_order ORDER BY customer "#); } let query = query.fetch_all(&state.db).await; @@ -304,7 +299,7 @@ pub async fn get_products( State(state): State> ) -> Result)> { let query = sqlx::query(r#" - select name, cast(price as text) as price from pymeproduct order by name + select name, cast(price as text) as price from pyme_product order by name "#) .fetch_all(&state.db).await; @@ -341,7 +336,7 @@ pub async fn get_stat_customer( ) -> Result)> { let query = sqlx::query(r#" select customer, cast(sum(quantity) as text), cast(sum(price) as text) - from public.pyme + from public.pyme_order group by customer order by sum(price) desc "#) @@ -374,7 +369,7 @@ pub async fn get_stat_product( ) -> Result)> { let query = sqlx::query(r#" select product, cast(sum(quantity) as text), cast(sum(price) as text) - from public.pyme + from public.pyme_order group by product order by sum(price) desc "#) @@ -415,7 +410,7 @@ pub async fn get_stat_year( ,product ,quantity ,price - from public.pyme + from public.pyme_order ) as t group by year order by year desc "#) @@ -457,7 +452,7 @@ pub async fn get_stat_quarter( ,product ,quantity ,price - from public.pyme + from public.pyme_order ) as t group by quarter order by quarter desc "#) diff --git a/src/model.rs b/src/model.rs index 73dbb49..de0cb7f 100644 --- a/src/model.rs +++ b/src/model.rs @@ -4,12 +4,10 @@ use sqlx::FromRow; #[derive(Debug, FromRow, Deserialize, Serialize)] #[allow(non_snake_case)] -pub struct ItemModel { +pub struct OrderModel { pub id: i32, pub date: String, pub customer: String, - pub product: String, - pub quantity: i32, pub price: i32, pub paid: bool, pub notes: Option, @@ -17,14 +15,13 @@ pub struct ItemModel { pub created: Option>, pub updated: Option>, } -// pub struct ProductModel { -// pub id: i32, -// pub name: String, -// pub price: i32, -// pub deleted: Option, -// pub created: Option>, -// pub updated: Option>, -// } +#[derive(Debug, FromRow, Deserialize, Serialize)] +#[allow(non_snake_case)] +pub struct ItemModel { + pub order_id: i32, + pub product: String, + pub quantity: i32 +} #[derive(Debug, FromRow, Deserialize, Serialize)] #[allow(non_snake_case)] diff --git a/src/schema.rs b/src/schema.rs index 658140e..aeb7b91 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -9,15 +9,23 @@ pub struct Params { pub desc: Option, } + +#[derive(Serialize, Deserialize, Debug)] +pub struct ItemSchema { + pub product: String, + pub quantity: i32, + pub price: i32, +} + + #[derive(Serialize, Deserialize, Debug)] pub struct CreateItemSchema { pub date: String, pub customer: String, - pub product: String, - pub quantity: i32, pub price: i32, pub paid: bool, pub notes: String, + pub items: Vec } #[derive(Serialize, Deserialize, Debug)]