JairMDE / ticket-wallet

0 stars 0 forks source link

Database Management #2

Open JairMDE opened 9 months ago

JairMDE commented 9 months ago

Development of the database management

VOC12 commented 8 months ago

MongoDB has emerged as a powerful solution for data storage and manipulation, with a focus on flexibility, scalability and performance, and because it is a popular choice for a wide range of applications, from small startups to large enterprises. For all above, We have decided to use MongoDB, our data collection process starts with Structuring the Database in MongoDB.

VOC12 commented 8 months ago

In MongoDB, data is organized in collections and Documents, collections are equivalent to tables in a relational database system, and documents, which are the individual records in those collections; therefore based on our needs (Ticket-Wallet), we have decided to make 4 different collections to group related documents, these collections will be:

- Supermarket - Pharmacy - Restaurants - Stores

These collections will store purchase tickets from the different stores, this will be done in this way as a Walmart tikcet doesn't have the same format as a Hardware store ticket, as an example

VOC12 commented 8 months ago

Documents: Each document in a collection represents an individual record. For example, the document in the "Restaurant" collection could represent a purchase ticket, with fields such as date, time, restaurant, and total.

VOC12 commented 8 months ago

I have been thinking about this structure for teh documents:

What do u think?

JairMDE commented 8 months ago

Hello @VOC12 start researching about how text can be stored in MongoDB as any type of file so the development team can start researching about the way it can be saved.

Also, we already have some outputs that you can you can start analyzing, and maybe before that, you could apply an algorithm that detects specific key words! 😆🥳

VOC12 commented 8 months ago

Oki doki, On my way boss!