Typed ids for table and document schema