first commit

This commit is contained in:
2026-03-04 12:17:52 +08:00
commit ecb3e1d9b2
42 changed files with 4081 additions and 0 deletions

16
models/base.py Normal file
View File

@@ -0,0 +1,16 @@
"""SQLAlchemy Base 定义与示例模型
提供 SQLAlchemy 的 Base 供后续 ORM 模型继承。
"""
from sqlalchemy.orm import declarative_base
Base = declarative_base()
# 示例如需添加ORM模型可参考以下结构
# from sqlalchemy import Column, Integer, String
# class User(Base):
# __tablename__ = "users"
# id = Column(Integer, primary_key=True, autoincrement=True)
# name = Column(String(100), nullable=False)