Add repository commands for handling votes

This commit is contained in:
Alex Selimov 2026-03-19 10:05:38 -04:00
parent 4b16f39b4d
commit 40331451ca
9 changed files with 647 additions and 4 deletions

View file

@ -0,0 +1,8 @@
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)
);