feat(db): integrate PostgreSQL into factory, config, and TypeORM data source

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-04-05 10:29:57 +08:00
parent 16b2882729
commit 54a3ac680a
4 changed files with 70 additions and 11 deletions

View File

@@ -4,7 +4,7 @@
# 部署说明:
# 1. 复制此文件为 config.yaml
# 2. 根据实际环境修改配置值
# 3. 设置 database.activeType 为 mysqlsqlserver
# 3. 设置 database.activeType 为 mysqlsqlserver 或 postgresql
# ================================
# 注意ERP 认证信息存储在数据库 (dbo_BIPUsers) 中,按用户管理
# ================================
@@ -29,6 +29,14 @@ database:
driver: 'ODBC Driver 18 for SQL Server'
trustServerCertificate: true
postgresql:
host: <PG_HOST>
port: 5432
database: <DATABASE_NAME>
username: <USERNAME>
password: <PASSWORD>
maxPoolSize: 10
paths:
dataDir: './data/'
defaultOutput: 'output.xlsx'