module.exports = (sequelize, type) => {
    const Plans = sequelize.define('plans', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        master_plan_id: type.INTEGER,
        plan_name: type.TEXT,
        price: type.INTEGER,
        currency: {
            type: type.TEXT,
            defaultValue: '$'
        },
        duration: type.TEXT,
        description: type.TEXT,
        status: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return Plans;
}