Skip to content

Commit 4d53f21

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c2add57 + 3bcf33c commit 4d53f21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4797
-4473
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true

.eslintrc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parser": "babel-eslint",
3+
"env": {
4+
"node": true,
5+
"jest": true
6+
},
7+
"extends": ["airbnb-base", "plugin:prettier/recommended"],
8+
"rules": {
9+
"global-require": "off",
10+
"no-underscore-dangle": "off",
11+
"sort-keys": ["error", "asc"]
12+
}
13+
}

.prettierrc.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
semi: true
2+
trailingComma: 'all'
3+
useTabs: false
4+
tabWidth: 2
5+
singleQuote: false
6+
editor.formatOnSave: true

README.md

+56-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
<img src="https://scontent.fpet1-1.fna.fbcdn.net/v/t1.0-1/91397488_120087589636900_7236983386537984000_n.jpg?_nc_cat=110&_nc_sid=dbb9e7&_nc_oc=AQn7ohukMj_QASvuajKWQMsT4Qh3l4ca2TfJcR1yAkm6HDWwhdxl2CwRJcuBKmegtOlT5MH0FBjlGS-c2Vb2f65w&_nc_ht=scontent.fpet1-1.fna&oh=df1b3022c1fc626fdba3a7e3c4c8fede&oe=5EC0C3FE" alt="FightPademics logo" title="FightPandemics" align="right" height="70" />
55
</a>
66

7-
FightPandemics Data Model
8-
======================
9-
<br />
7+
# FightPandemics Data Model
108

9+
<br />
1110

1211
Repository holding the data model specified as json document, json schema and with its html and pdf documentation.
1312

@@ -17,7 +16,7 @@ The data model is versioned, with the current live version being [v1](/v1) and w
1716
## Diagram for the Data Model v2
1817

1918
<p align="center">
20-
<img width="650" height="423" src="images/diagram_model.png">
19+
<img width="650" src="images/diagram_model.png">
2120
</p>
2221
<br />
2322

@@ -30,6 +29,7 @@ There is also an [excel spreadsheet version](v2/docs/FightPandemics.xlsx).
3029
<br />
3130

3231
## Sample of the documentation
32+
3333
<p align="center">
3434
<img height='500' src="images/sample_documentation.jpg">
3535
</p>
@@ -43,4 +43,56 @@ There are [MongoDB Scripts](v2/scripts/MongoDB_Script) available for collection
4343

4444
Mongoose scripts are in the roadmap for the near future.
4545

46+
# Collections
47+
48+
## Users
49+
50+
Collection that holds all the data on system's users.
51+
52+
The users can be of **two types**: **(1) Individual**, representing a private user account; and **(2) Organization**, representing an organization of various types.
53+
54+
The field 'type' is used to differentiate between the two subschemas, with 'individual' representing private user accounts and "Community", "Government", "Health care provider", "Non-profit", "Other", "R&D", "Startup", "Traditional Company" and "University".
55+
56+
For more detailed information, please visit the [documentation](v2/docs/FightPandemics_documentation.html).
57+
58+
<br />
59+
<p align="center">
60+
<img src="images/users_collection.png">
61+
</p>
62+
<br />
63+
64+
## Posts
65+
66+
Document to represent a post, asking or offering help to be displayed on the feed. A post can be created by any user, wether it is an individual or an organization. A post can have it's visibility limited geographically and have an expiration date set.
67+
68+
For more detailed information, please visit the [documentation](v2/docs/FightPandemics_documentation.html).
69+
70+
<br />
71+
<p align="center">
72+
<img src="images/posts_collection.png">
73+
</p>
74+
<br />
75+
76+
## Comments
77+
78+
Document that represents a comment made at a post. A comment can be made by an individual user or an organization.
79+
80+
For more detailed information, please visit the [documentation](v2/docs/FightPandemics_documentation.html).
81+
82+
<br />
83+
<p align="center">
84+
<img src="images/comments_collection.png">
85+
</p>
86+
<br />
87+
88+
## Feedback
89+
90+
Document that represents a feedback sent by an user, logged or not.
91+
92+
For more detailed information, please visit the [documentation](v2/docs/FightPandemics_documentation.html).
4693

94+
<br />
95+
<p align="center">
96+
<img src="images/feedbacks_collection.png">
97+
</p>
98+
<br />

images/comments_collection.png

57.4 KB
Loading

images/diagram_model.png

6.62 KB
Loading

images/feedbacks_collection.png

75.4 KB
Loading

images/posts_collection.png

90.8 KB
Loading

images/users_collection.png

89.9 KB
Loading

0 commit comments

Comments
 (0)