Good database design, variable number of attributes

后端 未结 4 1975
借酒劲吻你
借酒劲吻你 2021-02-04 10:16

I\'m trying to create a database that contains a list of equipment. All of the equipment will have certain common attributes (such as manufacturer, model #, serial #, etc.), the

4条回答
  •  隐瞒了意图╮
    2021-02-04 11:17

    I think that you faced a regular database normalization. You need tables like:

    Items -> Id, Name, Model, Brand Id
    Brands -> Id, Name
    Attribute Names -> id, name
    Attribute Mappings -> Id, Names Id, Items Id, Attribute Description
    

    In case if there is more than one Attribue, list then in Attribute Tables and associate with Product Id etc. Try to come up with 3rd normalized form

    Database Normalization

提交回复
热议问题