mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-30 18:35:59 +00:00
* open/public queue extension for SMP and SMP agent protocols * add connection mode - invitation or contact * use ConnectionMode with REQ and ACPT agent notification/command * parameterize ConnectionRequest with ConnectionMode * implement Contact connection mode for permanent connection links * tests for contact connections
12 lines
416 B
SQL
12 lines
416 B
SQL
ALTER TABLE connections ADD conn_mode TEXT NOT NULL DEFAULT 'INV';
|
|
|
|
CREATE TABLE conn_invitations (
|
|
invitation_id BLOB NOT NULL PRIMARY KEY,
|
|
contact_conn_id BLOB NOT NULL REFERENCES connections ON DELETE CASCADE,
|
|
cr_invitation BLOB NOT NULL,
|
|
recipient_conn_info BLOB NOT NULL,
|
|
accepted INTEGER NOT NULL DEFAULT 0,
|
|
own_conn_info BLOB,
|
|
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
) WITHOUT ROWID;
|