Re: How to store/manage tags?

From: The Natural Philosopher <tnp_at_invalid.invalid>
Date: Sat, 13 Jul 2019 11:15:14 +0100
Message-ID: <qgcavi$bs2$2_at_dont-email.me>


On 13/07/2019 11:09, ^Bart wrote:
> I need to store tags in a db, for example about restaurants, like
> romantic, sea view, etc., I thought to do something like this:
>
> restaurants
> ---------------
> id_restaurant
> name
>
> tags
> ---------------
> id_tag
> name
>
> restauranttags
> --------------
> id_restauranttag
> FK_id_restaurant
> FK_id_tag
>
> Do you have other ideas?
>

[Quoted] No. that is the way to manage many to many relationships But you left out the tag text. like 'sea view' etc.

> Regards.
> ^Bart

-- 
There is something fascinating about science. One gets such wholesale 
returns of conjecture out of such a trifling investment of fact.

Mark Twain
Received on Sat Jul 13 2019 - 12:15:14 CEST

Original text of this message