Add project files.
This commit is contained in:
commit
86a57f81f8
52 changed files with 4823 additions and 0 deletions
1
TestDatabase/.gitignore
vendored
Normal file
1
TestDatabase/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
database/
|
||||
14
TestDatabase/docker-compose.yml
Normal file
14
TestDatabase/docker-compose.yml
Normal 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
17
TestDatabase/setup.sql
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue