mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-04 08:03:37 +01:00
27 lines
788 B
Plaintext
27 lines
788 B
Plaintext
|
\c notarysigner;
|
||
|
|
||
|
CREATE TABLE "private_keys" (
|
||
|
"id" int PRIMARY KEY,
|
||
|
"created_at" timestamp NULL DEFAULT NULL,
|
||
|
"updated_at" timestamp NULL DEFAULT NULL,
|
||
|
"deleted_at" timestamp NULL DEFAULT NULL,
|
||
|
"key_id" varchar(255) NOT NULL,
|
||
|
"encryption_alg" varchar(255) NOT NULL,
|
||
|
"keywrap_alg" varchar(255) NOT NULL,
|
||
|
"algorithm" varchar(50) NOT NULL,
|
||
|
"passphrase_alias" varchar(50) NOT NULL,
|
||
|
"public" bytea NOT NULL,
|
||
|
"private" bytea NOT NULL,
|
||
|
"gun" varchar(255) NOT NULL,
|
||
|
"role" varchar(255) NOT NULL,
|
||
|
"last_used" timestamp NULL DEFAULT NULL,
|
||
|
CONSTRAINT "key_id" UNIQUE ("key_id"),
|
||
|
CONSTRAINT "key_id_2" UNIQUE ("key_id","algorithm")
|
||
|
);
|
||
|
|
||
|
|
||
|
CREATE TABLE "schema_migrations" (
|
||
|
"version" int PRIMARY KEY
|
||
|
);
|
||
|
|
||
|
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO signer;
|