入库操作

This commit is contained in:
dxc
2026-01-26 13:35:30 +08:00
parent 0081e7682d
commit 65d9e89c9a
33 changed files with 193 additions and 0 deletions

14
config.py Normal file
View File

@ -0,0 +1,14 @@
import os
class Config:
# 数据库连接配置
# 请务必将 '你的密码' 替换为你 PostgreSQL 的真实密码
# 如果数据库不在本地,请将 localhost 替换为 IP 地址
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:1234@localhost:5432/inventory_system'
# 关闭 SQLAlchemy 的事件追踪,减少内存消耗
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Flask 的密钥,用于 Session 加密等,开发环境随便写一个即可
SECRET_KEY = 'dev-secret-key-1234'