ddl-auto is used to automatically create the schema (DDL) based on the Entity classes. The possible values are:
update: update the schema, preserving previous data
create: This option will drop the existing schema and create a new one every time the application starts. It does not drop the schema when the application stops.
create-drop: This option will drop the existing schema and create a new one every time the application starts, just like create. However, it will also drop the schema when the application stops.
validate: validate the schema, make no changes to the database, if schema is not valid, SchemaManagementException will be thrown at runtime and the application will not start
none: do nothing with the schema, make no changes to the database
for production, it is recommended to use validate or none