module.exports = {
  className: "PriceHistory",
  fields: {
    product: { type: 'Pointer', targetClass: 'Product', required: true },
    price: { type: 'Number', required: true },
    effectiveDate: { type: 'Date', required: true },
    changedBy: { type: 'Pointer', targetClass: '_User' },
    changeReason: { type: 'String' }  // 添加自定义字段
  }
};