Rename the entire workspace:
- Crate packages: quicnprotochat-{core,proto,server,client,gui,p2p,mobile} -> quicproquo-*
- Binary names: quicnprotochat -> qpq, quicnprotochat-server -> qpq-server,
quicnprotochat-gui -> qpq-gui
- Default files: *-state.bin -> qpq-state.bin, *-server.toml -> qpq-server.toml,
*.db -> qpq.db
- Environment variable prefix: QUICNPROTOCHAT_* -> QPQ_*
- App identifier: chat.quicnproto.gui -> chat.quicproquo.gui
- Proto package: quicnprotochat.bench -> quicproquo.bench
- All documentation, Docker, CI, and script references updated
HKDF domain-separation strings and P2P ALPN remain unchanged for
backward compatibility with existing encrypted state and wire protocol.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 lines
1.3 KiB
SQL
48 lines
1.3 KiB
SQL
CREATE TABLE IF NOT EXISTS key_packages (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
identity_key BLOB NOT NULL,
|
|
package_data BLOB NOT NULL,
|
|
created_at INTEGER DEFAULT (strftime('%s','now'))
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS deliveries (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
recipient_key BLOB NOT NULL,
|
|
channel_id BLOB NOT NULL DEFAULT X'',
|
|
payload BLOB NOT NULL,
|
|
created_at INTEGER DEFAULT (strftime('%s','now'))
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS hybrid_keys (
|
|
identity_key BLOB PRIMARY KEY,
|
|
hybrid_public_key BLOB NOT NULL
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_kp_identity
|
|
ON key_packages(identity_key);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_del_recipient_channel
|
|
ON deliveries(recipient_key, channel_id);
|
|
|
|
CREATE TABLE IF NOT EXISTS server_setup (
|
|
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
setup_data BLOB NOT NULL
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS users (
|
|
username TEXT PRIMARY KEY,
|
|
opaque_record BLOB NOT NULL,
|
|
created_at INTEGER DEFAULT (strftime('%s','now'))
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS user_identity_keys (
|
|
username TEXT PRIMARY KEY,
|
|
identity_key BLOB NOT NULL
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS endpoints (
|
|
identity_key BLOB PRIMARY KEY,
|
|
node_addr BLOB NOT NULL,
|
|
updated_at INTEGER DEFAULT (strftime('%s','now'))
|
|
);
|