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