Resource有name和id,Attributes有resourceId,attribute name和attribute value。对于资源名称,number of attributes和name and value of those attributes必须是唯一的。我无法在数据库级别强制资源的唯一性。mmg(id:3)不应该存在,因为它们具有相同的name、attributes和same number of attributes。我可以通过编程来强制唯一性,但是我想知道是否有方法在数据库级别强制实施它,并可能重