Change primary key declaration in inheritance

Signed-off-by: Julien Danjou <julien@danjou.info>