fix __create_orm: convert pk & notnull to bool