const mongoose = require('mongoose');

const weekday_lottery_schema = new mongoose.Schema({
    lottery_id: {
        type: Number,
        required: true,
    },
    name: {
        type: String,
        required: true,
    },
    week_name: {
        type: String,
        required: true,
    },
    weekday_status: {
        type: Number,
        required: true,
    },


    open_time: {
        type: Date,
        required: true,
    },
    open_time_sort: {
        type: Date,
        required: true,
    },
    close_time: {
        type: Date,
        required: true,
    },
});

const weekday_lottery_module = mongoose.model('weekday_lottery', weekday_lottery_schema);

module.exports = weekday_lottery_module;