clevaway / bond

Send your loved ones a vibe with a lovely sound, so they know you miss them. Anytime you want to, anywhere they are.
https://bond-nu.vercel.app
MIT License
32 stars 14 forks source link

Db structure! #37

Open RonaldColyar opened 3 years ago

RonaldColyar commented 3 years ago

Assuming we are just going to continue using firebase:

Users

I don't want users to be able to write to each other's contacts .

So :

  1. initally the user 1 will log in send the contact request to user 2 ,
  2. once accepted each will become friends/contacts.

so it would look something like this for visualization!!:

user1/requests = { type: outgoing , to: user2, status: pending }

user2/requests = { type: received from : user1, status : pending }

RonaldColyar commented 3 years ago

@FotieMConstant

RonaldColyar commented 3 years ago

@quiet-programmer

FotieMConstant commented 3 years ago

Are we finally sticking to firebase? Because I think we should get something we can have more control on like I talked with @RonaldColyar. Both now and later

RonaldColyar commented 3 years ago

@FotieMConstant it could work well.

RonaldColyar commented 3 years ago

We could collect our data and have a separate database also

RonaldColyar commented 3 years ago

But not the same data that we store in firebase it would be redundant,

FotieMConstant commented 3 years ago

Yeah, i think so as well. Please does anyone has Postgre or Mongo db online we can use?

dilanlongla commented 3 years ago

@FotieMConstant we could configure a postgre db on heroku but it will be limited as they grant a max of 20 simultenous connections to the db

FotieMConstant commented 3 years ago

How much does it cost if we want to upgrade! Any idea?

dilanlongla commented 3 years ago

@FotieMConstant the pricing plan varies greatly, here is a link you can check it out postgreSQL db Heroku pricing plan

dilanlongla commented 3 years ago

Relational Database Structure

@FotieMConstant @RonaldColyar before we join anything i'll share the structure of the db here so we could discuss it

class diagram

pdm

NB : I used the information i had in mind on the project and that which @RonaldColyar shared recently to come up with this database