I have a table named config. Each config row has a list of services tied to it.
There are a total of 10 specific services available.
How should I design the schema? The config schema already exists.
This is my idea, but not sure if it is the right way.
config
===================
config_id primary key
col-1
col-2
...
col-n
I am planning to introduce a new table.
serviceconfigmap
========================================
config-id # foreign key to config table
svc_id # service identifier
The problem with this approach is that, the serviceconfigmap table will duplicate the svc_id column for each config-id
Is this the right approach? Any better idea is welcome
========================================
EDIT
I understand that I incorrectly termed my requirement as One-to-Many instead of Many-to-Many. Edited my question.
Each config can have multiple services and same servoce can be shared among different configs.