feat: auto-suggest KS-2/KS-3 document numbers

This commit is contained in:
Арсентьев Александр
2026-09-27 17:39:22 +03:00
parent b3741ca106
commit 80b7d4732e
11 changed files with 727 additions and 20 deletions
+1
View File
@@ -7,6 +7,7 @@ from app.database.database import Base
class KS3(Base):
__tablename__ = "ks3_documents"
__table_args__ = (UniqueConstraint("project_id", "number", name="uq_ks3_project_number"),)
id = Column(Integer, primary_key=True, index=True)
project_id = Column(Integer, ForeignKey("projects.id"), nullable=False, index=True)