fix: data source collection unique index

This commit is contained in:
Chareice 2024-03-05 20:52:00 +08:00
parent a37195eb4f
commit c07767e753
No known key found for this signature in database

View File

@ -7,6 +7,12 @@ export default defineCollection({
shared: true,
autoGenId: false,
timestamps: false,
indexes: [
{
unique: true,
fields: ['name', 'dataSourceKey'],
},
],
fields: [
{
type: 'uid',
@ -16,7 +22,6 @@ export default defineCollection({
{
type: 'string',
name: 'name',
unique: true,
},
{
type: 'belongsTo',