@fabrix/spool-cart
Version:
Spool - eCommerce Spool for Fabrix
45 lines (44 loc) • 1.19 kB
TypeScript
import { FabrixModel as Model } from '@fabrix/fabrix/dist/common';
import { SequelizeResolver } from '@fabrix/spool-sequelize';
export declare class ItemImage extends Model {
static readonly resolver: typeof SequelizeResolver;
static config(app: any, Sequelize: any): {
options: {
underscored: boolean;
enums: {
IMAGE_MODELS: {
COLLECTION: string;
CUSTOMER: string;
PRODUCT: string;
USER: string;
};
};
};
};
static schema(app: any, Sequelize: any): {
id: {
type: any;
primaryKey: boolean;
autoIncrement: boolean;
};
image_id: {
type: any;
unique: string;
};
model: {
type: any;
unique: string;
values: string[];
};
model_id: {
type: any;
unique: string;
references: any;
};
position: {
type: any;
defaultValue: number;
};
};
static associate(models: any): void;
}