feat: 初始提交

This commit is contained in:
anonymous
2025-10-21 09:38:26 +08:00
committed by t59688
parent 2965b8e28f
commit c9fc816fab
175 changed files with 23968 additions and 87 deletions

View File

@@ -0,0 +1,13 @@
from sqlalchemy import Integer, String
from sqlalchemy.orm import Mapped, mapped_column
from ..db.base import Base
class UsageMetric(Base):
"""通用计数器表,目前用于记录 API 请求次数等统计数据。"""
__tablename__ = "usage_metrics"
key: Mapped[str] = mapped_column(String(64), primary_key=True)
value: Mapped[int] = mapped_column(Integer, nullable=False, default=0)