mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Add streaks, scheduled releases, and notification settings
- Couple streaks with milestone notifications - Scheduled pack releases with admin UI - Notification preferences screen - Refactored profile settings screens - Partner activity notifications
This commit is contained in:
1 parent
12f312421b
commit
494ed17fe2
82 files changed
+4189
-725
No files matched your search
@@ -3,20 +3,15 @@
|
||||
|
||||
-- Version indicator: 1 = plaintext (legacy), 2 = E2EE
|
||||
ALTER TABLE messages ADD COLUMN IF NOT EXISTS version INTEGER DEFAULT 1;
|
||||
|
||||
-- Encrypted message content (base64 encoded ciphertext)
|
||||
ALTER TABLE messages ADD COLUMN IF NOT EXISTS encrypted_content TEXT;
|
||||
|
||||
-- Initialization vector for AES-GCM (base64 encoded, 12 bytes)
|
||||
ALTER TABLE messages ADD COLUMN IF NOT EXISTS encryption_iv TEXT;
|
||||
|
||||
-- Triple-wrapped encryption keys and metadata
|
||||
ALTER TABLE messages ADD COLUMN IF NOT EXISTS keys_metadata JSONB;
|
||||
|
||||
-- Add comment for documentation
|
||||
COMMENT ON COLUMN messages.version IS
|
||||
'Encryption version: 1 = plaintext (legacy), 2 = E2EE with triple-wrapped keys';
|
||||
|
||||
-- Constraint: v2 messages must have encryption fields
|
||||
DO $$
|
||||
BEGIN
|
||||
|
||||
Reference in new issue
Block a user