add DatabaseGenerated for fixed auto generate key error