склади и инструмент готовы

This commit is contained in:
2025-12-07 19:36:28 +03:00
parent 54bf21d52d
commit 65a3bc1671
65 changed files with 3485 additions and 115 deletions
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -40,5 +40,5 @@ class Toolkit(Base):
async def save(self):
return await CRUD.create(self, refresh=True)
async def edit(id: int, **kwargs):
return await CRUD.update(Toolkit, id, **kwargs)
async def edit(self, **kwargs):
return await CRUD.update(Toolkit, self.id, **kwargs)
+1 -1
View File
@@ -10,7 +10,7 @@ class User(Base):
id = Column(Integer, primary_key=True, index=True)
login = Column(String, unique=True, index=True)
username = Column(String, unique=True, index=True)
photo = Column(String, default="images/users/default.png")
photo = Column(String, default="static/images/users/default.png")
hashed_password = Column(String)
access_level_id = Column(Integer, ForeignKey("access_level.id", ondelete="CASCADE"))
is_active = Column(Boolean, default=True)