feat: introduced plans pricing

This commit is contained in:
2026-07-25 15:31:44 +07:00
parent 633c79e817
commit 2547bcfcba
10 changed files with 144 additions and 7 deletions

13
db/models/addons.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import FLOAT, INTEGER, TEXT
from sqlalchemy.orm import Mapped, mapped_column
from db.base import Base
class Addon(Base):
__tablename__ = "addons"
id: Mapped[str] = mapped_column(TEXT, nullable=False, unique=True, primary_key=True)
name: Mapped[str] = mapped_column(TEXT, nullable=False, unique=False)
price: Mapped[float] = mapped_column(FLOAT, nullable=False)
free_threshold: Mapped[int] = mapped_column(INTEGER, default=-1)