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', name: 'sort',
scopeKey: 'parentKey', scopeKey: 'parentKey',
}, },
indexes: [
{
type: 'UNIQUE',
fields: ['collectionName', 'name'],
},
],
fields: [ fields: [
{ {
type: 'uid', type: 'uid',