server:
  port: 18080

spring:
  application:
    name: okr-performance
  datasource:
    url: jdbc:sqlite:./data/okr-performance.db
    driver-class-name: org.sqlite.JDBC
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: Asia/Shanghai

mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  global-config:
    db-config:
      id-type: auto
      logic-delete-field: deleted
      logic-delete-value: 1
      logic-not-delete-value: 0

app:
  jwt:
    secret: ${APP_JWT_SECRET:yimeng-ai-okr-secret-key-2026-must-be-at-least-256-bits-long}
    access-token-expiration: 86400000
    refresh-token-expiration: 604800000
  super-admin:
    username: admin
    password: ${APP_SUPER_ADMIN_PASSWORD:emoon123456}
    real-name: 系统管理员
  cors:
    allowed-origins: ${APP_CORS_ORIGINS:http://localhost:5173,http://localhost:18080}
  seed:
    demo-data-enabled: ${APP_SEED_DEMO_DATA:true}
  backup:
    dir: ${APP_BACKUP_DIR:./data/backups}
