app:
  ddl-auto: update # valid values: none, validate, update, create, create-drop

server:
  port: 8080

spring:
  application:
    name: xianyu-free

  datasource:
    driver-class-name: org.sqlite.JDBC
    url: jdbc:sqlite:./db/xianyu_data.db
    username: 
    password: 

  sql:
    init:
      mode: never

  jpa:
    database-platform: org.hibernate.community.dialect.SQLiteDialect
    hibernate:
      ddl-auto: ${app.ddl-auto:update}
    show-sql: true # Set to false to disable SQL logging
    properties:
      hibernate:
        format_sql: true # Set to false to disable SQL formatting

  servlet:
    multipart:
      max-file-size: 10MB
      max-request-size: 10MB

logging:
  level:
    root: INFO
    com.xianyu.autoreply: DEBUG
    org.hibernate.SQL: INFO # Ensure Hibernate SQL logging is not set to DEBUG/TRACE
    org.hibernate.type.descriptor.sql: INFO # Ensure Hibernate parameter logging is not set to DEBUG/TRACE
  file:
    name: logs/backend-java.log
