mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Implement Signal Protocol
This commit is contained in:
@@ -71,6 +71,15 @@ class CryptoBackup(Base):
|
||||
blob_json = Column(Text, nullable=False)
|
||||
|
||||
|
||||
class SignalPreKeyBundle(Base):
|
||||
__tablename__ = "signal_prekey_bundle"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
user_id = Column(Integer, ForeignKey("user.id"), nullable=False, unique=True)
|
||||
bundle_json = Column(Text, nullable=False) # JSON string of PreKeyBundleData
|
||||
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now)
|
||||
|
||||
|
||||
class DMEnvelope(Base):
|
||||
__tablename__ = "dm_envelope"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user