fix(database) unique for collectionName + fieldName

This commit is contained in:
chenos 2022-02-22 15:42:12 +08:00
parent cf89f4f428
commit acb2e02c11

View File

@ -9,6 +9,12 @@ export default {
name: 'sort',
scopeKey: 'parentKey',
},
indexes: [
{
type: 'UNIQUE',
fields: ['collectionName', 'name'],
},
],
fields: [
{
type: 'uid',