Files
warmbly/internal/infrastructure/db/migrations/000035_api_key_suffix.up.sql
T

7 lines
273 B
SQL

-- API key display suffix: last 4 chars of the raw key.
-- Together with key_prefix this gives users enough to identify a key
-- in the UI (e.g. "wmbly_ab...wxyz") without exposing the secret.
ALTER TABLE api_keys
ADD COLUMN key_suffix VARCHAR(4) NOT NULL DEFAULT '';