diff --git a/client/src/database/java/data/ecommerce/.vscode/launch.json b/client/src/database/java/data/ecommerce/.vscode/launch.json deleted file mode 100644 index 68447f5c4..000000000 --- a/client/src/database/java/data/ecommerce/.vscode/launch.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "java", - "name": "Current File", - "request": "launch", - "mainClass": "${file}" - }, - { - "type": "java", - "name": "Driver", - "request": "launch", - "mainClass": "src.Driver", - "projectName": "java-ecommerce_d22cab92" - } - ] -} \ No newline at end of file diff --git a/client/src/database/java/data/ecommerce/.vscode/settings.json b/client/src/database/java/data/ecommerce/.vscode/settings.json deleted file mode 100644 index 611d7fcd6..000000000 --- a/client/src/database/java/data/ecommerce/.vscode/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "python.envFile": "${workspaceFolder}/.databricks/.databricks.env", - "databricks.python.envFile": "${workspaceFolder}/.env" -} \ No newline at end of file diff --git a/client/src/database/java/data/ecommerce/LICENSE b/client/src/database/java/data/ecommerce/LICENSE deleted file mode 100644 index 8b14ad5f5..000000000 --- a/client/src/database/java/data/ecommerce/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Hussain Pettiwala - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/client/src/database/java/data/ecommerce/README.md b/client/src/database/java/data/ecommerce/README.md deleted file mode 100644 index 25dc99c6e..000000000 --- a/client/src/database/java/data/ecommerce/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# Java E-Commerce CLI - -## Class diagram - -![Class Diagram](assets/class-diagram.png) - -## Usage - -### Clone repo - -``` -git clone git@github.com:pettiboy/java-ecommerce-cli.git -cd java-ecommerce-cli -``` - -### Run code - -run the main method in `src/Driver.java` - -## Demo - -![Class Diagram](assets/ss-1.png) -![Class Diagram](assets/ss-2.png) -![Class Diagram](assets/ss-3.png) - -## Contributing - -``` -git add src -git commit -m "descriptive commit message" -git push -``` diff --git a/client/src/database/java/data/ecommerce/data/bebidas.csv b/client/src/database/java/data/ecommerce/data/bebidas.csv deleted file mode 100644 index cd92d840a..000000000 --- a/client/src/database/java/data/ecommerce/data/bebidas.csv +++ /dev/null @@ -1,171 +0,0 @@ -id,nome,preco,quantidade,descricao,total_vendas,quantidade_vendas -3,Guaraná Antarctica,5.99,500,Uma bebida gaseificada e refrescante,150,30 -4,Fanta Laranja,3.99,1200,Uma bebida gaseificada e refrescante sabor laranja,100,20 -5,Fanta Uva,3.99,1000,Uma bebida gaseificada e refrescante sabor uva,80,16 -6,Suco de Laranja,6.99,400,Um suco natural de laranja,50,10 -7,Suco de Uva,7.99,300,Um suco natural de uva,40,8 -8,Refrigerante de Guaraná,4.99,600,Uma bebida gaseificada e refrescante sabor guaraná,120,24 -9,Refrigerante de Limão,4.99,500,Uma bebida gaseificada e refrescante sabor limão,80,16 -10,Água Mineral,2.99,2000,Uma água mineral natural,500,100 -11,Água com Gás,3.5,1500,Uma água mineral com gás,300,60 -12,Chá Gelado de Limão,5.99,350,Uma bebida refrescante de chá gelado sabor limão,60,12 -13,Chá Gelado de Pêssego,5.99,350,Uma bebida refrescante de chá gelado sabor pêssego,40,8 -14,Chá Verde,6.99,250,Uma bebida quente de chá verde,30,6 -15,Café,3.99,400,Uma bebida quente de café,50,10 -16,Cappuccino,4.99,350,Uma bebida quente de cappuccino,40,8 -17,Chocolate Quente,5.99,300,Uma bebida quente de chocolate,50,10 -18,Milkshake de Baunilha,7.99,250,Um milkshake cremoso sabor baunilha,30,6 -19,Milkshake de Chocolate,7.99,250,Um milkshake cremoso sabor chocolate,40,8 -20,Milkshake de Morango,7.99,250,Um milkshake cremoso sabor morango,50,10 -21,Vinho Tinto,29.99,100,Um vinho tinto encorpado,20,4 -22,Vinho Branco,29.99,100,Um vinho branco leve e refrescante,30,6 -23,Cerveja Pilsen,3.99,800,Uma cerveja leve e refrescante,200,40 -24,Cerveja IPA,5.99,500,Uma cerveja mais encorpada e amarga,150,30 -25,Cerveja Stout,6.99,400,Uma cerveja escura e forte,100,20 -26,Cerveja de Trigo,4.99,600,Uma cerveja mais leve e turva,120,24 -27,Coquetel de Frutas,8.99,250,Um coquetel refrescante de frutas,40,8 -28,Mojito,9.99,200,Um coquetel refrescante de limão e hortelã,30,6 -29,Caipirinha,7.99,300,Um coquetel brasileiro feito com cachaça e limão,50,10 -30,Whisky Nacional,59.99,50,Um whisky nacional suave,10,2 -31,Whisky Importado,199.99,20,Um whisky importado premium,5,1 -32,Vodka Nacional,29.99,100,Uma vodka nacional suave,20,4 -33,Vodka Importada,99.99,50,Uma vodka importada premium,10,2 -34,Rum Nacional,29.99,100,Um rum nacional suave,20,4 -35,Rum Importado,99.99,50,Um rum importado premium,10,2 -36,Tequila Nacional,39.99,80,Uma tequila nacional suave,15,3 -37,Tequila Importada,129.99,30,Uma tequila importada premium,5,1 -38,Gin Nacional,49.99,70,Um gin nacional suave,15,3 -39,Gin Importado,149.99,25,Um gin importado premium,5,1 -40,Conhaque Nacional,39.99,80,Um conhaque nacional suave,15,3 -41,Conhaque Importado,129.99,30,Um conhaque importado premium,5,1 -42,Cachaça,19.99,150,Uma cachaça brasileira de qualidade,40,8 -43,Saquerinha,8.99,250,Um coquetel brasileiro feito com saquê e frutas,30,6 -44,Licor de Chocolate,24.99,120,Um licor doce e cremoso sabor chocolate,20,4 -45,Licor de Amêndoas,24.99,120,Um licor doce e cremoso sabor amêndoas,20,4 -46,Licor de Café,24.99,120,Um licor doce e cremoso sabor café,20,4 -47,Licor de Limão,24.99,120,Um licor doce e cremoso sabor limão,20,4 -48,Licor de Maracujá,24.99,120,Um licor doce e cremoso sabor maracujá,20,4 -49,Licor de Morango,24.99,120,Um licor doce e cremoso sabor morango,20,4 -50,Licor de Cereja,24.99,120,Um licor doce e cremoso sabor cereja,20,4 -51,Cerveja Artesanal IPA,9.99,200,Uma cerveja artesanal mais encorpada e amarga,50,10 -52,Cerveja Artesanal Lager,8.99,250,Uma cerveja artesanal mais leve e refrescante,60,12 -53,Cerveja Artesanal Ale,9.99,200,Uma cerveja artesanal mais forte e encorpada,50,10 -54,Cerveja Artesanal Weiss,9.99,200,Uma cerveja artesanal mais turva e frutada,40,8 -55,Vinho Rosé,24.99,150,Um vinho rosé leve e frutado,30,6 -56,Champanhe Nacional,89.99,40,Uma champanhe nacional para brindar,10,2 -57,Champanhe Importada,299.99,15,Uma champanhe importada para ocasiões especiais,5,1 -58,Whisky Escocês,249.99,20,Um whisky escocês de malte único,5,1 -59,Whisky Irlandês,189.99,30,Um whisky irlandês suave e saboroso,10,2 -60,Whisky Americano,99.99,50,Um whisky americano com sabor de carvalho,20,4 -61,Vodka Saborizada,39.99,80,Uma vodka saborizada de frutas,15,3 -62,Rum Saborizado,39.99,80,Um rum saborizado de frutas,15,3 -63,Tequila Saborizada,49.99,70,Uma tequila saborizada de frutas,20,4 -64,Gin Saborizado,49.99,70,Um gin saborizado de frutas,20,4 -65,Conhaque Saborizado,49.99,70,Um conhaque saborizado de frutas,20,4 -66,Licor de Menta,24.99,120,Um licor doce e cremoso sabor menta,20,4 -67,Licor de Mel,24.99,120,Um licor doce e cremoso sabor mel,20,4 -68,Licor de Caramelo,24.99,120,Um licor doce e cremoso sabor caramelo,20,4 -69,Licor de Abacaxi,24.99,120,Um licor doce e cremoso sabor abacaxi,20,4 -70,Licor de Côco,24.99,120,Um licor doce e cremoso sabor côco,20,4 -71,Licor de Romã,24.99,120,Um licor doce e cremoso sabor romã,20,4 -72,Licor de Maçã Verde,24.99,120,Um licor doce e cremoso sabor maçã verde,20,4 -73,Licor de Pêssego,24.99,120,Um licor doce e cremoso sabor pêssego,20,4 -74,Licor de Ginja,24.99,120,Um licor doce e cremoso sabor ginja,20,4 -75,Licor de Mirtilo,24.99,120,Um licor doce e cremoso sabor mirtilo,20,4 -76,Licor de Ameixa,24.99,120,Um licor doce e cremoso sabor ameixa,20,4 -77,Licor de Damasco,24.99,120,Um licor doce e cremoso sabor damasco,20,4 -78,Licor de Framboesa,24.99,120,Um licor doce e cremoso sabor framboesa,20,4 -79,Licor de Limoncello,24.99,120,Um licor doce e cremoso sabor limão siciliano,20,4 -80,Licor de Café com Chocolate,24.99,120,Um licor doce e cremoso sabor café e chocolate,20,4 -81,Licor de Avelã,24.99,120,Um licor doce e cremoso sabor avelã,20,4 -82,Licor de Banana,24.99,120,Um licor doce e cremoso sabor banana,20,4 -83,Licor de Melancia,24.99,120,Um licor doce e cremoso sabor melancia,20,4 -84,Licor de Coco com Abacaxi,24.99,120,Um licor doce e cremoso sabor côco e abacaxi,20,4 -85,Licor de Cereja com Amêndoa,24.99,120,Um licor doce e cremoso sabor cereja e amêndoa,20,4 -86,Licor de Morango com Chocolate,24.99,120,Um licor doce e cremoso sabor morango e chocolate,20,4 -87,Licor de Cereja com Chocolate,24.99,120,Um licor doce e cremoso sabor cereja e chocolate,20,4 -88,Licor de Café com Caramelo,24.99,120,Um licor doce e cremoso sabor café e caramelo,20,4 -89,Licor de Marula,24.99,120,Um licor doce e cremoso sabor marula,20,4 -90,Licor de Amora,24.99,120,Um licor doce e cremoso sabor amora,20,4 -91,Licor de Groselha,24.99,120,Um licor doce e cremoso sabor groselha,20,4 -92,Licor de Café com Laranja,24.99,120,Um licor doce e cremoso sabor café e laranja,20,4 -93,Licor de Frutas Vermelhas,24.99,120,Um licor doce e cremoso sabor frutas vermelhas,20,4 -94,Licor de Banana com Canela,24.99,120,Um licor doce e cremoso sabor banana e canela,20,4 -95,Licor de Limão com Mel,24.99,120,Um licor doce e cremoso sabor limão e mel,20,4 -96,Licor de Tangerina,24.99,120,Um licor doce e cremoso sabor tangerina,20,4 -97,Licor de Cacau,24.99,120,Um licor doce e cremoso sabor cacau,20,4 -98,Licor de Canela com Laranja,24.99,120,Um licor doce e cremoso sabor canela e laranja,20,4 -99,Licor de Hortelã-Pimenta,24.99,120,Um licor doce e cremoso sabor hortelã-pimenta,20,4 -100,Licor de Mel com Pimenta,24.99,120,Um licor doce e cremoso sabor mel e pimenta,20,4 -101,Licor de Laranja com Gengibre,24.99,120,Um licor doce e cremoso sabor laranja e gengibre,20,4 -102,Licor de Limão com Gengibre,24.99,120,Um licor doce e cremoso sabor limão e gengibre,20,4 -103,Licor de Maçã com Canela,24.99,120,Um licor doce e cremoso sabor maçã e canela,20,4 -104,Licor de Abacaxi com Coco,24.99,120,Um licor doce e cremoso sabor abacaxi e coco,20,4 -105,Licor de Cereja com Pimenta,24.99,120,Um licor doce e cremoso sabor cereja e pimenta,20,4 -106,Licor de Pêssego com Canela,24.99,120,Um licor doce e cremoso sabor pêssego e canela,20,4 -107,Licor de Limão com Baunilha,24.99,120,Um licor doce e cremoso sabor limão e baunilha,20,4 -108,Licor de Ameixa com Cardamomo,24.99,120,Um licor doce e cremoso sabor ameixa e cardamomo,20,4 -109,Licor de Maracujá com Gengibre,24.99,120,Um licor doce e cremoso sabor maracujá e gengibre,20,4 -110,Licor de Morango com Hortelã,24.99,120,Um licor doce e cremoso sabor morango e hortelã,20,4 -111,Licor de Amêndoa com Canela,24.99,120,Um licor doce e cremoso sabor amêndoa e canela,20,4 -112,Licor de Chocolate com Pimenta,24.99,120,Um licor doce e cremoso sabor chocolate e pimenta,20,4 -113,Licor de Caramelo com Flor de Sal,24.99,120,Um licor doce e cremoso sabor caramelo e flor de sal,20,4 -114,Licor de Café com Canela,24.99,120,Um licor doce e cremoso sabor café e canela,20,4 -115,Licor de Frutas Vermelhas com Baunilha,24.99,120,Um licor doce e cremoso sabor frutas vermelhas e baunilha,20,4 -116,Licor de Cereja com Chocolate Branco,24.99,120,Um licor doce e cremoso sabor cereja e chocolate branco,20,4 -117,Licor de Limão com Gengibre e Mel,24.99,120,Um licor doce e cremoso sabor limão e gengibre,20,4 -118,Licor de Marula com Baunilha,24.99,120,Um licor doce e cremoso sabor marula e baunilha,20,4 -119,Licor de Morango com Pimenta Rosa,24.99,120,Um licor doce e cremoso sabor morango e pimenta rosa,20,4 -120,Licor de Cereja com Noz Moscada,24.99,120,Um licor doce e cremoso sabor cereja e noz moscada,20,4 -121,Licor de Coco com Gengibre,24.99,120,Um licor doce e cremoso sabor coco e gengibre,20,4 -122,Licor de Laranja com Cravo,24.99,120,Um licor doce e cremoso sabor laranja e cravo,20,4 -123,Licor de Limão com Mel e Gengibre,24.99,120,Um licor doce e cremoso sabor limão e gengibre,20,4 -124,Licor de Maçã com Pimenta Rosa,24.99,120,Um licor doce e cremoso sabor maçã e pimenta rosa,20,4 -125,Licor de Abacaxi com Hortelã,24.99,120,Um licor doce e cremoso sabor abacaxi e hortelã,20,4 -126,Licor de Maracujá com Canela,24.99,120,Um licor doce e cremoso sabor maracujá e canela,20,4 -127,Licor de Amora com Gengibre,24.99,120,Um licor doce e cremoso sabor amora e gengibre,20,4 -128,Licor de Cereja com Canela,24.99,120,Um licor doce e cremoso sabor cereja e canela,20,4 -129,Licor de Pêssego com Baunilha,24.99,120,Um licor doce e cremoso sabor pêssego e baunilha,20,4 -130,Licor de Limão com Alecrim,24.99,120,Um licor doce e cremoso sabor limão e alecrim,20,4 -131,Licor de Abacaxi com Gengibre e Hortelã,24.99,120,Um licor doce e cremoso sabor abacaxi gengibre e hortelã,20,4 -132,Licor de Cereja com Cardamomo,24.99,120,Um licor doce e cremoso sabor cereja e cardamomo,20,4 -133,Licor de Maracujá com Coco,24.99,120,Um licor doce e cremoso sabor maracujá e coco,20,4 -134,Licor de Cacau com Laranja,24.99,120,Um licor doce e cremoso sabor cacau e laranja,20,4 -135,Licor de Morango com Coco,24.99,120,Um licor doce e cremoso sabor morango e coco,20,4 -136,Licor de Amêndoa com Laranja,24.99,120,Um licor doce e cremoso sabor amêndoa e laranja,20,4 -137,Licor de Coco com Caramelo,24.99,120,Um licor doce e cremoso sabor coco e caramelo,20,4 -138,Licor de Laranja com Canela,24.99,120,Um licor doce e cremoso sabor laranja e canela,20,4 -139,Licor de Mel com Ervas,24.99,120,Um licor doce e cremoso sabor mel e ervas,20,4 -140,Licor de Tangerina com Gengibre,24.99,120,Um licor doce e cremoso sabor tangerina e gengibre,20,4 -141,Licor de Maracujá com Limão,24.99,120,Um licor doce e cremoso sabor maracujá e limão,20,4 -142,Licor de Cereja com Maracujá,24.99,120,Um licor doce e cremoso sabor cereja e maracujá,20,4 -143,Licor de Chocolate com Amora,24.99,120,Um licor doce e cremoso sabor chocolate e amora,20,4 -144,Licor de Limão com Tangerina,24.99,120,Um licor doce e cremoso sabor limão e tangerina,20,4 -145,Licor de Ameixa com Canela,24.99,120,Um licor doce e cremoso sabor ameixa e canela,20,4 -146,Licor de Coco com Limão,24.99,120,Um licor doce e cremoso sabor coco e limão,20,4 -147,Licor de Cereja com Baunilha,24.99,120,Um licor doce e cremoso sabor cereja e baunilha,20,4 -148,Licor de Café com Baunilha,24.99,120,Um licor doce e cremoso sabor café e baunilha,20,4 -149,Licor de Limão com Cardamomo,24.99,120,Um licor doce e cremoso sabor limão e cardamomo,20,4 -150,Licor de Maracujá com Hortelã,24.99,120,Um licor doce e cremoso sabor maracujá e hortelã,20,4 -151,Licor de Pêssego com Caramelo,24.99,120,Um licor doce e cremoso sabor pêssego e caramelo,20,4 -152,Licor de Tangerina com Canela,24.99,120,Um licor doce e cremoso sabor tangerina e canela,20,4 -153,Licor de Chocolate com Cereja,24.99,120,Um licor doce e cremoso sabor chocolate e cereja,20,4 -154,Licor de Maçã com Caramelo,24.99,120,Um licor doce e cremoso sabor maçã e caramelo,20,4 -155,Licor de Maracujá com Mel,24.99,120,Um licor doce e cremoso sabor maracujá e mel,20,4 -156,Licor de Limão com Coco,24.99,120,Um licor doce e cremoso sabor limão e coco,20,4 -157,Licor de Cacau com Laranja e Pimenta,24.99,120,Um licor doce e cremoso sabor cacau laranja e pimenta,20,4 -158,Licor de Framboesa com Gengibre,24.99,120,Um licor doce e cremoso sabor framboesa e gengibre,20,4 -159,Licor de Cereja com Coco,24.99,120,Um licor doce e cremoso sabor cereja e coco,20,4 -160,Licor de Limão com Canela e Mel,24.99,120,Um licor doce e cremoso sabor limão canela e mel,20,4 -161,Licor de Maracujá com Laranja,24.99,120,Um licor doce e cremoso sabor maracujá e laranja,20,4 -162,Licor de Tangerina com Caramelo,24.99,120,Um licor doce e cremoso sabor tangerina e caramelo,20,4 -163,Licor de Cacau com Framboesa,24.99,120,Um licor doce e cremoso sabor cacau e framboesa,20,4 -164,Licor de Limão com Cereja,24.99,120,Um licor doce e cremoso sabor limão e cereja,20,4 -165,Licor de Maracujá com Canela,24.99,120,Um licor doce e cremoso sabor maracujá e canela,20,4 -166,Licor de Cacau com Coco,24.99,120,Um licor doce e cremoso sabor cacau e coco,20,4 -167,Licor de Laranja com Hortelã,24.99,120,Um licor doce e cremoso sabor laranja e hortelã,20,4 -168,Licor de Limão com Cereja e Pimenta,24.99,120,Um licor doce e cremoso sabor limão cereja e pimenta,20,4 -169,Licor de Tangerina com Maracujá,24.99,120,Um licor doce e cremoso sabor tangerina e maracujá,20,4 -170,Licor de Cacau com Laranja e Canela,24.99,120,Um licor doce e cremoso sabor cacau laranja e canela,20,4 -171,Licor de Cereja com Caramelo,24.99,120,Um licor doce e cremoso sabor cereja e caramelo,20,4 -172,Licor de Limão com Framboesa,24.99,120,Um licor doce e cremoso sabor limão e framboesa,20,4 diff --git a/client/src/database/java/data/ecommerce/data/estoque_mercadorias.csv b/client/src/database/java/data/ecommerce/data/estoque_mercadorias.csv deleted file mode 100644 index 4c139bedb..000000000 --- a/client/src/database/java/data/ecommerce/data/estoque_mercadorias.csv +++ /dev/null @@ -1,196 +0,0 @@ -ID,NOME,QUANTIDADE -5,Café,20 -6,Leite,50 -7,Pão,40 -8,Queijo,25 -9,Presunto,30 -11,Óleo,30 -12,Vinagre,20 -13,Molho de tomate,25 -14,Macarrão,35 -15,Farinha de trigo,40 -16,Farinha de milho,35 -17,Fubá,30 -18,Fermento em pó,20 -19,Creme de leite,25 -20,Leite condensado,25 -21,Doce de leite,30 -22,Geleia de frutas,25 -23,Mel,20 -24,Polpa de frutas,30 -25,Suco em pó,20 -26,Refrigerante,40 -27,Cerveja,25 -28,Vinho,20 -29,Whisky,15 -30,Chá,30 -31,Bolacha,35 -32,Chocolate em barra,25 -33,Chocolate em pó,30 -34,Doce de frutas em calda,25 -35,Gelatina,25 -36,Leite em pó,30 -37,Achocolatado em pó,30 -38,Amendoim,20 -39,Castanha de caju,20 -40,Castanha do Pará,20 -41,Cereal matinal,25 -42,Granola,20 -43,Snacks,35 -44,Salgadinho,25 -45,Pipoca,30 -46,Biscoito recheado,30 -47,Torrada,30 -48,Bolinho,35 -49,Salsicha,30 -50,Carne enlatada,25 -51,Peito de frango,20 -52,Coxa de frango,25 -53,Asa de frango,30 -54,Salsicha de frango,25 -55,Hambúrguer de frango,20 -56,Carne moída,25 -57,Bife de alcatra,20 -58,Bife de filé mignon,15 -59,Carne de porco em cubos,25 -60,Linguiça,30 -61,Bacon,20 -62,Salmão,15 -63,Camarão,20 -64,Atum em lata,25 -65,Sardinha em lata,30 -66,Kani kama,25 -67,Polvo em conserva,20 -68,Anchova em conserva,20 -69,Alface,40 -70,Rúcula,30 -71,Couve,35 -72,Agrião,25 -73,Cebola,40 -74,Alho,35 -75,Cenoura,40 -76,Tomate,45 -77,Pimentão,30 -78,Beterraba,35 -79,Abobrinha,30 -80,Berinjela,30 -81,Pepino,35 -82,Repolho,25 -83,Couve-flor,20 -84,Brócolis,30 -85,Ervilha,25 -86,Milho verde em lata,30 -87,Palmito em conserva,25 -88,Cogumelo em conserva,25 -89,Feijão branco em lata,20 -90,Feijão preto em lata,20 -91,Ervilha em conserva,25 -92,Molho de pimenta,20 -93,Molho shoyu,25 -94,Molho inglês,25 -95,Molho de soja,25 -96,Molho barbecue,20 -97,Mostarda,25 -98,Ketchup,25 -99,Maionese,30 -100,Molho tártaro,20 -101,Azeitona em conserva,25 -102,Picles,20 -103,Champignon em conserva,25 -104,Goiabada,25 -105,Doce de abóbora,30 -106,Doce de leite em barra,20 -107,Banana em conserva,20 -108,Coco ralado,25 -109,Leite de coco,20 -110,Amido de milho,30 -111,Fermento biológico,20 -112,Fermento químico,20 -113,Geléia real,15 -114,Melado,20 -115,Calda de chocolate,25 -116,Calda de caramelo,25 -117,Água mineral,40 -118,Água com gás,35 -119,Refrigerante diet,25 -120,Suco natural,30 -121,Vinho branco,20 -122,Vinho tinto,20 -123,Vodka,15 -124,Gin,20 -125,Rum,15 -126,Tequila,15 -127,Licor de chocolate,20 -128,Licor de café,20 -129,Licor de menta,20 -130,Licor de anis,20 -131,Licor de amêndoa,20 -132,Licor de laranja,20 -133,Licor de limão,20 -134,Licor de cassis,20 -135,Licor de mel,20 -136,Licor de abacaxi,20 -137,Licor de maracujá,20 -138,Licor de banana,20 -139,Licor de cereja,20 -140,Licor de caramelo,20 -141,Licor de amora,20 -142,Licor de uva,20 -143,Licor de caipirinha,20 -144,Licor de avelã,20 -145,Licor de maçã,20 -146,Licor de pera,20 -147,Licor de framboesa,20 -148,Licor de morango,20 -149,Licor de pêssego,20 -150,Licor de limoncello,20 -151,Licor de romã,20 -152,Licor de tangerina,20 -153,Licor de figo,20 -154,Licor de goiaba,20 -155,Licor de jenipapo,20 -156,Licor de caju,20 -157,Licor de graviola,20 -158,Licor de jabuticaba,20 -159,Licor de côco,20 -160,Licor de amendoim,20 -161,Licor de abacate,20 -162,Licor de marula,20 -163,Licor de cupuaçu,20 -164,Licor de açaí,20 -165,Licor de melancia,20 -166,Licor de kiwi,20 -167,Licor de pimenta,20 -168,Licor de hortelã,20 -169,Licor de alecrim,20 -170,Licor de gengibre,20 -171,Licor de lavanda,20 -172,Licor de rosas,20 -173,Licor de jasmim,20 -174,Licor de violeta,20 -175,Licor de erva doce,20 -176,Licor de canela,20 -177,Licor de cravo,20 -178,Licor de noz moscada,20 -179,Licor de cardamomo,20 -180,Licor de anis estrelado,20 -181,Licor de baunilha,20 -182,Licor de laranja com chocolate,20 -183,Licor de café com chocolate,20 -184,Licor de creme brûlée,20 -185,Licor de cheesecake,20 -186,Licor de tiramisu,20 -187,Licor de limão siciliano,20 -188,Licor de bergamota,20 -189,Licor de açafrão,20 -190,Licor de sálvia,20 -191,Licor de capim santo,20 -192,Licor de marula com creme,20 -193,Licor de pimenta rosa,20 -194,Licor de pimenta dedo de moça,20 -195,Licor de chá verde,20 -196,Licor de chá preto,20 -197,Licor de chá de hibisco,20 -198,Licor de chá de jasmim,20 -199,Licor de chá de camomila,20 -200,Licor de chá de erva cidreira,20 diff --git a/client/src/database/java/data/ecommerce/data/funcionarios.csv b/client/src/database/java/data/ecommerce/data/funcionarios.csv deleted file mode 100644 index a9aa41f5b..000000000 --- a/client/src/database/java/data/ecommerce/data/funcionarios.csv +++ /dev/null @@ -1,5 +0,0 @@ -ID,NOME,CARGO,ESPECIALIDADE,SALÁRIO,DIASTRABALHADOS,SALÁRIODIA -1,Davi souza,Garçom,Honesto,1000,30,33.33,1099.89 -2,Estevam,Gerente,Honesto,10000,30,333.33,10999.890000000001 -3,Estevam,Gerente,Honesto,10000,30,333.33,10999.890000000001 -4,Estevam,Gerente,Honesto,10000,30,333.33,10999.890000000001 diff --git a/client/src/database/java/data/ecommerce/data/lucro_liquido.csv b/client/src/database/java/data/ecommerce/data/lucro_liquido.csv deleted file mode 100644 index 7a09bcb05..000000000 --- a/client/src/database/java/data/ecommerce/data/lucro_liquido.csv +++ /dev/null @@ -1,23 +0,0 @@ -Data,Custos fixos,Custos variáveis,Receita total,Valor Bruto,Custo,Despesas,Lucro Bruto,Lucro Líquido -01/01/2021,10000,2000,30000,18000,5000,4000,8000,3000 -02/01/2021,9000,1800,28000,16600,4500,3500,8650,4000 -03/01/2021,9500,1900,29000,16800,5000,3700,8130,4000 -04/01/2021,10500,2100,32000,19400,5500,3900,9660,4000 -05/01/2021,11000,2200,33000,19800,6000,4100,9700,4000 -06/01/2021,11500,2300,34000,20200,6500,4300,10000,4000 -07/01/2021,12000,2400,35000,20600,7000,4500,10300,4000 -08/01/2021,12500,2500,36000,21000,7500,4700,10600,4000 -09/01/2021,13000,2600,37000,21400,8000,4900,10900,4000 -10/01/2021,13500,2700,38000,21800,8500,5100,11200,4000 -11/01/2021,14000,2800,39000,22200,9000,5300,11500,4000 -12/01/2021,14500,2900,40000,22600,9500,5500,11800,4000 -13/01/2021,15000,3000,41000,23000,10000,5700,12100,4000 -14/01/2021,15500,3100,42000,23400,10500,5900,12400,4000 -15/01/2021,16000,3200,43000,23800,11000,6100,12700,4000 -16/01/2021,16500,3300,44000,24200,11500,6300,13000,4000 -17/01/2021,17000,3400,45000,24600,12000,6500,13300,4000 -18/01/2021,17500,3500,46000,25000,12500,6700,13600,4000 -19/01/2021,18000,3600,47000,25400,13000,6900,13900,4000 -20/01/2021,18500,3700,48000,25800,13500,7100,14200,4000 -21/01/2021,19000,3800,49000,26200,14000,7300,14500,4000 -22/01/2021,19500,3900,50000,26600,14500,7500,14800,4000489800 diff --git a/client/src/database/java/data/ecommerce/data/orders.csv b/client/src/database/java/data/ecommerce/data/orders.csv deleted file mode 100644 index 232bfee41..000000000 --- a/client/src/database/java/data/ecommerce/data/orders.csv +++ /dev/null @@ -1,7 +0,0 @@ -id,userPhone,productIds,dateOrdered,complete -1,9876543210,|1|1,Fri Oct 22 14:22:31 IST 2021,true -2,1234567890,|3,Fri Oct 22 17:15:18 IST 2021,true -3,9876543210,|1|2|1,Fri Oct 22 19:33:42 IST 2021,true -4,1234567890,|1|2|1,Fri Oct 22 22:06:38 IST 2021,true -5,1234567890,|1|1|5|4,Fri Oct 22 22:13:15 IST 2021,true -6,9876543210,|1|4|1,Tue Oct 26 15:29:13 IST 2021,true diff --git a/client/src/database/java/data/ecommerce/data/otp.csv b/client/src/database/java/data/ecommerce/data/otp.csv deleted file mode 100644 index 627149698..000000000 --- a/client/src/database/java/data/ecommerce/data/otp.csv +++ /dev/null @@ -1 +0,0 @@ -9876543210,965982 \ No newline at end of file diff --git a/client/src/database/java/data/ecommerce/data/pratos.csv b/client/src/database/java/data/ecommerce/data/pratos.csv deleted file mode 100644 index a88939a90..000000000 --- a/client/src/database/java/data/ecommerce/data/pratos.csv +++ /dev/null @@ -1,101 +0,0 @@ -ID,NOME,PRECO,ACOMPANHAMENTO -1,Feijoada,25.99,Farofa Couve Laranja -2,Feijoada,25.99,Farofa Couve Laranja -3,Churrasco,35.99,Arroz Feijão Vinagrete -4,Strogonoff de frango,22.99,Arroz Batata Palha -5,Strogonoff de carne,28.99,Arroz Batata Palha -6,Salada mista,15.99,Pão de alho -7,Sushi,30.99,Molho shoyu Wasabi Gengibre em conserva -8,Macarrão à bolonhesa,18.99,Queijo ralado e Pão de alho -9,Frango grelhado,20.99,Arroz Feijão Salada -10,Peixe frito,25.99,Arroz Feijão Salada -11,Escondidinho de carne seca,24.99,Arroz Farofa -12,Escondidinho de frango,21.99,Arroz Farofa -13,Bife à parmegiana,26.99,Arroz Batata frita Salada -14,Lasanha,20.99,Pão de alho Salada -15,Caldeirada de frutos do mar,32.99,Arroz Pirão Salada -16,Peixe ao molho,23.99,Arroz Purê de batata Salada -17,Filé de frango à milanesa,21.99,Arroz Feijão Salada -18,Carne de sol com mandioca,29.99,Arroz Feijão verde Salada -19,Feijão tropeiro,19.99,Arroz Couve refogada -20,Tilápia grelhada,25.99,Arroz Feijão Salada -21,Frango xadrez,22.99,Arroz Legumes na manteiga -22,Carne de panela,26.99,Arroz Feijão Salada -23,Filé de frango grelhado,20.99,Arroz Feijão Salada -24,Peixe assado,24.99,Arroz Legumes no vapor -25,Feijão branco,17.99,Arroz Salada -26,Bacalhau à Gomes de Sá,35.99,Arroz Batata Ovo cozido Azeitonas -27,Escondidinho de camarão,29.99,Arroz Farofa -28,Salada Caesar,17.99,Pão de alho Molho Caesar -29,Tacos,24.99,Guacamole Sour Cream -30,Salada de frutas,13.99,Granola Mel -31,Hambúrguer,21.99,Batata frita Maionese -32,Frango ao curry,23.99,Arroz Naan -33,Risoto de camarão,28.99,Pão de alho Salada -34,Arroz carreteiro,19.99,Mandioca Salada -35,Farofa de bacon,13.99,Arroz Feijão Salada -36,Risoto de cogumelos,26.99,Pão de alho Sal -37,Chilli com carne,22.99,Arroz Sour Cream Nachos -38,Arroz à grega,16.99,Feijão Salada -39,Penne à carbonara,21.99,Salada Pão de alho -40,Rabada com agrião,28.99,Arroz Polenta Salada -41,Polenta com molho bolonhesa,18.99,Queijo ralado Salada -42,Salada de quinoa,19.99,Pão de alho Molho de mostarda e mel -43,Salada de folhas,14.99,Torradas Molho de iogurte -44,Feijão preto,18.99,Arroz Salada -45,Sopa de legumes,15.99,Pão de alho Queijo ralado -46,Ensopado de frango,23.99,Arroz Salada -47,Arroz doce,12.99,Canela em pó -48,Mousse de maracujá,14.99,Calda de maracujá -49,Pudim de leite,16.99,Calda de caramelo -50,Cocada cremosa,13.99,Coco ralado -51,Risoto de limão siciliano,27.99,Pão de alho Salada -52,Estrogonofe de camarão,32.99,Arroz Batata Palha -53,Frango ao molho pardo,24.99,Arroz Batata frita Salada -54,Bacalhoada,34.99,Arroz Batata Salada -55,Cuscuz paulista,20.99,Sardinha Salada -56,Feijoada vegetariana,22.99,Arroz Farofa Couve -57,Quiche de queijo,16.99,Salada -58,Crepes de frango,21.99,Molho branco Salada -59,Risoto de abóbora com carne seca,28.99,Pão de alho Salada -60,Farofa de ovos,13.99,Arroz Feijão Salada -61,Lasanha de berinjela,19.99,Pão de alho Salada -62,Frango assado,25.99,Arroz Farofa Salada -63,Peixe ensopado,26.99,Arroz Purê de batata Salada -64,Rondelli de presunto e queijo,20.99,Pão de alho Salada -65,Costela suína assada,29.99,Arroz Feijão Salada -66,Lasanha de frango,21.99,Salada Pão de alho -67,Moqueca de camarão,32.99,Arroz Pirão Salada -68,Carne louca,23.99,Arroz Salada Pão francês -69,Bife acebolado,25.99,Arroz Batata frita Salada -70,Bife de frango à parmegiana,23.99,Arroz Batata frita Salada -71,Frango ao creme de milho,22.99,Arroz Salada -72,Almôndegas ao sugo,24.99,Arroz Batata palha Salada -73,Arroz à piemontese,22.99,Salada Pão de alho -74,Canelone de presunto e queijo,18.99,Pão de alho Salada -75,Quibe assado,21.99,Homus Salada -76,Lentilha,17.99,Arroz Salada -77,Arroz com lentilha,18.99,Cebola frita Salada -78,Arroz de forno,20.99,Salada Pão de alho -79,Purê de abóbora,16.99,Arroz Salada -80,Sopa de ervilha,15.99,Pão de alho Queijo ralado -81,Peixe à milanesa,25.99,Arroz Salada -82,Bisteca de porco,24.99,Arroz Feijão Salada -83,Bacalhau à bras,32.99,Salada Pão de alho -84,Frango à passarinho,23.99,Arroz Salada -85,Escondidinho de camarão com abóbora,28.99,Arroz Salada -86,Moqueca de peixe,30.99,Arroz Pirão Salada -87,Salada de macarrão,16.99,Pão de alho Salada -88,Bobó de camarão,32.99,Arroz Salada -89,Arroz com frango,20.99,Feijão Salada -90,Carne seca com mandioca,28.99,Arroz Salada -91,Salpicão de frango,18.99,Pão de alho -92,Picadinho de carne,26.99,Arroz Farofa Salada -93,Feijão branco com legumes,19.99,Arroz Salada -94,Arroz de pato,35.99,Salada Pão de alho -95,Frango xadrez com legumes,23.99,Arroz Salada -96,Caldo verde,15.99,Queijo ralado Pão de alho -97,Carne de panela com legumes,26.99,Arroz Salada -98,Bolinho de arroz,14.99,Molho de pimenta -99,Frango à caçadora,24.99,Arroz Purê de batata Salada -100,Costelinha de porco ao molho barbecue,29.99,Arroz Salada diff --git a/client/src/database/java/data/ecommerce/data/previsaoVendas.csv b/client/src/database/java/data/ecommerce/data/previsaoVendas.csv deleted file mode 100644 index 0c82dcaf5..000000000 --- a/client/src/database/java/data/ecommerce/data/previsaoVendas.csv +++ /dev/null @@ -1,5 +0,0 @@ -Data,Total Vendas -2023-04-29,0.04 -2023-04-29,0.08 -2023-04-29,0.060000000000000005 -2023-09-08,0.060000000000000005 diff --git a/client/src/database/java/data/ecommerce/data/previsao_demanda.csv b/client/src/database/java/data/ecommerce/data/previsao_demanda.csv deleted file mode 100644 index fd4158d8e..000000000 --- a/client/src/database/java/data/ecommerce/data/previsao_demanda.csv +++ /dev/null @@ -1,1093 +0,0 @@ -ID,Data,Hora,Dia da Semana,Clientes -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -17,2022-01-02,8,Sunday,10 -18,2022-01-02,9,Sunday,20 -19,2022-01-02,10,Sunday,35 -20,2022-01-02,11,Sunday,45 -21,2022-01-02,12,Sunday,55 -22,2022-01-02,13,Sunday,60 -23,2022-01-02,14,Sunday,65 -24,2022-01-02,15,Sunday,70 -25,2022-01-02,16,Sunday,60 -26,2022-01-02,17,Sunday,50 -27,2022-01-02,18,Sunday,40 -28,2022-01-02,19,Sunday,35 -29,2022-01-02,20,Sunday,30 -30,2022-01-02,21,Sunday,25 -31,2022-01-02,22,Sunday,20 -32,2022-01-02,23,Sunday,15 -33,2022-01-03,8,Monday,10 -34,2022-01-03,9,Monday,15 -35,2022-01-03,10,Monday,20 -36,2022-01-03,11,Monday,25 -37,2022-01-03,12,Monday,30 -38,2022-01-03,13,Monday,35 -39,2022-01-03,14,Monday,40 -40,2022-01-03,15,Monday,45 -41,2022-01-03,16,Monday,50 -42,2022-01-03,17,Monday,40 -43,2022-01-03,18,Monday,35 -44,2022-01-03,19,Monday,30 -45,2022-01-03,20,Monday,25 -46,2022-01-03,21,Monday,20 -47,2022-01-03,22,Monday,15 -48,2022-01-03,23,Monday,10 -49,2022-01-04,8,Tuesday,10 -50,2022-01-04,9,Tuesday,151 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -33,2022-01-03,8,Monday,10 -34,2022-01-03,9,Monday,15 -35,2022-01-03,10,Monday,20 -36,2022-01-03,11,Monday,25 -37,2022-01-03,12,Monday,30 -38,2022-01-03,13,Monday,35 -39,2022-01-03,14,Monday,40 -40,2022-01-03,15,Monday,45 -41,2022-01-03,16,Monday,50 -42,2022-01-03,17,Monday,40 -43,2022-01-03,18,Monday,35 -44,2022-01-03,19,Monday,30 -45,2022-01-03,20,Monday,25 -46,2022-01-03,21,Monday,20 -47,2022-01-03,22,Monday,15 -48,2022-01-03,23,Monday,10 -49,2022-01-04,8,Tuesday,10 -50,2022-01-04,9,Tuesday,151 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -17,2022-01-02,8,Sunday,10 -18,2022-01-02,9,Sunday,20 -19,2022-01-02,10,Sunday,35 -20,2022-01-02,11,Sunday,45 -21,2022-01-02,12,Sunday,55 -22,2022-01-02,13,Sunday,60 -23,2022-01-02,14,Sunday,65 -24,2022-01-02,15,Sunday,70 -25,2022-01-02,16,Sunday,60 -26,2022-01-02,17,Sunday,50 -27,2022-01-02,18,Sunday,40 -28,2022-01-02,19,Sunday,35 -29,2022-01-02,20,Sunday,30 -30,2022-01-02,21,Sunday,25 -31,2022-01-02,22,Sunday,20 -32,2022-01-02,23,Sunday,15 -33,2022-01-03,8,Monday,10 -34,2022-01-03,9,Monday,15 -35,2022-01-03,10,Monday,20 -36,2022-01-03,11,Monday,25 -37,2022-01-03,12,Monday,30 -38,2022-01-03,13,Monday,35 -39,2022-01-03,14,Monday,40 -40,2022-01-03,15,Monday,45 -41,2022-01-03,16,Monday,50 -42,2022-01-03,17,Monday,40 -43,2022-01-03,18,Monday,35 -44,2022-01-03,19,Monday,30 -45,2022-01-03,20,Monday,25 -46,2022-01-03,21,Monday,20 -47,2022-01-03,22,Monday,15 -48,2022-01-03,23,Monday,10 -33,2022-01-03,8,Monday,10 -34,2022-01-03,9,Monday,15 -35,2022-01-03,10,Monday,20 -36,2022-01-03,11,Monday,25 -37,2022-01-03,12,Monday,30 -38,2022-01-03,13,Monday,35 -39,2022-01-03,14,Monday,40 -40,2022-01-03,15,Monday,45 -41,2022-01-03,16,Monday,50 -42,2022-01-03,17,Monday,40 -43,2022-01-03,18,Monday,35 -44,2022-01-03,19,Monday,30 -45,2022-01-03,20,Monday,25 -46,2022-01-03,21,Monday,20 -47,2022-01-03,22,Monday,15 -48,2022-01-03,23,Monday,10 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -1,2022-01-01,8,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 -2,2022-01-01,9,Saturday,20 -3,2022-01-01,10,Saturday,30 -4,2022-01-01,11,Saturday,45 -5,2022-01-01,12,Saturday,60 -6,2022-01-01,13,Saturday,70 -7,2022-01-01,14,Saturday,75 -8,2022-01-01,15,Saturday,70 -9,2022-01-01,16,Saturday,60 -10,2022-01-01,17,Saturday,50 -11,2022-01-01,18,Saturday,40 -12,2022-01-01,19,Saturday,35 -13,2022-01-01,20,Saturday,30 -14,2022-01-01,21,Saturday,25 -15,2022-01-01,22,Saturday,20 -16,2022-01-01,23,Saturday,15 diff --git a/client/src/database/java/data/ecommerce/data/products.csv b/client/src/database/java/data/ecommerce/data/products.csv deleted file mode 100644 index 13a14109d..000000000 --- a/client/src/database/java/data/ecommerce/data/products.csv +++ /dev/null @@ -1,7 +0,0 @@ -id,name,price,description,isActive -1,example product 1,123.0,some example description,true -2,example product 2,456.0,some example description,true -3,example product 3,789.0,some more example text,true -4,example product 4,12.0,some more example text,true -5,example product 5,345.0,some more example text,true -6,example product 6,678.0,some example text for description,true diff --git a/client/src/database/java/data/ecommerce/data/rentabilidade.csv b/client/src/database/java/data/ecommerce/data/rentabilidade.csv deleted file mode 100644 index 8d4449210..000000000 --- a/client/src/database/java/data/ecommerce/data/rentabilidade.csv +++ /dev/null @@ -1,31 +0,0 @@ -ID,Item,Preço de Venda,Custo de Produção,Quantidade Vendida -1,Cerveja,5.00,2.00,10 -2,Refrigerante,4.00,1.00,20 -3,Suco,6.00,2.50,10 -4,Água,3.00,0.50,20 -5,Salgado,4.00,1.00,20 -6,Doce,3.00,0.50,20 -7,Pizza,20.00,10.00,10 -8,Hambúrguer,15.00,5.00,10 -9,Hot Dog,10.00,3.00,10 -10,Macarrão,15.00,5.00,10 -11,Arroz,10.00,3.00,10 -12,Feijão,10.00,3.00,10 -13,Carne,20.00,10.00,10 -14,Frango,15.00,5.00,10 -15,Peixe,15.00,5.00,10 -16,Fruta,5.00,2.00,10 -17,Verdura,5.00,2.00,10 -18,Legume,5.00,2.00,10 -19,Leite,5.00,2.00,10 -20,Ovo,5.00,2.00,10 -21,Queijo,5.00,2.00,10 -22,Presunto,5.00,2.00,10 -23,Mortadela,5.00,2.00,10 -24,Peito de Peru,5.00,2.00,10 -25,Peito de Frango,5.00,2.00,10 -26,Peito de Boi,5.00,2.00,10 -27,Peito de Porco,5.00,2.00,10 -28,Peito de Cordeiro,5.00,2.00,10 -29,Peito de Cabrito,5.00,2.00,10 -30,Peito de Coelho,5.00,2.00,10 diff --git a/client/src/database/java/data/ecommerce/data/reservas.csv b/client/src/database/java/data/ecommerce/data/reservas.csv deleted file mode 100644 index 476217224..000000000 --- a/client/src/database/java/data/ecommerce/data/reservas.csv +++ /dev/null @@ -1,12 +0,0 @@ -ID,NOME,DATA,QTDRESERVAS -1,Davi,2023-04-30,3.0 -2,Enzo,2023-04-30,1.0 -3,Lucas,2023-04-30,1.0 -4,Amanda,2023-04-30,1.0 -5,Gabriel,2023-05-01,5.0 -6,Neli,2023-05-01,5.0 -7,Marcos,2023-05-01,5.0 -8,Otávio,2023-05-12,2.0 -9,Luiz,2023-05-04,2.0 -10,2023-05-08,3, -1,Estevam Souza,2023-05-09 00:00:00,1.0 diff --git a/client/src/database/java/data/ecommerce/data/total_clientes.csv b/client/src/database/java/data/ecommerce/data/total_clientes.csv deleted file mode 100644 index d87404258..000000000 --- a/client/src/database/java/data/ecommerce/data/total_clientes.csv +++ /dev/null @@ -1,129 +0,0 @@ -ID,NOME,GASTO -2,Maria,220.0 -3,Ana,75.2 -4,Lucas,320.5 -5,Pedro,50.0 -6,Julia,80.0 -7,Rafael,100.25 -8,Gabriel,45.3 -9,Carla,170.0 -10,Paulo,210.5 -11,Luiza,65.7 -12,Marcos,190.0 -13,Sofia,50.0 -14,Felipe,75.3 -15,Marina,350.2 -16,Eduardo,80.4 -17,Roberta,110.0 -18,Rodrigo,25.0 -19,Isabela,60.0 -20,Bruno,40.5 -21,Tiago,90.0 -22,Carolina,120.3 -23,André,80.0 -24,Bianca,45.7 -25,Leandro,250.0 -26,Isadora,65.8 -27,Henrique,150.0 -28,Larissa,80.9 -29,Vinicius,180.0 -30,Fernanda,120.0 -31,Gustavo,50.5 -32,Mariana,95.0 -33,Diego,130.0 -34,Aline,180.5 -35,Ricardo,60.0 -36,Tatiana,110.2 -37,Alexandre,75.0 -38,Lívia,90.0 -39,Leonardo,120.0 -40,Silvia,55.5 -41,Guilherme,200.0 -42,Jéssica,120.0 -43,Arthur,75.8 -44,Caroline,90.0 -45,Renato,55.2 -46,Camila,150.0 -47,Carlos,80.0 -48,Tamires,30.5 -49,Gabriela,190.0 -50,Leila,140.0 -51,Andreia,55.0 -52,Thiago,85.2 -53,Ana Clara,45.0 -54,Lucas Henrique,135.0 -55,Priscila,220.5 -56,Victor,65.3 -57,Regina,40.0 -58,Matheus,90.2 -59,Daniel,120.0 -60,Isabel,75.0 -61,Antonio,60.5 -62,Marcia,110.0 -63,Matias,150.8 -64,Caroline,180.0 -65,Davi,50.0 -66,Paula,80.0 -67,Gilberto,120.5 -68,Emanuela,130.0 -69,Junior,40.0 -70,Luciana,60.0 -71,Giovanni,180.0 -72,Ingrid,150.0 -73,José,90.0 -74,Bruna,45.3 -75,Amanda,120.0 -76,Joana,75.5 -77,Luana,55.0 -78,Diego Henrique,80.2 -79,Adriana,100.0 -80,Francisco,35.0 -81,Nicole,65.0 -82,Reginaldo,150.0 -83,João Victor,100.5 -84,Roberto,90.0 -85,Tamara,40.0 -86,Fabiana,95.0 -87,Gabrielly,85.0 -88,Jackson,55.5 -89,Débora,120.0 -90,Emilly,75.2 -91,Luiz,110.0 -92,Raphael,80.0 -93,Antonella,150.0 -94,Benjamin,95.5 -95,Karla,70.0 -96,Beatriz,40.2 -97,João Pedro,120.0 -98,Regiane,90.5 -99,Isaac,75.0 -100,Edna,60.0 -101,David,110.0 -102,Márcio,80.2 -103,Danieli,150.5 -104,Cauã,85.0 -105,Rafaela,120.0 -106,Valdir,40.5 -107,Érica,90.0 -108,Heitor,75.0 -109,Maíra,60.0 -110,Samuel,110.0 -111,Rayane,80.2 -112,Larissa,150.5 -113,Jessica,85.0 -114,Marcos Paulo,120.0 -115,Eliana,90.0 -116,Marcelo,60.0 -117,Tiago,110.0 -118,Viviane,80.2 -119,Jaqueline,150.5 -120,Mayara,85.0 -121,Guilhermina,120.0 -122,Juliano,90.0 -123,Simone,60.0 -124,Joaquim,110.0 -125,Alana,80.2 -126,Lais,150.5 -127,Lucas Oliveira,85.0 -128,Gilmar,120.0 -129,Leiliane,90.0 diff --git a/client/src/database/java/data/ecommerce/data/users.csv b/client/src/database/java/data/ecommerce/data/users.csv deleted file mode 100644 index bc615f422..000000000 --- a/client/src/database/java/data/ecommerce/data/users.csv +++ /dev/null @@ -1,3 +0,0 @@ -id,phone,address,timestamp,isStaff -1,1234567890,some example address for user 1234567890,Fri Oct 22 12:56:06 IST 2021,true -2,9876543210,another example address,Fri Oct 22 14:20:51 IST 2021,false diff --git a/client/src/database/java/data/ecommerce/data/vendas.csv b/client/src/database/java/data/ecommerce/data/vendas.csv deleted file mode 100644 index 3841786e3..000000000 --- a/client/src/database/java/data/ecommerce/data/vendas.csv +++ /dev/null @@ -1,163 +0,0 @@ -ID,DataVenda,Valor -1,2023-01-01,9 -2,2023-02-01,2 -3,2023-03-01,5 -4,2023-04-01,2 -5,2023-05-01,1 -6,2023-06-01,1 -7,2023-07-01,1 -8,2023-08-01,1 -9,2023-09-01,1 -10,2023-10-01,1 -11,2023-11-01,1 -12,2023-12-01,1 -13,2024-01-01,1 -14,2024-02-01,1 -15,2024-03-01,1 -16,2024-04-01,1 -17,2024-05-01,1 -18,2024-06-01,1 -19,2024-07-01,1 -20,2024-08-01,1 -1,2023-01-01,9.0 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -21,2024-08-01,0.0 -1,2023-01-01,9.0 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -1,2023-01-01,9.0 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -21,2024-08-01,0.0 -42,2024-08-01,0.03 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -21,2024-08-01,0.0 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -2,2023-02-01,2.0 -3,2023-03-01,5.0 -4,2023-04-01,2.0 -5,2023-05-01,1.0 -6,2023-06-01,1.0 -7,2023-07-01,1.0 -8,2023-08-01,1.0 -9,2023-09-01,1.0 -10,2023-10-01,1.0 -11,2023-11-01,1.0 -12,2023-12-01,1.0 -13,2024-01-01,1.0 -14,2024-02-01,1.0 -15,2024-03-01,1.0 -16,2024-04-01,1.0 -17,2024-05-01,1.0 -18,2024-06-01,1.0 -19,2024-07-01,1.0 -20,2024-08-01,1.0 -21,2024-08-01,0.0 -42,2024-08-01,0.03 diff --git a/client/src/database/java/data/ecommerce/data/vendasCategorias.csv b/client/src/database/java/data/ecommerce/data/vendasCategorias.csv deleted file mode 100644 index a96e034b0..000000000 --- a/client/src/database/java/data/ecommerce/data/vendasCategorias.csv +++ /dev/null @@ -1,4 +0,0 @@ -Categoria,Vendas,PrecoMedio -Comida,342,18.834246262210804 -Bebida,639,19.70266108392785 -Sobremesa,274,6.102068209178871 diff --git a/client/src/database/java/data/ecommerce/src/Driver.java b/client/src/database/java/data/ecommerce/src/Driver.java deleted file mode 100644 index 713f1ae18..000000000 --- a/client/src/database/java/data/ecommerce/src/Driver.java +++ /dev/null @@ -1,178 +0,0 @@ -package src; - -import java.util.Scanner; -import java.util.Vector; - -public class Driver { - static User user; - static Order order; - static Orders orders; - - public static void main(String[] args) { - Scanner scanner = new Scanner(System.in); - scanner.useDelimiter("\n"); - - Vector options = new Vector<>(); - - // authentication - options.add("Login"); - - // no auth req - options.add("Show Products Catalogue"); - - // auth required - options.add("Add To Cart"); - options.add("View Your Cart"); - options.add("Order Now"); - - // admin - options.add("Add New Product To Catalogue"); - options.add("View All Completed Orders"); - options.add("View Completed Order Cart"); - - // utils (no auth req) - options.add("See options"); - options.add("Exit"); - - Products products = new Products(); - Utils.showOptions(options); - boolean flag = true; - while (flag) { - int caseChosen = Utils.getOption(options, scanner); - - switch (caseChosen) { - case 1: - // Login - authenticateUser(scanner); - break; - - case 2: - // show all products - Print.print(products.getProducts()); - break; - - case 3: - // add product to cart - if (order != null) { - Product selectedProduct = null; - while (selectedProduct == null) { - int productId = Utils.getIntInRange("Add to cart, Product ID: ", 1, 10000, scanner); - selectedProduct = products.productIdToProduct(productId); - if (selectedProduct != null) { - Print.print(selectedProduct.name + " Added to cart ✅", Print.GREEN); - } else { - Print.print("Invalid Product ID, try again...", Print.RED); - } - } - order.addToCart(selectedProduct); - } else { - Print.print("Login to explore this feature...", Print.YELLOW); - } - break; - - case 4: - // view your cart - if (order != null) { - order.getCartItems(); - } else { - Print.print("Login to explore this feature...", Print.YELLOW); - } - break; - - case 5: - // order - if (order != null) { - order.completeOrder(scanner); - } else { - Print.print("Login to explore this feature...", Print.YELLOW); - } - break; - - case 6: - // add product to catalouge - if (user == null) { - Print.print("Login to explore this feature...", Print.YELLOW); - } else if (user.isStaff) { - products.addProduct(scanner); - } else { - Print.print("You do not have permission to add products.", Print.YELLOW); - } - break; - - case 7: - // Print all completed orders (admin only) - if (user == null) { - Print.print("Login to explore this feature...", Print.YELLOW); - } else if (user.isStaff) { - Orders useOrders = getOrCreateOrders(); - Vector ord = useOrders.getAllOrders(); - Print.printOrders(ord); - } else { - Print.print("You do not have permission to view all Orders.", Print.YELLOW); - } - - break; - - case 9: - // show options - Utils.showOptions(options); - break; - - case 8: - // view order details - if (user == null) { - Print.print("Login to explore this feature...", Print.YELLOW); - } else if (user.isStaff) { - Orders useOrders1 = getOrCreateOrders(); - int orderId = Utils.getIntInRange("Order ID: ", 1, 100, scanner); - useOrders1.printCartOf(orderId); - } else { - Print.print("You do not have permission to view order details.", Print.YELLOW); - } - break; - - default: - flag = false; - break; - } - - } - scanner.close(); - } - - public static void authenticateUser(Scanner scanner) { - // get phone number from user - String userPhone = "" + Utils.getBigIntInRange("📞 Phone: ", 10, 10, scanner); - - // initiate the PhoneOtp class - PhoneOtp phoneOtp = new PhoneOtp(userPhone); - - // generate otp - phoneOtp.generateOtp(); - - while (true) { - // get otp from user - String userOtp = Integer.toString(Utils.getIntInRange("🔑 OTP: ", 6, 6, scanner)); - - // validate otp - if (phoneOtp.validateOtp(userPhone, userOtp)) { - user = new User(userPhone, scanner); - order = new Order(user); - - Print.print("Logged In ✅", Print.GREEN); - return; - } - Print.print("❗️ Incorrect OTP. Try again...", Print.RED); - } - } - - public static Orders getOrCreateOrders() { - if (orders != null) { - return orders; - } - Orders createOrders = new Orders(); - orders = createOrders; - return orders; - } - -} diff --git a/client/src/database/java/data/ecommerce/src/Int.java b/client/src/database/java/data/ecommerce/src/Int.java deleted file mode 100644 index 255537a0b..000000000 --- a/client/src/database/java/data/ecommerce/src/Int.java +++ /dev/null @@ -1,5 +0,0 @@ -package src; - -public class Int { - -} diff --git a/client/src/database/java/data/ecommerce/src/LastLine.java b/client/src/database/java/data/ecommerce/src/LastLine.java deleted file mode 100644 index e169076ab..000000000 --- a/client/src/database/java/data/ecommerce/src/LastLine.java +++ /dev/null @@ -1,53 +0,0 @@ -package src; - -import java.io.File; -import java.io.IOException; -import java.io.RandomAccessFile; - -// credits: https://stackoverflow.com/a/7322581/14225169 -public class LastLine { - public static String tail(File file) { - RandomAccessFile fileHandler = null; - try { - fileHandler = new RandomAccessFile(file, "r"); - long fileLength = fileHandler.length() - 1; - StringBuilder sb = new StringBuilder(); - - for (long filePointer = fileLength; filePointer != -1; filePointer--) { - fileHandler.seek(filePointer); - int readByte = fileHandler.readByte(); - - if (readByte == 0xA) { - if (filePointer == fileLength) { - continue; - } - break; - - } else if (readByte == 0xD) { - if (filePointer == fileLength - 1) { - continue; - } - break; - } - - sb.append((char) readByte); - } - - String lastLine = sb.reverse().toString(); - return lastLine; - } catch (java.io.FileNotFoundException e) { - e.printStackTrace(); - return null; - } catch (java.io.IOException e) { - e.printStackTrace(); - return null; - } finally { - if (fileHandler != null) - try { - fileHandler.close(); - } catch (IOException e) { - /* ignore */ - } - } - } -} diff --git a/client/src/database/java/data/ecommerce/src/Order.java b/client/src/database/java/data/ecommerce/src/Order.java deleted file mode 100644 index eac7af382..000000000 --- a/client/src/database/java/data/ecommerce/src/Order.java +++ /dev/null @@ -1,144 +0,0 @@ -package src; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileWriter; -import java.util.Date; -import java.util.Scanner; -import java.util.Vector; - -public class Order { - int id; - User user; - Vector products = new Vector<>(); - String dateOrdered; - boolean complete; - - Order(User user) { - this.user = user; - } - - // add items to order (cart) - public void addToCart(Product product) { - this.products.add(product); - } - - public void getCartItems() { - if (this.products.size() > 0) { - Print.print(this.products, this.getCartTotal(this)); - } else { - Print.print("your cart is empty..."); - } - } - - /** - * marks order as complete, updates date and saves info to DB - */ - public void completeOrder(Scanner scanner) { - if (this.products.size() > 0) { - this.dateOrdered = new Date().toString(); - this.complete = true; - - Print.print("Your order total is: ₹" + getCartTotal(this), Print.YELLOW); - - String value = Utils.getStringInRange("Press 'y' to place your order: ", 1, 1, scanner); - - if (value.equals("y")) { - addOrderToFile(); - Print.print("✅ Order Placed.", Print.GREEN); - } - } else { - Print.print("Make sure you add products to your cart first...", Print.YELLOW); - } - } - - public Double getCartTotal(Order order) { - Double total = (double) 0; - for (Product product: this.products) { - total += product.price; - } - return total; - } - - public void addOrderToFile() { - String data = this.csvString(this); - try { - // Creates a Writer using FileWriter - FileWriter writer = new FileWriter("./data/orders.csv", true); - // Writes string and line seperator to the file - writer.write(data); - writer.write(System.getProperty("line.separator")); - // Closes the writer - writer.close(); - } catch (Exception e) { - e.getStackTrace(); - } - } - - public String csvString(Order order) { - this.id = Utils.getNewId("./data/orders.csv"); - - String lineSeperatedProductIds = ""; - for (Product product: order.products) { - lineSeperatedProductIds += "|" + product.id; - } - return "" + order.id + "," + order.user.phone + "," + lineSeperatedProductIds + "," + order.dateOrdered + "," + order.complete; - } - -} - -class Orders { - Vector orders = new Vector<>(); - - Orders() { - Products products = new Products(); - - File file = new File("./data/orders.csv"); - Scanner fileScanner; - try { - fileScanner = new Scanner(file); - // process the file, one line at a time - while (fileScanner.hasNextLine()) { - String[] line = fileScanner.nextLine().split(","); - - if (line[4].equals("true")) { - User user = new User(line[1], new Scanner(System.in)); - Order order = new Order(user); - order.id = Integer.parseInt(line[0]); - String[] allProductIds = line[2].split("|"); - for (String productId : allProductIds) { - if (productId.equals("|")) {continue;} - Product selectedProduct = products.productIdToProduct(Integer.parseInt(productId)); - order.addToCart(selectedProduct); - } - - order.dateOrdered = line[3]; - order.complete = Boolean.parseBoolean(line[4]); - - this.orders.add(order); - } - } - fileScanner.close(); - - } catch (FileNotFoundException e) { - e.printStackTrace(); - } - } - - public Vector getAllOrders() { - return this.orders; - } - - public void printCartOf(int orderId) { - Order useOrder; - for (Order order: this.orders) { - if (order.id == orderId) { - useOrder = order; - useOrder.getCartItems(); - return; - } - } - Print.print("Invalid Order ID...", Print.RED); - } - -} \ No newline at end of file diff --git a/client/src/database/java/data/ecommerce/src/PhoneOtp.java b/client/src/database/java/data/ecommerce/src/PhoneOtp.java deleted file mode 100644 index 23df20ee1..000000000 --- a/client/src/database/java/data/ecommerce/src/PhoneOtp.java +++ /dev/null @@ -1,50 +0,0 @@ -package src; - -import java.util.Random; - -import java.io.FileNotFoundException; -import java.io.PrintWriter; - -public class PhoneOtp { - private String phone; - private String otp; - - public PhoneOtp(String phone) { - this.phone = phone; - } - - public boolean generateOtp() { - return sendOtp(getOtp()); - } - - public boolean validateOtp(String phone, String otp) { - if (this.otp.equals(otp) && this.phone.equals(phone)) { - return true; - } - return false; - } - - private static String getOtp() { - Random rand = new Random(); - int number = (rand.nextInt(1000000)); - if (number < 100000) { - number = (rand.nextInt(1000000)) + 100000; - } - return String.format("%06d", number); - } - - private boolean sendOtp(String otp) { - this.otp = otp; - - // make API request to otp provider - // create/update a file 'otp.csv' and print inside it 'phone,otp' - try (PrintWriter writer = new PrintWriter("./data/otp.csv")) { - writer.write(phone + ',' + otp); - } catch (FileNotFoundException e) { - System.out.println(e); - return false; - } - return true; - } - -} diff --git a/client/src/database/java/data/ecommerce/src/Print.java b/client/src/database/java/data/ecommerce/src/Print.java deleted file mode 100644 index 3fd6778ae..000000000 --- a/client/src/database/java/data/ecommerce/src/Print.java +++ /dev/null @@ -1,158 +0,0 @@ -package src; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.Vector; - -public class Print { - // ANSI codes: https://stackoverflow.com/a/5762502/14225169 - public static final String RESET = "\u001B[0m"; - public static final String RED = "\u001B[31m"; - public static final String GREEN = "\u001B[32m"; - public static final String YELLOW = "\u001B[33m"; - public static final String PURPLE = "\u001B[35m"; - public static final String CYAN = "\u001B[36m"; - // public static final String BLACK = "\u001B[30m"; - // public static final String BLUE = "\u001B[34m"; - - // handle printing to console using method overloading - public static void print(String printThis, boolean noNewLine) { - if (noNewLine) { - System.out.print(printThis); - } - } - - public static void print(String printThis) { - System.out.println(printThis); - } - - public static void print(String printThis, String color) { - System.out.println(color + printThis + RESET); - } - - public static void print(Integer printThis) { - System.out.println(printThis); - } - - public static void print(Vector printThis, Double cartTotal) { - List> rows = new ArrayList<>(); - List headers = Arrays.asList("|", "ID", "|", "Name", "|", "Price", "|", "Quantity", "|", "Description"); - rows.add(headers); - - // keep track of elements we've already seen - // (https://stackoverflow.com/a/10457632/14225169) - Set> productCache = new HashSet>(); - - for (Product element : printThis) { - int occurrences = Collections.frequency(printThis, element); - - List toAdd = Arrays.asList("|", Integer.toString(element.id), "|", (element.name), "|", - "₹" + Double.toString(element.price), "|", Integer.toString(occurrences), "|", - (element.description)); - - if (productCache.contains(toAdd)) { - continue; - } else { - rows.add(toAdd); - productCache.add(toAdd); - } - } - rows.add(Arrays.asList("|", "", "|", "", "|", "", "|", "", "|", "")); - rows.add(Arrays.asList("|", "Total: ", "|", "", "|", "₹" + Double.toString(cartTotal), "|", " ", "|", "")); - - System.out.println(Print.formatAsTable(rows, Print.PURPLE, Print.YELLOW)); - } - - public static void print(Vector printThis) { - List> rows = new ArrayList<>(); - List headers = Arrays.asList("|", "ID", "|", "Name", "|", "Price", "|", "Description"); - rows.add(headers); - - for (Product element : printThis) { - List toAdd = Arrays.asList("|", Integer.toString(element.id), "|", (element.name), "|", - "₹" + Double.toString(element.price), "|", (element.description)); - rows.add(toAdd); - } - - System.out.println(Print.formatAsTable(rows, Print.PURPLE, Print.YELLOW)); - } - - public static void printOrders(Vector printThis) { - List> rows = new ArrayList<>(); - List headers = Arrays.asList("|", "ID", "|", "User", "|", "Products", "|", "Date Ordered"); - rows.add(headers); - - for (Order element : printThis) { - // empty vector - Vector vector = new Vector<>(); - - // fill vector with info - for (Product e : element.products) { - int occurrences = Collections.frequency(element.products, e); - // vector.add("ID:" + e.id + ", " + e.name + " x" + occurrences + "; "); - vector.add("Product Id:" + e.id + " x " + occurrences + "; "); - } - - // credits: https://stackoverflow.com/a/3042606/14225169 - Set set = new HashSet(); - set.addAll(vector); - vector.clear(); - vector.addAll(set); - String joined = String.join("", vector); - - rows.add(Arrays.asList("|", Integer.toString(element.id), "|", element.user.phone, "|", joined, "|", - element.dateOrdered)); - } - - System.out.println(Print.formatAsTable(rows, Print.PURPLE, Print.YELLOW)); - } - - public static String getDashes(int numOfDash) { - String dashes = ""; - for (int i = 0; i < numOfDash; i++) { - dashes += "-"; - } - return dashes; - } - - // modified version of https://stackoverflow.com/a/50649715/14225169 - public static String formatAsTable(List> rows, String headerColor, String color) { - int[] maxLengths = new int[rows.get(0).size()]; - for (List row : rows) { - for (int i = 0; i < row.size(); i++) { - maxLengths[i] = Math.max(maxLengths[i], row.get(i).length()); - } - } - - StringBuilder formatBuilder = new StringBuilder(); - for (int maxLength : maxLengths) { - formatBuilder.append("%-").append(maxLength + 2).append("s"); - } - String format = formatBuilder.toString(); - - StringBuilder result = new StringBuilder(); - int reqDashes = String.format(format, rows.get(0).toArray()).length() + 1; - - result.append(headerColor); - result.append(getDashes(reqDashes)).append("\n"); - - for (List row : rows) { - if (rows.indexOf(row) == 0) { - result.append(String.format(format, row.toArray())).append("|").append("\n"); - result.append(RESET); - result.append(color); - } else { - result.append(String.format(format, row.toArray())).append("|").append("\n"); - } - } - - result.append(getDashes(reqDashes)); - result.append(RESET); - - return result.toString(); - } -} diff --git a/client/src/database/java/data/ecommerce/src/Products.java b/client/src/database/java/data/ecommerce/src/Products.java deleted file mode 100644 index 3cfd45566..000000000 --- a/client/src/database/java/data/ecommerce/src/Products.java +++ /dev/null @@ -1,105 +0,0 @@ -package src; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileWriter; -import java.util.Scanner; -import java.util.Vector; - - -public class Products { - Vector products = new Vector<>(); - - /** - * on instantiation loads data from 'products.csv' to a vector called 'products' - * in the class - **/ - Products() { - File file = new File("./data/products.csv"); - Scanner fileScanner; - try { - fileScanner = new Scanner(file); - // process the file, one line at a time - while (fileScanner.hasNextLine()) { - String[] line = fileScanner.nextLine().split(","); - if (line[4].equals("true")) { - Product product = new Product( - Integer.parseInt(line[0]), - line[1], - Double.parseDouble(line[2]), - line[3]); - this.products.add(product); - } - } - fileScanner.close(); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } - } - - public Vector getProducts() { - return this.products; - } - - public Product productIdToProduct(int productId) { - for (Product product: products) { - if (product.id == productId) { - return product; - } - } - return null; - } - - public void addProduct(Scanner scanner) { - int id = Utils.getNewId("./data/products.csv"); - String name = Utils.getStringInRange("Product Name: ", 1, 30, scanner); - Double price = Utils.getDoubleInRange("Product Price: ", 1.0, 1000.0, scanner); - String description = Utils.getStringInRange("Product Description: ", 1, 100, scanner); - - Product product = new Product(id, name, price, description); - this.products.add(product); - addProductToFile(product); - } - - public void addProductToFile(Product product) { - String data = product.csvString(); - try { - // Creates a Writer using FileWriter - FileWriter writer = new FileWriter("./data/products.csv", true); - // Writes string and line seperator to the file - writer.write(data); - writer.write(System.getProperty("line.separator")); - // Closes the writer - writer.close(); - } catch (Exception e) { - e.getStackTrace(); - } - } - - -} - -class Product { - Integer id; - String name; - Double price; - String description; - boolean isActive = true; - - Product(Integer id, String name, double price, String description) { - this.id = id; - this.name = name; - this.price = price; - this.description = description; - } - - public String toString() { - return "ID: " + this.id.toString() + "\n" + "Name: " + this.name + "\n" + "Price: " + this.price.toString() - + "\n" + "Description: " + this.description.toString(); - } - - public String csvString() { - return this.id.toString() + "," + this.name + "," + this.price.toString() + "," + this.description + "," - + this.isActive; - } -} diff --git a/client/src/database/java/data/ecommerce/src/User.java b/client/src/database/java/data/ecommerce/src/User.java deleted file mode 100644 index 7f646a7ce..000000000 --- a/client/src/database/java/data/ecommerce/src/User.java +++ /dev/null @@ -1,84 +0,0 @@ -package src; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileWriter; -import java.util.Date; -import java.util.Scanner; - -public class User { - Integer id; - String phone; - String address; - Date timestamp; - boolean isStaff; - private boolean inDB = false; - - public User(String phone, Scanner scanner) { - - File file = new File("./data/users.csv"); - Scanner fileScanner; - try { - fileScanner = new Scanner(file); - // process the file, one line at a time - while (fileScanner.hasNextLine()) { - - // split the line on comma - String[] line = fileScanner.nextLine().split(","); - - // check is required row is found - if (line[1].equals(phone)) { - // to prevent duplicate records - this.inDB = true; - // check permissions - if (line[4].equals("true")) { - this.isStaff = true; - } - this.address = line[2]; - } - - } - } catch (FileNotFoundException e) { - e.printStackTrace(); - } - - this.id = Utils.getNewId("./data/users.csv"); - this.phone = phone; - this.address = getOrAddAddress(phone, scanner); - this.timestamp = new Date(); - - addUserToFile(this); - } - - public String getOrAddAddress(String phone, Scanner scanner) { - // if user was not found get thier address - if (this.address != null) { - return this.address; - } - return Utils.getStringInRange("📍 Your Address: ", 1, 100, scanner); - } - - public void addUserToFile(User user) { - String data = user.csvString(); - - // if user was already found in db - if (inDB) - return; - try { - FileWriter writer = new FileWriter("./data/users.csv", true); - writer.write(data); - writer.write(System.getProperty("line.separator")); - writer.close(); - - this.inDB = true; - } catch (Exception e) { - e.getStackTrace(); - } - } - - public String csvString() { - return this.id.toString() + "," + this.phone + "," + this.address.toString() + "," + this.timestamp + "," - + this.isStaff; - } - -} diff --git a/client/src/database/java/data/ecommerce/src/Utils.java b/client/src/database/java/data/ecommerce/src/Utils.java deleted file mode 100644 index 741c6c4ae..000000000 --- a/client/src/database/java/data/ecommerce/src/Utils.java +++ /dev/null @@ -1,142 +0,0 @@ -package src; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Scanner; -import java.util.Vector; -import java.io.File; -import java.math.BigInteger; - -public class Utils { - - public static void showOptions(Vector options) { - // create a vector to store valid options ids - Vector validOptions = new Vector<>(options.size()); - - List> rows = new ArrayList<>(); - List headers = Arrays.asList("|", "Option", "|", "Task"); - rows.add(headers); - for (int i = 0; i < options.size(); i++) { - validOptions.add(i + 1); - rows.add(Arrays.asList("|", Integer.toString(i + 1) + ".", "|", options.get(i))); - } - - System.out.println(Print.formatAsTable(rows, Print.PURPLE, Print.CYAN)); - } - - public static int getOption(Vector options, Scanner scanner) { - Vector validOptions = new Vector<>(options.size()); - - Print.print(""); - for (int i = 0; i < options.size(); i++) { - validOptions.add(i + 1); - } - return getIntInRange(Print.GREEN + "Your Choice: " + Print.RESET, 1, validOptions.size(), scanner); - } - - // getting values - public static String getStringInRange(String prompt, int minLength, int maxLength, Scanner scanner) { - String validString = ""; - Print.print(prompt, true); - - while (scanner.hasNext()) { - validString = scanner.next().toString(); - if (validString.length() <= maxLength && validString.length() >= minLength) { - break; - } else { - Print.print("❗️ Invalid input String. Try again...", Print.RED); - Print.print(prompt, true); - } - } - return validString; - } - - public static int getIntInRange(String prompt, int minLength, int maxLength, Scanner scanner) { - int validInteger = -1; - Print.print(prompt, true); - while (scanner.hasNext()) { - if (scanner.hasNextInt()) { - validInteger = scanner.nextInt(); - if (String.valueOf(validInteger).length() <= maxLength - && String.valueOf(validInteger).length() >= minLength) { - break; - } else { - Print.print("❗️ Invalid input integer. Try again...", Print.RED); - Print.print(prompt, true); - } - } else { - Print.print("❗️ Invalid input. Must be an integer, try again...", Print.RED); - Print.print(prompt, true); - scanner.next(); - } - } - return validInteger; - } - - public static BigInteger getBigIntInRange(String prompt, int minLength, int maxLength, Scanner scanner) { - BigInteger validInteger = new BigInteger("-1"); - Print.print(prompt, true); - while (scanner.hasNext()) { - if (scanner.hasNextBigInteger()) { - validInteger = scanner.nextBigInteger(); - - if (String.valueOf(validInteger).length() <= maxLength - && String.valueOf(validInteger).length() >= minLength) { - break; - } else { - Print.print("❗️ Invalid input integer. Try again...", Print.RED); - Print.print(prompt, true); - } - } else { - Print.print("❗️ Invalid input. Must be an integer, try again...", Print.RED); - Print.print(prompt, true); - scanner.next(); - } - } - return validInteger; - } - - public static Double getDoubleInRange(String prompt, Double minLength, Double maxLength, Scanner scanner) { - Double validDouble = -1.00; - Print.print(prompt, true); - while (scanner.hasNext()) { - if (scanner.hasNextDouble()) { - validDouble = scanner.nextDouble(); - if (String.valueOf(validDouble).length() <= maxLength - && String.valueOf(validDouble).length() >= minLength) { - break; - } else { - Print.print("❗️ Invalid input double. Try again...", Print.RED); - Print.print(prompt, true); - } - } else { - Print.print("❗️ Invalid input. Must be an double, try again...", Print.RED); - Print.print(prompt, true); - scanner.next(); - } - } - Print.print("", true); - return validDouble; - } - - // file management - public static int getNewId(String fileName) { - // try { - // return Files.lines(new File(fileName).toPath(), - // Charset.defaultCharset()).count() + 1; - // } catch (Exception e) { - // e.getStackTrace(); - // } - // return 100000; - File file = new File(fileName); - String[] lastRow = LastLine.tail(file).split(","); - try { - int lastId = Integer.parseInt(lastRow[0]); - return lastId + 1; - } catch (Exception e) { - return 1; - } - } - -}