8 lines
239 B
SQL
8 lines
239 B
SQL
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)
|
|
);
|