mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-05 05:38:23 +08:00
chore(comment): collectionOptions.duplicator (#1752)
This commit is contained in:
parent
6d693a5ab6
commit
25d2ebf02a
@ -24,6 +24,14 @@ type dumpable = 'required' | 'optional' | 'skip';
|
||||
export interface CollectionOptions extends Omit<ModelOptions, 'name' | 'hooks'> {
|
||||
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
|
||||
| {
|
||||
|
Loading…
Reference in New Issue
Block a user