5
I’m creating a secret friend system for the family, where it will be possible to have:
- Registration of users with their data (ex: Tennis size, shirt, etc...) ;
- Groups of registered users;
- Generate a draw with the users inserted in this particular group;
- Wish List;
- A mural in the group, to leave messages (Anonymous or not);
- Notifications (if there are any messages inserted in the group, friend requests, etc...);
- Relationship system (Friends).
What has already been done:
TB_USUARIO | TB_PERFIL | TB_GRUPO | TB_RELACIONAMENTO | TB_MENSAGEM_GRUPO | TB_DESEJO
------------|---------------|---------------|---------------------------|---------------------- |-----------------
ID_USUARIO | ID_PERFIL | ID_GRUPO | ID_RELACIONAMENTO | ID_MENSAGEM_GRUPO | ID_DESEJO
ID_PERFIL | NOME | ID_USUARIO | ID_USUARIO_SOLICITOU | ID_GRUPO | ID_USUARIO
USUARIO | SOBRENOME | | (usuário que solicitou) | ID_USUARIO | DESEJO
SENHA | EMAIL | | ID_USUARIO_RECEBEU | MENSAGEM |
| (usuário que recebeu) | DATA_HORA |
My biggest doubt is about Grupo de Usuários
, Notificações
and on Gerar um sorteio com os usuários inseridos em um determinado grupo
. What is the best way to Structure the Database, and what is the logic(in php) that I can use to carry out the draw?
Have you thought of something?
– CesarMiguel
Yes, @Cesarmiguel, I updated my question.
– Leonardo
Much better and already has some effort, I will withdraw my vote to close the question
– CesarMiguel