Typed ids for table and document schema (part 3.2)