{
  "name": "orders",
  "comment": "订单主表",
  "fields": [
    { "name": "order_id", "type": "bigint", "comment": "订单号，主键" },
    { "name": "user_id", "type": "bigint", "comment": "下单用户 ID" },
    { "name": "amount", "type": "decimal(10,2)", "comment": "实付金额，含税、已减优惠" },
    { "name": "original_amount", "type": "decimal(10,2)", "comment": "原价金额，优惠前" },
    { "name": "payment", "type": "varchar(20)", "comment": "支付方式：wechat / alipay / card" },
    { "name": "order_date", "type": "datetime", "comment": "下单时间（非支付时间）" },
    { "name": "status", "type": "varchar(20)", "comment": "订单状态：paid / refunded / closed" }
  ]
}
