nex_basse/backend/app/models/hotword.py

12 lines
479 B
Python

from sqlalchemy import Column, Integer, String, Float
from app.models.base import Base
class Hotword(Base):
__tablename__ = "biz_hotword"
id = Column(Integer, primary_key=True, index=True)
word = Column(String(255), nullable=False, comment="热词")
pinyin = Column(String(255), nullable=True, comment="拼音")
weight = Column(Float, default=1.0, comment="权重")
scope = Column(String(50), default="global", comment="作用域: global/user/meeting")