/** * @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 { Schema } from 'mongoose'; export type ColumnType = 'string' | 'uuid' | 'UUID' | 'enum' | 'integer' | 'float' | 'double' | 'numeric' | 'decimal' | 'json' | 'jsonb' | 'date' | 'datetime' | 'timestamp' | typeof String | typeof Number | typeof Date | typeof Buffer | typeof Boolean | typeof Schema.Types.UUID | typeof Schema.Types.BigInt | typeof Schema.Types.Mixed | typeof Schema.Types.ObjectId | typeof Array | typeof Schema.Types.Decimal128 | typeof Map | typeof Schema | typeof BigInt;