feat: lexoranks for attr options

This commit is contained in:
2025-11-05 20:52:50 +04:00
parent 7defcbdbd4
commit eab801e41b
2 changed files with 7 additions and 1 deletions

View File

@ -34,6 +34,7 @@ class AttributeOption(BaseModel, IdMixin, SoftDeleteMixin):
__tablename__ = "attribute_options"
name: Mapped[str] = mapped_column()
lexorank: Mapped[str] = mapped_column(comment="Ранг опции")
select_id: Mapped[int] = mapped_column(ForeignKey("attribute_selects.id"))
select: Mapped[AttributeSelect] = relationship(