I currently have a supplier table and now I want to store the regions served by each supplier.
<form method="post" action="/Tests/Post/">
<fieldset>
<legend>What is Your Served Region ?</legend>
<input type="checkbox" name="served_region" value="Europe">Europe<br>
<input type="checkbox" name="served_region" value="Asia">Asia<br>
<input type="checkbox" name="served_region" value="Africa">Africa<br>
<br>
<input type="submit" value="Submit now" />
</fieldset>
</form>
As a first thought, I made my supplier model like this :
CREATE TABLE supliers (
supplier_id SERIAL PRIMARY KEY NOT NULL,
name VARCHAR(255),
email VARCHAR(255) UNIQUE NOT NULL,
servesAfrica BOOLEAN NOT NULL DEFAULT false,
servesEurope BOOLEAN NOT NULL DEFAULT false,
servesAsia BOOLEAN NOT NULL DEFAULT false
);
Does this seem to be a good pattern? Especially for queries to filter suppliers by region served etc. Is this solution still reliable if in the future I want to add more regions?