cargagep-v2/db/migrations/20260825120000_linka_whitelist.sql
Antoine Pelletier 2d6ef8de6c feat: add linka
2026-08-25 12:10:53 +02:00

16 lines
590 B
SQL

-- migrate:up
-- What the app has actually put on the Linka Go restriction list.
--
-- The platform offers no way to read that list back, so the only honest record
-- of it is the one kept here: each tick compares the addresses that *should* be
-- allowed right now against this table, and calls the api for the difference.
-- A row is written only once the call has succeeded, so a failed call is simply
-- retried at the next tick.
CREATE TABLE linka_whitelist (
email text PRIMARY KEY,
added_at timestamptz NOT NULL DEFAULT now()
);
-- migrate:down
DROP TABLE linka_whitelist;