discard adjustable models' id prefix & payload length

This commit is contained in:
2026-05-19 01:54:06 +08:00
parent 86b030930c
commit b58f74d59b
6 changed files with 21 additions and 45 deletions
+1 -5
View File
@@ -1,17 +1,13 @@
from typing import TYPE_CHECKING
from sqlalchemy import Column, DateTime, String, ForeignKey, Integer
from sqlalchemy.sql import func
from .base import AutoID, Base
if TYPE_CHECKING:
from .workspace import Workspace
class ProjectItem(Base, AutoID):
"""项目与文件夹的树状虚拟文件系统"""
__tablename__ = "project_items"
workspace_id = Column(
String(Workspace.id_length()),
String(AutoID.id_length()),
ForeignKey("workspaces.id", ondelete="CASCADE"),
index=True,
)