Adding Manufacturers and ScopeModels
This commit is contained in:
1 parent
9111117404
commit
b7ad517174
24 files changed
+822
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
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=False)
|
||||
logo_url: Mapped[str | None] = mapped_column(nullable=True, default=None)
|
||||
Reference in new issue
Block a user