@tugou/sequelize
Version:
midwayjs sequelize
22 lines (21 loc) • 683 B
TypeScript
export declare class BaseModel {
sequelize_conn: any;
table_name: any;
entity: any;
constructor(table_name: any);
init(): Promise<void>;
findOne(options: object): Promise<any>;
create(values: object, options?: object): Promise<any>;
bulkCreate(values: object, options?: object): Promise<any>;
update(values: object, options?: object): Promise<any>;
destroy(options: object): Promise<any>;
count(options: object): Promise<any>;
findAll(options: object): Promise<any>;
findAndCountAll(options: any): Promise<false | {
current: any;
limit: any;
detail: any;
total: any;
last: number;
}>;
}