13 lines
363 B
Python
13 lines
363 B
Python
from sqlalchemy import UniqueConstraint
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.core.database import Base
|
|
|
|
|
|
class AttachmentPointName(Base):
|
|
__tablename__ = "attachment_point_names"
|
|
__table_args__ = (UniqueConstraint("name"),)
|
|
|
|
id: Mapped[int] = mapped_column(primary_key=True)
|
|
name: Mapped[str] = mapped_column(nullable=False)
|