adding part colour
This commit is contained in:
1 parent
422e217180
commit
2e7002b73b
14 files changed
+379
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
from sqlalchemy import UniqueConstraint
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.core.database import Base
|
||||
|
||||
|
||||
class PartColour(Base):
|
||||
__tablename__ = "part_colours"
|
||||
__table_args__ = (UniqueConstraint("name"),)
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
name: Mapped[str] = mapped_column(nullable=False)
|
||||
Reference in new issue
Block a user