feat(database): 添加AI模块数据库表结构并更新开发环境配置
- 新增AI Provider配置相关表(ai_provider_config, ai_provider_config_history) - 新增AI聊天记录、使用统计、评价记录等相关表 - 新增AI绘画历史记录、参数模板、用户配额等相关表 - 新增AI敏感词库和绘画作品收藏表 - 更新开发环境数据库连接配置,修改PostgreSQL连接信息 - 更新开发环境Redis连接配置,修改主机地址和端口 - 初始化AI Provider配置数据,支持多种AI服务商
This commit is contained in:
@@ -47,9 +47,9 @@ spring:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driverClassName: org.postgresql.Driver
|
||||
url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
||||
username: postgres
|
||||
password: 123456
|
||||
url: jdbc:postgresql://112.74.106.216:15432/pet?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
||||
username: pet
|
||||
password: 4ZdTwkFrBSZphB7B
|
||||
# # 从库数据源
|
||||
# slave:
|
||||
# lazy: true
|
||||
@@ -96,13 +96,13 @@ spring:
|
||||
spring.data:
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost
|
||||
host: 47.115.140.38
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
port: 16379
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# redis 密码必须配置
|
||||
password: 123456
|
||||
password: redis_hpKXtt
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
# 是否开启ssl连接
|
||||
|
||||
Reference in New Issue
Block a user