primary key set in class's fields attribute intead of as its own class attribute