Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
48 replies
venus

Best practice how to store settings in MySQL?

Hi. I would like to store some settings / preferences in the database, but don't know what's the common structure, to do so.

Would it be something like so?

model DashboardSettings {
    name  String @unique
    value String
}

name                |   value
-----------------------------
DISCORD_GUILD_ID    |   63meEMh385emhm
Was this page helpful?