chore: document project-wide soft delete pattern and add deleted_by column to all tables

This commit is contained in:
2026-06-11 20:36:47 +00:00
parent d0e2075e6d
commit 9a93debfc9
37 changed files with 1690 additions and 266 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ async def news_detail_page(request: Request, news_slug: str):
image_url = ""
if "news_images" in db.tables:
img = get_table("news_images").find_one(news_uid=article["uid"])
img = get_table("news_images").find_one(
news_uid=article["uid"], deleted_at=None
)
if img:
image_url = img["url"]