UNPKG

@palmares/databases

Version:

Add support for working with databases with palmares framework

77 lines 2.89 kB
import { PalmaresMigrationsManager } from './managers'; import { BigAutoField, CharField } from '..'; declare const PalmaresMigrations_base: import("../models/model").ModelType<PalmaresMigrations, any>; /** * The default migration database. This is responsible for storing and saving all of the migrations that the user made. * * Usually the user will not have any access to this, this is for internal use only. */ export declare class PalmaresMigrations extends PalmaresMigrations_base { fields: { id: BigAutoField<{ create: number | undefined | null; read: number; update: number | undefined | null; }, { unique: true; allowNull: true; dbIndex: true; underscored: true; isPrimaryKey: true; auto: true; hasDefaultValue: false; defaultValue: undefined; typeName: string; databaseName: undefined; engineInstance: import("..").DatabaseAdapter; customAttributes: any; }, Pick<import("../models/fields/types").FieldWithOperationTypeForSearch<number | bigint>, "lessThan" | "greaterThan" | "and" | "in" | "or" | "eq" | "is" | "between">>; migrationName: CharField<{ create: string; read: string; update: string; }, { unique: false; allowNull: false; dbIndex: false; underscored: true; allowBlank: true; isPrimaryKey: false; auto: false; defaultValue: undefined; typeName: string; hasDefaultValue: false; databaseName: undefined; engineInstance: import("..").DatabaseAdapter; customAttributes: any; maxLength: 150; }, Pick<import("../models/fields/types").FieldWithOperationTypeForSearch<string>, "and" | "in" | "or" | "eq" | "is" | "like">>; engineName: CharField<{ create: string; read: string; update: string; }, { unique: false; allowNull: false; dbIndex: false; underscored: true; allowBlank: true; isPrimaryKey: false; auto: false; defaultValue: undefined; typeName: string; hasDefaultValue: false; databaseName: undefined; engineInstance: import("..").DatabaseAdapter; customAttributes: any; maxLength: 150; }, Pick<import("../models/fields/types").FieldWithOperationTypeForSearch<string>, "and" | "in" | "or" | "eq" | "is" | "like">>; }; options: { tableName: string; ordering: string[]; }; static migrations: PalmaresMigrationsManager; } export {}; //# sourceMappingURL=models.d.ts.map