-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMongoDB Schema.txt
60 lines (57 loc) · 1.47 KB
/
MongoDB Schema.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
var user = {
_id: USER_ID
name: USER_NAME,
email: USER_EMAIL,
password: USER_PASSWORD,
phone: USER_PHONE,
skills: [SKILL1, SKILL2, SKILL3],
about: USER_ABOUT,
profile: USER_PROFILE_PATH,
registration: USER_REGISTRATION_DATE,
account_balance: USER_ACCOUNT_BALANCE
}
var project = {
_id: PROJECT_ID
title: PROJECT_TITLE,
employer_id: EMPLOYER_USER_ID,
employer_name: EMPLOYER_USER_NAME,
freelancer_id: FREELANCER_USER_ID,
freelancer_name: FREELANCER_USER_NAME,
description: PROJECT_DESCRIPTION,
technology_stack: [TAG1, TAG2, TAG3...],
budget_range: [min,max],
budget_period : PROJECT_PERIOD,
project_document: PROJECT_DOCUMENT,
date_posted: PROJECT_POSTED_DATE,
date_end: PROJECT_END_DATE,
submission_document: [DOC1,DOC2...],
project_status : PROJECT_STATUS,
bids: [
{
freelancer_id:,
bid_amount: ,
bid_period : PROJECT_PERIOD,
bid_status: TEXT,
bid_date: DATE_TIME,
},
{
freelancer_id:,
bid_amount: ,
bid_period : PROJECT_PERIOD,
bid_status: TEXT,
bid_date: DATE_TIME,
}
]
}
var payment_manager = {
_id: PAYMENT_ID
employer_id: POST_DESCRIPTION,
employer_name: POST_DESCRIPTION,
freelancer_id: POST_DESCRIPTION,
freelancer_name: POST_DESCRIPTION,
amount: POST_BY,
project_id: [TAG1, TAG2, TAG3],
project_name: [min,max],
payment_type : TOTAL_LIKES,
payment_date : TOTAL_LIKES,
}