feat: attributes in cards and projects
This commit is contained in:
@@ -37,13 +37,15 @@ class Attribute(BaseModel):
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
label: Mapped[str] = mapped_column(nullable=False)
|
||||
name: Mapped[str] = mapped_column(nullable=False, unique=True)
|
||||
name: Mapped[str] = mapped_column(nullable=False, index=True)
|
||||
is_applicable_to_group: Mapped[bool] = mapped_column(
|
||||
default=False,
|
||||
comment='Применять ли изменения атрибута карточки ко всем карточкам в группе',
|
||||
)
|
||||
is_nullable: Mapped[bool] = mapped_column(default=False, nullable=False)
|
||||
default_value: Mapped[bytes] = mapped_column(nullable=True)
|
||||
is_deleted: Mapped[bool] = mapped_column(default=False)
|
||||
description: Mapped[str] = mapped_column(default="", nullable=False)
|
||||
|
||||
projects: Mapped[list['Project']] = relationship(
|
||||
'Project',
|
||||
|
||||
Reference in New Issue
Block a user