Add clamp connection
This commit is contained in:
1 parent
0168b023af
commit
59184124e7
14 files changed
+452
-2
No files matched your search
@@ -3,6 +3,7 @@
|
||||
from app.models.associations import augmented_part_imported_parts, role_permissions, user_roles
|
||||
from app.models.audit_log import AuditLog
|
||||
from app.models.augmented_part import AugmentedPart
|
||||
from app.models.clamp_connection import ClampConnection
|
||||
from app.models.imported_part import ImportedPart
|
||||
from app.models.imported_part_config import ImportedPartConfig
|
||||
from app.models.iso_thread import IsoThread
|
||||
@@ -21,6 +22,7 @@ from app.models.user import User
|
||||
__all__ = [
|
||||
"AuditLog",
|
||||
"AugmentedPart",
|
||||
"ClampConnection",
|
||||
"ImportedPart",
|
||||
"ImportedPartConfig",
|
||||
"IsoThread",
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
from sqlalchemy import Float
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.core.database import Base
|
||||
|
||||
|
||||
class ClampConnection(Base):
|
||||
__tablename__ = "clamp_connections"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
min_mm: Mapped[float | None] = mapped_column(Float, nullable=True, default=None)
|
||||
max_mm: Mapped[float | None] = mapped_column(Float, nullable=True, default=None)
|
||||
min_in: Mapped[float | None] = mapped_column(Float, nullable=True, default=None)
|
||||
max_in: Mapped[float | None] = mapped_column(Float, nullable=True, default=None)
|
||||
Reference in new issue
Block a user