It was definitely in use by computer scientists before it became an established term in the database world.
I believe it was Jean Piaget who introduced ‘schema’ to psychology in the 1920s-1930s.
But schema had already been developed in philosophy (such as Kant in Critique of Pure Reason). Also developed in logic to specify rules of inference, mathematics to describe theories with infinite axioms, and adequacy conditions in semantics.
Point being that psychology was itself appropriating a prior term. So pinning down when this happened for computing is really hard. Many early computer scientists were influenced by the prominent theories of mind when thinking about the nature of information, knowledge, reasoning, etc.
I’d have to dig harder but my suspicion is that there'll be written accounts of ‘schemas’ in computing going back into the 50s, because the prominence of things like constructivism, first-order logic, and the theories of mind/knowledge/reasoning that used that term became prominent in the 30s, right as many of those people were in school/university.