From 65b0befcc0757c4c71df978ead02749a5302a17a Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Mon, 20 Mar 2023 10:03:46 +0100 Subject: [PATCH 1/9] =?UTF-8?q?impl=C3=A9mentation=20du=20diagramme=20de?= =?UTF-8?q?=20s=C3=A9quence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IOT/diagram/diagram.wsd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 IOT/diagram/diagram.wsd diff --git a/IOT/diagram/diagram.wsd b/IOT/diagram/diagram.wsd new file mode 100644 index 0000000..59b0303 --- /dev/null +++ b/IOT/diagram/diagram.wsd @@ -0,0 +1,16 @@ +@startuml diagram +class users { + username: text + email: email + name: text + image: file + created: date + updated: date +} +class poubelle_status{ + value: text + author: users + created: date + updated: date +} +@enduml \ No newline at end of file From 94aad2161366715b4dcbac8fc111c012115cfafc Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Mon, 20 Mar 2023 11:06:45 +0100 Subject: [PATCH 2/9] relation and primary key --- IOT/diagram/diagram.wsd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IOT/diagram/diagram.wsd b/IOT/diagram/diagram.wsd index 59b0303..239168a 100644 --- a/IOT/diagram/diagram.wsd +++ b/IOT/diagram/diagram.wsd @@ -1,5 +1,6 @@ @startuml diagram class users { + * id: text username: text email: email name: text @@ -8,9 +9,11 @@ class users { updated: date } class poubelle_status{ + * id: text value: text author: users created: date updated: date } +users --> "1" poubelle_status @enduml \ No newline at end of file From 25c5dd0b82122c8bd84c8e133584a7841549da29 Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Mon, 20 Mar 2023 11:56:10 +0100 Subject: [PATCH 3/9] relation --- IOT/diagram/diagram.wsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IOT/diagram/diagram.wsd b/IOT/diagram/diagram.wsd index 239168a..0dd1ab2 100644 --- a/IOT/diagram/diagram.wsd +++ b/IOT/diagram/diagram.wsd @@ -15,5 +15,5 @@ class poubelle_status{ created: date updated: date } -users --> "1" poubelle_status +users "1" <-- poubelle_status @enduml \ No newline at end of file From d6c473982ea286ab06fd11f19af548311a77e189 Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Mon, 20 Mar 2023 12:11:46 +0100 Subject: [PATCH 4/9] folders api/docs --- IOT/{diagram => api/docs}/diagram.wsd | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename IOT/{diagram => api/docs}/diagram.wsd (100%) diff --git a/IOT/diagram/diagram.wsd b/IOT/api/docs/diagram.wsd similarity index 100% rename from IOT/diagram/diagram.wsd rename to IOT/api/docs/diagram.wsd From 2b91951a277b10f984c9ef831be626b72bae4ffb Mon Sep 17 00:00:00 2001 From: Clement Date: Mon, 20 Mar 2023 12:57:41 +0100 Subject: [PATCH 5/9] docs: mouve api diagram to rigt place --- {IOT/api => api}/docs/diagram.wsd | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {IOT/api => api}/docs/diagram.wsd (100%) diff --git a/IOT/api/docs/diagram.wsd b/api/docs/diagram.wsd similarity index 100% rename from IOT/api/docs/diagram.wsd rename to api/docs/diagram.wsd From 2e40495cc143f9e0a56833b057490adbd6628085 Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Tue, 21 Mar 2023 09:56:42 +0100 Subject: [PATCH 6/9] class data --- api/docs/diagram.wsd | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/api/docs/diagram.wsd b/api/docs/diagram.wsd index 0dd1ab2..5444efa 100644 --- a/api/docs/diagram.wsd +++ b/api/docs/diagram.wsd @@ -8,12 +8,21 @@ class users { created: date updated: date } -class poubelle_status{ +class trashs{ * id: text value: text author: users created: date updated: date } -users "1" <-- poubelle_status +class data { + * id: text + value: number + poubelle_id: trashs + unit: text + status: bool + field: text +} +users "1" <-- trashs +trashs "1" <-- data @enduml \ No newline at end of file From ab70befc0cd6811cb337707d058e93237c156178 Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 21 Mar 2023 11:42:48 +0100 Subject: [PATCH 7/9] fix little issue on API diagram --- api/docs/diagram.wsd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/docs/diagram.wsd b/api/docs/diagram.wsd index 5444efa..9df32c1 100644 --- a/api/docs/diagram.wsd +++ b/api/docs/diagram.wsd @@ -1,6 +1,6 @@ @startuml diagram class users { - * id: text + id: text username: text email: email name: text @@ -9,19 +9,21 @@ class users { updated: date } class trashs{ - * id: text + id: text value: text author: users created: date updated: date } class data { - * id: text + id: text value: number poubelle_id: trashs unit: text status: bool field: text + created: date + updated: date } users "1" <-- trashs trashs "1" <-- data From c5576c2c63ddeee26f3a15dcbdec7c210a498a3b Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 21 Mar 2023 11:58:57 +0100 Subject: [PATCH 8/9] fix: rename iot folder to IOT --- {api => API}/docs/diagram.wsd | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {api => API}/docs/diagram.wsd (100%) diff --git a/api/docs/diagram.wsd b/API/docs/diagram.wsd similarity index 100% rename from api/docs/diagram.wsd rename to API/docs/diagram.wsd From d2a89b5a2c06229ec0837b928b32b44f47cb8bb5 Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 21 Mar 2023 12:02:15 +0100 Subject: [PATCH 9/9] fix: rm useless field --- API/docs/diagram.wsd | 1 - 1 file changed, 1 deletion(-) diff --git a/API/docs/diagram.wsd b/API/docs/diagram.wsd index 9df32c1..65c7230 100644 --- a/API/docs/diagram.wsd +++ b/API/docs/diagram.wsd @@ -21,7 +21,6 @@ class data { poubelle_id: trashs unit: text status: bool - field: text created: date updated: date }