const Discount = require("../models/admin/discountModel");

module.exports = async () => {
  const exists = await Discount.findOne({ isDefault: true });
  if (exists) return;

  await Discount.create({
    name: "Standard Discount",
    type: "PERCENTAGE",
    value: 0,
    isDefault: true,
    isActive: true,
  });

  console.log("✅ Default Discount created");
};
