From 7367e934542d3c5f37fa5b00c66ad89b5743fcd6 Mon Sep 17 00:00:00 2001 From: Lorenzo Balugani <256867@studenti.unimore.it> Date: Sat, 17 Apr 2021 12:58:20 +0000 Subject: [PATCH] Update database-analysis.md --- doc/development/database-analysis.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/development/database-analysis.md b/doc/development/database-analysis.md index aff0e99..2097f5b 100644 --- a/doc/development/database-analysis.md +++ b/doc/development/database-analysis.md @@ -11,10 +11,11 @@ |-------------------|-------------------------------------------------------|-----------------------------| | **User** | email, username, password | Repository | | **Repository** | id, name, start, end, status | User, Tweet, Alert, Keyword | -| **Tweet** | snowflake, content, location, poster | Repository | +| **Tweet** | snowflake, content, location, poster | Repository, Condition | | **Condition** | id, type, param | BoolOperation | -| **BoolOperation** | id, operation, condition_id, alert_id, node_1, node_2 | | -| **Alert** | id, repository_id, name, limit, window_size | | +| **BoolOperation** | id, operation, condition_id, alert_id, node_1, node_2 | Alert, BoolOperation, Condition| +| **Alert** | id, repository_id, name, limit, window_size | BoolOperation, Norifica, Repository| +| **Notifica** | id, ora, alert_id | Alert| ## Elementi @@ -101,3 +102,8 @@ Un elemento di un [Repository](#repository) a cui รจ legata una [BoolOperation]( Se i [Tweet](#tweet) di un [Repository](#repository) che rispettano la [BoolOperation](#booloperation) superano un certo `limit` in un lasso di tempo, si attiva e notifica l'utente. + + +### Notifica + +Una notifica legata ad un Alert che viene creata quando l'alert viene innescato.