X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..9b511d8943fa34c9dd09999a4a72ae8405f34164:/onak.sql?ds=sidebyside diff --git a/onak.sql b/onak.sql index 6abb029..9fc033c 100644 --- a/onak.sql +++ b/onak.sql @@ -3,16 +3,18 @@ DROP TABLE onak_uids; DROP TABLE onak_sigs; CREATE TABLE onak_keys ( - keyid char(8) NOT NULL, + keyid char(16) NOT NULL, keydata oid NOT NULL ); +CREATE INDEX onak_keys_keyid_index ON onak_keys(keyid); CREATE TABLE onak_uids ( - keyid char(8) NOT NULL, - uid varchar(6000) NOT NULL + keyid char(16) NOT NULL, + uid varchar(6000) NOT NULL, + pri boolean ); CREATE TABLE onak_sigs ( - signer char(8) NOT NULL, - signee char(8) NOT NULL + signer char(16) NOT NULL, + signee char(16) NOT NULL );