-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
discussionNeeds to be discussed as a teamNeeds to be discussed as a team
Description
Below are some changes I'd like to make to the database schema. These need to be discussed in the first HS Inventory meeting.
I'll tick them off as they're done. I'll remove them from the list if, during the meeting, they're rejected.
- 1. Change all table and field names to English. This should be obligatory since we have non-Portuguese people working on this project.
- 2. Delete the
itemandferramentatables. They seem completely useless right now. I guess they were intended for something else, so this needs to be discussed. - 3. Maybe the
estadotable could be deleted and theid_estadofields converted into an enum. Depends on which values this should hold. - 4. Add a field for material quantity. I guess if you have 10+ of a material you're not going to be creating 10+ database rows, so it'd make sense to add a
quantityfield to bothrequisicaoandmaterial. - 5. Remove the
access_tokenfield from themembrotable and put it into it's own table, along withid_socio,expires_atanddevice(OS name; device type; to be further discussed) fields. This would allow for long-lasting refresh tokens combined with JWT (see [Suggestion] Authentication Flow #2 for a more in-depth explanation). - 6. Add a
pictureentry to themembrotable, which is loaded from the Fenix API, which sends the profile picture in a base64 encoded png image. Add button to sync from Fenix and allow custom photos. - 7. Add a
rolefield inmembroor apermissionstable, which lets some members execute admin actions.
To better manage the database schema, and if we're going to use NodeJS, I suggest using Knex.js, which manages database schema migrations for us, making it really simple to change schemas down the line.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionNeeds to be discussed as a teamNeeds to be discussed as a team