Files
datamarket/db/migration/000003_add_jwt_config.up.sql
2026-04-07 21:21:18 +08:00

11 lines
306 B
SQL

-- add config(jwt)
CREATE TABLE IF NOT EXISTS config
(
id integer PRIMARY KEY, -- always 0
"Jwt.Alg" text NOT NULL DEFAULT 'HS256',
"Jwt.SignKey" text NOT NULL DEFAULT gen_random_uuid(),
"Jwt.VerifyKye" text DEFAULT NULL
);
INSERT INTO config (id)
VALUES (0);