UNPKG

@fabrix/spool-cart

Version:

Spool - eCommerce Spool for Fabrix

46 lines (45 loc) 1.3 kB
import { FabrixModel as Model } from '@fabrix/fabrix/dist/common'; import { SequelizeResolver } from '@fabrix/spool-sequelize'; export declare class ItemDiscount extends Model { static readonly resolver: typeof SequelizeResolver; static config(app: any, Sequelize: any): { options: { underscored: boolean; enums: { DISCOUNT_MODELS: { CART: string; COLLECTION: string; CUSTOMER: string; PRODUCT: string; SUBSCRIPTION: string; PRODUCT_VARIANT: string; ORDER: string; ORDER_ITEM: string; }; }; classMethods: {}; }; }; static schema(app: any, Sequelize: any): { id: { type: any; primaryKey: boolean; autoIncrement: boolean; }; discount_id: { type: any; unique: string; }; model: { type: any; unique: string; values: string[]; }; model_id: { type: any; unique: string; references: any; }; }; static associate(models: any): void; }