Skip to content

aria2_server.db.server_config.models

__all__ module-attribute

__all__ = ('ServerConfig')

ServerConfig

Bases: Base

__tablename__ class-attribute instance-attribute

__tablename__ = 'server_config'

id class-attribute instance-attribute

id: Mapped[int] = mapped_column(Integer, primary_key=True)

secret_token class-attribute instance-attribute

secret_token: Mapped[str] = mapped_column(
    String(length=43), nullable=False, default=token_urlsafe
)