This repository was archived by the owner on Jun 5, 2023. It is now read-only.
-
Couldn't load subscription status.
- Fork 0
Database
SARUXSARU edited this page May 31, 2023
·
11 revisions
- Our database is based on NoSQL database type and it's made in use Google Firestore.
- It consist of three collections: event, expense and summary
- The event collection is consisting from documents with unique id
- Each document contain fields:
- add_date : date of creating event
- creator : id of creator
- description : description of event
- name : name of event
- summary : id of summary of event when it's closed ( default null )
- array of expenses : array in which each index hold id of some expense
- array of users : array in which each index hold id of event member
- The expense collection is consisting from documents with unique id
- Each document contain fields:
- add_date : date of creating expense
- cash : value of expense
- creator : id of expense creator
- description : description of expense
- name : name of expense
- type : type of expense (food/entertaiment etc. )
- map of users : map in which each index hold id and value which member should pay for the expens
- The summary collection is consisting from documents with unique id
- Each document contain fields:
- map of receivables : map in which each index hold id and value of which member must to pay to other member how much money