vaultwarden/migrations/sqlite/2022-07-21-200424_create_organization_api_key/up.sql

10 lines
296 B
MySQL
Raw Normal View History

CREATE TABLE organization_api_key (
uuid TEXT NOT NULL,
org_uuid TEXT NOT NULL,
atype INTEGER NOT NULL,
api_key TEXT NOT NULL,
revision_date DATETIME NOT NULL,
PRIMARY KEY(uuid, org_uuid),
FOREIGN KEY(org_uuid) REFERENCES organizations(uuid)
);