import { Where } from "./whereClause"; export interface BasePermissionRule { where?: Where; } export interface InsertPermissionRule { check?: Where; /** * Column presets * * if its a plain property it will be set to the value, but in another case you cannot use the value of the property */ set?: Partial>; } export interface SelectPermissionRule { where?: Where; /** * limit the number of rows returned by the query(select action only) */ limit?: number; /** * allow aggregations on the table (select action only) */ allowAggregations?: boolean; } export interface UpdatePermissionRule { /** * Pre-update check condition */ where?: Where; /** * Post-update check condition */ check?: Where; /** * Column presets * * if its a plain property it will be set to the value, but in another case you cannot use the value of the property */ set?: Partial>; }