CREATE TABLE device_mls_credentials ( device_id uuid PRIMARY KEY REFERENCES devices(id) ON DELETE CASCADE, public_key bytea NOT NULL CHECK (octet_length(public_key)=32), signature bytea NOT NULL CHECK (octet_length(signature)=64) );