/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import Database, { Collection, MagicAttributeModel, SyncOptions, Transactionable } from '@nocobase/database'; import { QueryInterfaceDropTableOptions } from 'sequelize'; interface LoadOptions extends Transactionable { skipField?: boolean | Array; skipExist?: boolean; resetFields?: boolean; } export declare class CollectionModel extends MagicAttributeModel { get db(): Database; toJSON(): any; load(loadOptions?: LoadOptions): Promise>; loadFields(options?: Transactionable & { skipField?: Array; includeFields?: Array; }): Promise; remove(options?: Transactionable & QueryInterfaceDropTableOptions): Promise; migrate(options?: SyncOptions & Transactionable): Promise; } export {};