Skip to content

Commit 5f4dc76

Browse files
committed
Merge branch 'release'
2 parents 3d975fa + f4456d0 commit 5f4dc76

26 files changed

Lines changed: 114 additions & 104 deletions

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ after_success:
2121
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD;
2222
echo "Docker Hub credentials are working";
2323
docker push $DOCKER_USERNAME/cryptowallet-backend;
24-
fi
24+
fi

BDD_V1.2.png

-111 KB
Binary file not shown.

BDD_V1.3.png

117 KB
Loading

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- LAFAYE DE MICHEAUX Yoan
1212

1313
## Global database scheme
14-
![](BDD_V1.2.png)
14+
![](BDD_V1.3.png)
1515

1616
## Getting started
1717
- Clone Polytech-CryptoWallet-Backend project

config/mysql/docker-entrypoint-initdb.d/CREATE_ALL.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ CREATE TABLE settings (
8787

8888
CREATE TABLE alerts (
8989
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
90+
name VARCHAR(250) NOT NULL,
9091
threshold NUMERIC(30, 8) NOT NULL,
9192
is_active BOOLEAN NOT NULL DEFAULT false,
9293
is_one_shot BOOLEAN NOT NULL DEFAULT false,

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>fr.polytech</groupId>
77
<artifactId>cryptowallet-backend</artifactId>
8-
<version>1.0.0</version>
8+
<version>1.2.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>Polytech-Codev-Backend</name>

scripts/sql/CREATE_ALL.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ CREATE TABLE settings (
8787

8888
CREATE TABLE alerts (
8989
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
90+
name VARCHAR(250) NOT NULL,
9091
threshold NUMERIC(30, 8) NOT NULL,
9192
is_active BOOLEAN NOT NULL DEFAULT false,
9293
is_one_shot BOOLEAN NOT NULL DEFAULT false,

scripts/sql/CREATE_DATA_SAMPLE.sql

Lines changed: 0 additions & 27 deletions
This file was deleted.

scripts/sql/CREATE_SAMPLE_DATA.sql

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
USE CryptoWallet;
2+
3+
INSERT INTO users VALUES (1, 'DELORME', 'Loïc', 'loic.delorme@test.fr', 'loic.delorme', true, true, now(), now(), now());
4+
INSERT INTO users VALUES (2, 'KASPRZYK', 'Nicolas', 'nicolas.kasprzyk@test.fr', 'nicolas.kasprzyk', true, false, now(), now(), now());
5+
INSERT INTO users VALUES (3, 'LAFAYE DE MICHEAUX', 'Yoan', 'yoan.lafayedemicheaux@test.fr', 'yoan.lafayedemicheaux', false, false, now(), now(), now());
6+
7+
INSERT INTO favorites VALUES (1, 1);
8+
INSERT INTO favorites VALUES (2, 1);
9+
INSERT INTO favorites VALUES (3, 1);
10+
INSERT INTO favorites VALUES (1, 2);
11+
INSERT INTO favorites VALUES (2, 2);
12+
INSERT INTO favorites VALUES (3, 2);
13+
INSERT INTO favorites VALUES (4, 2);
14+
15+
INSERT INTO settings VALUES (1, 'Light setting', 'light', now(), now(), 1);
16+
INSERT INTO settings VALUES (2, 'Dark setting', 'dark', now(), now(), 1);
17+
INSERT INTO settings VALUES (3, 'Setting n° 1', 'light', now(), now(), 2);
18+
19+
INSERT INTO alerts VALUES (1, 'ETH = 0.002467', '0.002467', false, false, now(), now(), 1, 2, 1);
20+
INSERT INTO alerts VALUES (2, 'BCH = 0.00467', '0.00467', false, true, now(), now(), 1, 3, 1);
21+
INSERT INTO alerts VALUES (3, 'XRP = 0.0120467', '0.0120467', true, false, now(), now(), 1, 4, 1);
22+
INSERT INTO alerts VALUES (3, 'DASH = 0.012467', '0.012467', true, true, now(), now(), 1, 5, 1);
23+
24+
INSERT INTO wallets VALUES (1, 'Wallet n° 1', now(), now(), 1);
25+
INSERT INTO wallets VALUES (2, 'Wallet n° 2', now(), now(), 1);
26+
INSERT INTO wallets VALUES (3, 'BTC Wallet', now(), now(), 2);
27+
INSERT INTO wallets VALUES (4, 'ETH Wallet', now(), now(), 2);
28+
29+
INSERT INTO assets VALUES (1, 1, '1.25', '1.25');
30+
INSERT INTO assets VALUES (1, 2, '10000', '0.4874');
31+
INSERT INTO assets VALUES (1, 3, '5.765', '0.25');
32+
INSERT INTO assets VALUES (1, 4, '100', '0.4579');
33+
INSERT INTO assets VALUES (2, 3, '1.25', '1.25');
34+
INSERT INTO assets VALUES (2, 4, '10000', '0.4874');

scripts/sql/CREATE_TABLES.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ CREATE TABLE settings (
7272

7373
CREATE TABLE alerts (
7474
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
75+
name VARCHAR(250) NOT NULL,
7576
threshold NUMERIC(30, 8) NOT NULL,
7677
is_active BOOLEAN NOT NULL DEFAULT false,
7778
is_one_shot BOOLEAN NOT NULL DEFAULT false,

0 commit comments

Comments
 (0)