const mongoose = require('mongoose');

const winGoResultSchema = new mongoose.Schema(
    {
        id_product: {
            type: Number,
            // required: true,
        },
        phone: {
             type: Number,
            required: true,
        },
        code: {
             type: String,
        },
        period: {
             type: String,
        },
        result: {
            type: String,
        },
        level: {
            type: String,
        },
        money: {
            type: Number,
            required: true,
        },
        winMoney: {
            type: Number,
            required: true,
        },
        amount: {
            type: Number,
        },              
        fee: {
            type: Number,
        },              
        getWin: {
            type: Number,
        },              
        game: {
            type: String,
            required: true,
        },
        bet: {
            type: String,
            required: true,
        },
        status: {
            type: Number,
            default: 0
        },              
        today: {
            type: Number,
        },              
        time: {
            type: Number,
        },              
    }              
)
const winGoResult = mongoose.model('wingo_bet_result', winGoResultSchema);

module.exports = winGoResult;