我正在使用EAV进行数据库设计.当我尝试使用具有多个值的属性建模实体时,我遇到了一个问题?
例如
实体
id | name | description
-- | ---- | ------------
1 | configuration1 | configuration1
Run Code Online (Sandbox Code Playgroud)
属性
id | entityId | name | type
-- | -------- | ---- | ----
1 | 1 | att1 | string
2 | 1 | att2 | int
3 | 1 | att3 | List<String> (How will i model this?)
Run Code Online (Sandbox Code Playgroud)
值
id | attributeId | value
-- | ----------- | -----
1 | 1 | a
2 | 2 | 1 …Run Code Online (Sandbox Code Playgroud)