2021-09-20 15:46:34 +00:00
|
|
|
-- generate a jwt secret
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
2021-09-20 15:46:34 +00:00
|
|
|
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE TABLE secret (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
jwt_secret varchar NOT NULL DEFAULT gen_random_uuid ()
|
2021-09-20 15:46:34 +00:00
|
|
|
);
|
|
|
|
|
2023-08-02 16:44:51 +00:00
|
|
|
INSERT INTO secret DEFAULT VALUES;
|