/** * @athenna/database * * (c) João Lenon * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import type { BaseModel } from '#src/models/BaseModel'; type UnsafeColumnSelector = `${string}.${string}` | `${string}->${string}`; export type ColumnKeys = { [K in keyof T]: T[K] extends BaseModel | BaseModel[] ? never : K; }[keyof Omit]; export type ModelColumns = Extract, string> | UnsafeColumnSelector; export {};