/**
 * F-193: Adds `weight_grams` to catalog_product_variants.
 * Authoritative per-variant shipping weight in grams.
 * Defaults to NULL (fallback to product-level unit_weight_kg in checkout).
 */

export const up = (pgm) => {
  pgm.addColumn('catalog_product_variants', {
    weight_grams: {
      type: 'integer',
      notNull: false,
      default: null,
    },
  });
};

export const down = (pgm) => {
  pgm.dropColumn('catalog_product_variants', 'weight_grams');
};
