export default { kind: "collectionType", collectionName: "inventories", info: { singularName: "inventory", pluralName: "inventories", displayName: "Inventory", description: "", }, options: { draftAndPublish: true, }, pluginOptions: {}, attributes: { retailer: { type: "relation", relation: "oneToOne", target: "plugin::dutchie-plus.retailer", }, product: { type: "relation", relation: "oneToOne", target: "plugin::dutchie-plus.product", }, productERPId: { type: "string", unique: true, }, lowestPrice: { type: "decimal", min: 0, }, ERPSyncedAt: { type: "datetime", }, cbdFormatted: { type: "string", }, thcFormatted: { type: "string", }, inventoryMenuType: { type: "enumeration", enum: ["MEDICAL", "RECREATIONAL", "BOTH"], }, isOnSaleRec: { type: "boolean", default: false, }, isSpecialRec: { type: "boolean", default: false, }, isOnSaleMed: { type: "boolean", default: false, }, isSpecialMed: { type: "boolean", default: false, }, variants: { type: "json", }, weights: { type: "json", }, activeTerpenes: { type: "relation", relation: "oneToMany", target: "plugin::dutchie-plus.active-terpene", mappedBy: "inventory", }, staffPick: { type: "boolean", default: false, }, specials: { type: "relation", relation: "oneToMany", target: "plugin::dutchie-plus.special", }, }, };