Skip to content

Commit 120f23b

Browse files
committed
Merge branch 'release'
2 parents 5f4dc76 + 3cf4fb6 commit 120f23b

12 files changed

Lines changed: 3978 additions & 3966 deletions

File tree

BDD_V1.3.png

-117 KB
Binary file not shown.

BDD_V1.4.png

116 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.3.png)
14+
![](BDD_V1.4.png)
1515

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

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

Lines changed: 1321 additions & 1320 deletions
Large diffs are not rendered by default.

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.2.0</version>
8+
<version>1.2.1</version>
99
<packaging>jar</packaging>
1010

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

scripts/sql/CREATE_ALL.sql

Lines changed: 1321 additions & 1320 deletions
Large diffs are not rendered by default.

scripts/sql/CREATE_DATA.sql

Lines changed: 1320 additions & 1320 deletions
Large diffs are not rendered by default.

scripts/sql/CREATE_SAMPLE_DATA.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ INSERT INTO favorites VALUES (2, 2);
1212
INSERT INTO favorites VALUES (3, 2);
1313
INSERT INTO favorites VALUES (4, 2);
1414

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);
15+
INSERT INTO settings VALUES (1, 'Light setting', 'light', '1D', now(), now(), 1);
16+
INSERT INTO settings VALUES (2, 'Dark setting', 'dark', '1Y', now(), now(), 1);
17+
INSERT INTO settings VALUES (3, 'Setting n° 1', 'light', '3M', now(), now(), 2);
1818

1919
INSERT INTO alerts VALUES (1, 'ETH = 0.002467', '0.002467', false, false, now(), now(), 1, 2, 1);
2020
INSERT INTO alerts VALUES (2, 'BCH = 0.00467', '0.00467', false, true, now(), now(), 1, 3, 1);
2121
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);
22+
INSERT INTO alerts VALUES (4, 'DASH = 0.012467', '0.012467', true, true, now(), now(), 1, 5, 1);
2323

2424
INSERT INTO wallets VALUES (1, 'Wallet n° 1', now(), now(), 1);
2525
INSERT INTO wallets VALUES (2, 'Wallet n° 2', now(), now(), 1);

scripts/sql/CREATE_TABLES.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ CREATE TABLE settings (
6464
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
6565
name VARCHAR(250) NOT NULL,
6666
theme VARCHAR(250) NOT NULL,
67+
chart_period VARCHAR(3) NOT NULL,
6768
creation_date DATETIME NOT NULL,
6869
last_update DATETIME NOT NULL,
6970
user INT NOT NULL,

src/main/java/fr/polytech/codev/backend/entities/Setting.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public class Setting implements fr.polytech.codev.backend.entities.Entity {
3434
@Column(name = "theme")
3535
private String theme;
3636

37+
@NotBlank(message = "The chart period can't be blank!")
38+
@Size(message = "The chart period can't exceed 3 characters!", max = 3)
39+
@Column(name = "chart_period")
40+
private String chartPeriod;
41+
3742
@JsonbDateFormat("dd/MM/yyyy hh:mm:ss")
3843
@NotNull(message = "The creation date can't be null!")
3944
@PastOrPresent(message = "The creation date can't be in the future!")

0 commit comments

Comments
 (0)