mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
17 lines
410 B
SQL
17 lines
410 B
SQL
CREATE TYPE crypto_key_feature AS ENUM (
|
|
'workspace_apps',
|
|
'oidc_convert',
|
|
'tailnet_resume'
|
|
);
|
|
|
|
CREATE TABLE crypto_keys (
|
|
feature crypto_key_feature NOT NULL,
|
|
sequence integer NOT NULL,
|
|
secret text NULL,
|
|
secret_key_id text NULL REFERENCES dbcrypt_keys(active_key_digest),
|
|
starts_at timestamptz NOT NULL,
|
|
deletes_at timestamptz NULL,
|
|
PRIMARY KEY (feature, sequence)
|
|
);
|
|
|