/** * (c) Phan Trung Nguyên * User: nguyenpl117 * Date: 3/18/2020 * Time: 12:39 PM * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { DatabaseRule } from './DatabaseRule'; declare type UniqueType = { model: string; column: string; ignore: { id?: string; idColumn: string; }; where?: any; }; export declare class UniqueRule extends DatabaseRule { unique: UniqueType; constructor(model: any, column: any); /** * * @param id * @param idColumn * @returns {Unique} */ ignore(id: any, idColumn?: string): this; /** * Set a "where" constraint on the query. * * @param column * @param value */ where(column: any, value?: any): this; } export {};