diff --git a/packages/core/database/src/collection.ts b/packages/core/database/src/collection.ts index c2330a02c..9b1f14a69 100644 --- a/packages/core/database/src/collection.ts +++ b/packages/core/database/src/collection.ts @@ -24,6 +24,14 @@ type dumpable = 'required' | 'optional' | 'skip'; export interface CollectionOptions extends Omit { name: string; namespace?: string; + /** + * Used for @nocobase/plugin-duplicator + * @see packages/core/database/src/collection-group-manager.tss + * + * @prop {'required' | 'optional' | 'skip'} dumpable - Determine whether the collection is dumped + * @prop {string[] | string} [with] - Collections dumped with this collection + * @prop {any} [delayRestore] - A function to execute after all collections are restored + */ duplicator?: | dumpable | {