@fabrix/spool-cart
Version:
Spool - eCommerce Spool for Fabrix
55 lines (54 loc) • 1.43 kB
TypeScript
import { FabrixModel as Model } from '@fabrix/fabrix/dist/common';
import { SequelizeResolver } from '@fabrix/spool-sequelize';
export declare class ShopProduct extends Model {
static readonly resolver: typeof SequelizeResolver;
static config(app: any, Sequelize: any): {
options: {
underscored: boolean;
enums: {
INVENTORY_POLICY: {
DENY: string;
RESTRICT: string;
CONTINUE: string;
};
};
};
};
static schema(app: any, Sequelize: any): {
id: {
type: any;
primaryKey: boolean;
autoIncrement: boolean;
};
product_id: {
type: any;
unique: string;
};
variant_id: {
type: any;
unique: string;
};
shop_id: {
type: any;
unique: string;
references: any;
};
inventory_management: {
type: any;
defaultValue: boolean;
};
inventory_policy: {
type: any;
values: string[];
defaultValue: string;
};
inventory_quantity: {
type: any;
defaultValue: number;
};
inventory_lead_time: {
type: any;
defaultValue: number;
};
};
}