Implement quotes.

This commit is contained in:
2025-08-28 15:42:53 +10:00
parent 45e6ed4e29
commit d9fa5c4683
9 changed files with 496 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
from data import Registry, RowModel, Table
from data.columns import Integer, Timestamp, String
from data.columns import Bool, Integer, Timestamp, String
from weakref import WeakValueDictionary
@@ -10,6 +10,7 @@ class Quote(RowModel):
quoteid = Integer(primary=True)
communityid = Integer()
content = String()
deleted_at = Timestamp()
created_by = Integer()
created_at = Timestamp()
_timestamp = Timestamp()
@@ -21,6 +22,7 @@ class QuoteInfo(Quote):
_cache_ = WeakValueDictionary()
quotelabel = Integer()
is_deleted = Bool()
class QuotesData(Registry):