Add project files.

This commit is contained in:
Tea 2024-03-05 11:44:30 +01:00
commit 86a57f81f8
52 changed files with 4823 additions and 0 deletions

1
TestDatabase/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
database/

View file

@ -0,0 +1,14 @@
services:
database:
image: mysql
volumes:
- ./database:/var/lib/mysql
- ./setup.sql:/docker-entrypoint-initdb.d/1.sql
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: QEwqTdS#7pxEy#
MYSQL_USER: PizzaBotDev
MYSQL_PASSWORD: PizzaDeliveryEverywhere!
MYSQL_DATABASE: PizzaBotTest

17
TestDatabase/setup.sql Normal file
View file

@ -0,0 +1,17 @@
CREATE TABLE PizzaBotTest.Requests (
Id INT PRIMARY KEY,
Name LONGTEXT NOT NULL,
reqPiecesMeat INT NOT NULL,
reqPiecesVegetarian INT NOT NULL,
reqPiecesVegan INT NOT NULL,
priority FLOAT);
CREATE TABLE PizzaBotTest.Results (
Id INT PRIMARY KEY,
resPiecesMeat INT NOT NULL,
resPiecesVegetarian INT NOT NULL,
resPiecesVegan INT NOT NULL,
penaltyMeatVeggi FLOAT NOT NULL,
penaltyVeggieVegan FLOAT NOT NULL,
totalCost FLOAT NOT NULL,
hasPaid TINYINT NOT NULL);