Database modeling question with union

I want to have an entity that has access to a union type. I know it's not strictly possible but I'll express it in typescript
interface Something {
  field: string
  someChangingConfig: ConfigA | ConfigB | ConfigC
}

someChangingConfig can grow up to around 20-ish configs
Was this page helpful?