All the regular metadata and custom columns.
The custom columns are stored in the opf as, for example:
Code:
<meta name="calibre:user_metadata:#genre" content="some really long text that's hard to read due to html entities"/>
Note, calibre leaves the original books as-is unless one intentionally embeds metadata (e.g. Quality Check plugin), converts, save to disk, etc.