Slide 12
Slide 12 text
手順 3. テーブル作成(関連分)
● secret_note : 暗号化対象の列
● key_id : 鍵 ID
● nonce : 行毎のランダム値(ナンス)
12
create table privates (
note_id bigint generated by default as identity,
updated_at timestamp with time zone,
secret_note text not null,
key_id uuid not null default '【準備2.で出たid】'::uuid,
nonce bytea default pgsodium.crypto_aead_det_noncegen(),
userid uuid not null,
primary key (note_id)
);