Switch encryption key columns from text to varchar(64)

This commit is contained in:
netkas 2025-01-03 14:18:20 -05:00
parent 25dcf66755
commit 76abbdcb3e

View file

@ -6,13 +6,13 @@ create table sessions
client_name varchar(256) not null comment 'The name of the client that is using this session',
client_version varchar(16) not null comment 'The version of the client',
authenticated tinyint(1) default 0 not null comment 'Indicates if the session is currently authenticated as the peer',
client_public_signing_key text not null comment 'The client''s public signing key used for signing decrypted messages',
client_public_encryption_key text not null comment 'The Public Key of the client''s encryption key',
server_public_encryption_key text not null comment 'The server''s public encryption key for this session',
server_private_encryption_key text not null comment 'The server''s private encryption key for this session',
private_shared_secret text null comment 'The shared secret encryption key between the Client & Server',
client_transport_encryption_key text null comment 'The encryption key for sending messages to the client',
server_transport_encryption_key text null comment 'The encryption key for sending messages to the server',
client_public_signing_key varchar(64) not null comment 'The client''s public signing key used for signing decrypted messages',
client_public_encryption_key varchar(64) not null comment 'The Public Key of the client''s encryption key',
server_public_encryption_key varchar(64) not null comment 'The server''s public encryption key for this session',
server_private_encryption_key varchar(64) not null comment 'The server''s private encryption key for this session',
private_shared_secret varchar(64) null comment 'The shared secret encryption key between the Client & Server',
client_transport_encryption_key varchar(64) null comment 'The encryption key for sending messages to the client',
server_transport_encryption_key varchar(64) null comment 'The encryption key for sending messages to the server',
state enum ('AWAITING_DHE', 'ACTIVE', 'CLOSED', 'EXPIRED') default 'AWAITING_DHE' not null comment 'The status of the session',
flags text null comment 'The current flags that is set to the session',
created timestamp default current_timestamp() not null comment 'The Timestamp for when the session was last created',