You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
517 B
12 lines
517 B
-- org_uuid is VARCHAR(40) to match organizations.uuid exactly; the FOREIGN KEY
|
|
-- must be a table-level clause because MySQL silently ignores inline
|
|
-- column-level REFERENCES.
|
|
CREATE TABLE scim_api_key (
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
org_uuid VARCHAR(40) NOT NULL UNIQUE,
|
|
key_hash VARCHAR(255) NOT NULL,
|
|
enabled BOOLEAN NOT NULL DEFAULT TRUE,
|
|
created_at DATETIME NOT NULL,
|
|
revision_date DATETIME NOT NULL,
|
|
FOREIGN KEY(org_uuid) REFERENCES organizations(uuid)
|
|
);
|
|
|