get_state_fields = async (table_id, viewname, { columns }) => [
  {
    name: "id",
    type: "Integer",
    primary_key: true,
  },
]
@param {*} table_id
@param {*} viewname
@param {object} opts
@param {*} opts.columns
@returns {Promise<object[]>}