Parent model primary key used instead of forcing 'id' column as pk

Signed-off-by: William <william@amovens.com>