I'm working with an online shop, currently products are either available or not, and enabled or not, by an int field on the products table.
They want me to add more to this, e.g. "in stock with supplier", "out of stock, ships within x days" etc. I'm thinking of just ditching the flags and creating a status field of enum type, with 'available', 'out of stock', 'coming soon', discontinued' etc.
What's the best way to do this? Add the enum type as a new column on products?
I got told I should add a separate table called Status and have a foreign key reference to it in the products table so it'll be easier to change in the future. I'm not sure how this is the case, as the enum type seems easy enough to change. You can add to it, remove from it and rename items.