13 lines
388 B
Python
13 lines
388 B
Python
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.core.database import Base
|
|
|
|
|
|
class Manufacturer(Base):
|
|
__tablename__ = "manufacturers"
|
|
|
|
id: Mapped[int] = mapped_column(primary_key=True)
|
|
name: Mapped[str] = mapped_column(nullable=False)
|
|
url: Mapped[str] = mapped_column(nullable=True)
|
|
logo_url: Mapped[str | None] = mapped_column(nullable=True, default=None)
|