Database design for Tagging multiple types of entities

后端 未结 6 1968
抹茶落季
抹茶落季 2021-02-02 04:19

I\'m currently designing a database schema that\'s used to store recipes. In this database there are different types of entities that I want to be able to tag (ingredients, reci

6条回答
  •  离开以前
    2021-02-02 05:05

    Howabout this?

    Types( PK:Type,set_id[,TypeDesc])

    Attributes( PK:(set_id,FK:Type),Value)

    PS: Bold/Italics Realy Suck

提交回复
热议问题