删除过期数据

This commit is contained in:
2025-08-12 11:13:14 +08:00
parent ab5f78cc7b
commit 109a5e9444
3 changed files with 81 additions and 1 deletions

View File

@@ -19,5 +19,5 @@ DB_URL = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}'
SHOW_SQL = False
Engine = create_engine(DB_URL, echo=SHOW_SQL)
Base = declarative_base(Engine)
Base = declarative_base()
MysqlSession = sessionmaker(bind=Engine)