viewAttributes = async (key) => {
  const [v, table_name] = configTypes[key].type.split(" ");
  const table = Table.findOne({ name: table_name });
  const views = await View.find({ table_id: table.id });
  return {
    options: views.map((v) => {
      v.table = table;
      return v.select_option;
    }),
  };
}
View Attributes
@param {object} key
@returns {Promise<object>}