{"size": 1225, "ext": "js", "max_stars_repo_path": "api/src/utils/mockUps/coupon.js", "max_stars_repo_name": "Drivello/On-The-Rocks", "max_stars_repo_stars_event_min_datetime": "2021-10-06T19:23:04.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-08T15:57:27.000Z", "max_issues_repo_path": "api/src/utils/mockUps/coupon.js", "max_issues_repo_name": "Drivello/On-The-Rocks", "max_issues_repo_issues_event_min_datetime": "2021-08-23T02:19:48.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-30T16:38:43.000Z", "max_forks_repo_path": "api/src/utils/mockUps/coupon.js", "max_forks_repo_name": "Drivello/On-The-Rocks", "max_forks_repo_forks_event_min_datetime": "2021-09-07T01:35:55.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-07T01:35:55.000Z"}
{"max_stars_count": 2, "max_issues_count": 11, "max_forks_count": 1, "avg_line_length": 22.2727272727, "max_line_length": 39, "alphanum_fraction": 0.3991836735}
const { Coupon } = require("../../db");

const couponMockUp = async () => {
    try {
        await Coupon.create({
            code: "WHEEL2",
            discount: 0.02,
            global: false,
            userId: 8,
        });
        await Coupon.create({
            code: "WHEEL5",
            discount: 0.05,
            global: false,
            userId: 8,
        });
        await Coupon.create({
            code: "WHEEL10",
            discount: 0.1,
            global: false,
            userId: 8,
        });
        await Coupon.create({
            code: "WHEEL15",
            discount: 0.15,
            global: false,
            userId: 8,
        });
        await Coupon.create({
            code: "WHEEL20",
            discount: 0.2,
            global: false,
            userId: 8,
        });
        await Coupon.create({
            code: "WHEEL25",
            discount: 0.25,
            global: false,
            userId: 8,
        });
        await Coupon.create({
            code: "WHEEL50",
            discount: 0.50,
            global: false,
            userId: 8,
        });
    } catch (e) {
        console.log(e.message);
    }
};

module.exports = {
    couponMockUp,
};
