streams: Add folder foreign key to Stream table.

This commit also adds "folder_id" field in stream and subscription
objects.

Fixes part of #31972.
This commit is contained in:
Sahil Batra
2025-05-15 18:42:27 +05:30
committed by Tim Abbott
parent 5de0f265bd
commit 202bebda89
10 changed files with 104 additions and 6 deletions

View File

@@ -168,6 +168,7 @@ class RawStreamDict(TypedDict):
deactivated: bool
description: str
first_message_id: int | None
folder_id: int | None
is_recently_active: bool
history_public_to_subscribers: bool
id: int
@@ -216,6 +217,7 @@ class SubscriptionStreamDict(TypedDict):
desktop_notifications: bool | None
email_notifications: bool | None
first_message_id: int | None
folder_id: int | None
is_recently_active: bool
history_public_to_subscribers: bool
in_home_view: bool
@@ -248,6 +250,7 @@ class NeverSubscribedStreamDict(TypedDict):
date_created: int
description: str
first_message_id: int | None
folder_id: int | None
is_recently_active: bool
history_public_to_subscribers: bool
invite_only: bool
@@ -279,6 +282,7 @@ class DefaultStreamDict(TypedDict):
date_created: int
description: str
first_message_id: int | None
folder_id: int | None
is_recently_active: bool
history_public_to_subscribers: bool
invite_only: bool