CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE IF NOT EXISTS votes ( slug text not null, voter_id uuid not null, created_at timestamptz NOT NULL DEFAULT timezone('utc'::text, now()), primary key (slug, voter_id) );