Largely generated by running datamodel-codegen on the files in schema/, and then cleaned up by hand.
datamodel-codegen