Adding OData Import
This commit is contained in:
1 parent
c8696e67b5
commit
291416544e
18 files changed
+547
-3
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from sqlalchemy import String
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.core.database import Base
|
||||
|
||||
|
||||
class ImportedPartConfig(Base):
|
||||
"""Singleton (id=1) storing the OData source URL and credentials."""
|
||||
|
||||
__tablename__ = "imported_part_config"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True, default=1)
|
||||
odata_url: Mapped[str | None] = mapped_column(String, nullable=True, default=None)
|
||||
username: Mapped[str | None] = mapped_column(String, nullable=True, default=None)
|
||||
password: Mapped[str | None] = mapped_column(String, nullable=True, default=None)
|
||||
Reference in new issue
Block a user