Typed ids for table and document schema (part 3.1)