Last post Apr 02, 2020 05:06 AM by wmec
Feb 07, 2020 09:15 PM|mrcode86|LINK
Need some help to design a soulution for how to store different data settings for a user profile.
I have this types, ClientSettings, ServerSettings, StyleSettings, WidgetSettings.
My webbapplication is built with VUE and use a
ASP.NET CORE API and mongodb as a database.
The settings contains a name(string) and value(object, different types like int, bool, string....).
How should i store this data in the mongodb? What is the best way to go? A data schema.
- Create a collection for each settingtype that contains columns userid, name and value?
- Create one collection with a long list with userid, settingtype, name and value?
- Create one collection with one post / user with userid and then a Dictionary<string, object> for each settingstype?
- Create one collection with one post / user with userid and then a datamodel for each settingtype that contains properties for each setting like StyleSettings contains BackgroundColor:string, FontColor:string...
- Other way?
Apr 02, 2020 05:06 AM|wmec|LINK