Database table requires a database-maintained, unique, not null integer column in the table. Refer to the documentation https://enterprise.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-feature-services.htm#ESRI_SECTION1_C30D73392D964D51A8B606128A8A6E8F for more information.