const { boolean } = require("joi");
const sequelize = require("./config");

const superAdmin = sequelize.define("admin", {
  company_name: {
    type: String,
    required: true,
  },
  contact_name: {
    type: String,
    required: true,
  },
  contact: {
    type: String,
    required: true,
  },
  email: {
    type: String,
    required: true,
  },
  password: {
    type: String,
    required: true,
  },
  is_active: {
    type: boolean,
    required: true,
    default: true,
  },
  is_delete: {
    type: boolean,
    required: true,
    default: false,
  },
});

module.exports = superAdmin;
