feat: modules, products, services, services kits
This commit is contained in:
@ -6,7 +6,7 @@ from models.base import BaseModel
|
||||
from models.mixins import SoftDeleteMixin, CreatedAtMixin, IdMixin
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from models import Board
|
||||
from models import Board, BuiltInModule
|
||||
|
||||
|
||||
class Project(BaseModel, IdMixin, SoftDeleteMixin, CreatedAtMixin):
|
||||
@ -18,3 +18,10 @@ class Project(BaseModel, IdMixin, SoftDeleteMixin, CreatedAtMixin):
|
||||
back_populates="project",
|
||||
lazy="noload",
|
||||
)
|
||||
|
||||
built_in_modules: Mapped[list["BuiltInModule"]] = relationship(
|
||||
secondary="project_built_in_module",
|
||||
back_populates="projects",
|
||||
lazy="selectin",
|
||||
order_by="asc(BuiltInModule.id)",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user