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.
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.
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.
itemandferramentatables. They seem completely useless right now. I guess they were intended for something else, so this needs to be discussed.estadotable could be deleted and theid_estadofields converted into an enum. Depends on which values this should hold.quantityfield to bothrequisicaoandmaterial.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).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.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.