Files
2026-03-04 12:17:52 +08:00

17 lines
447 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""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)