Set primary key for Archive model