add list api keys for account, track last_used for api_keys

This commit is contained in:
Dave Horton
2020-07-22 11:31:05 -04:00
parent 4efee5a8b8
commit 3be0412de1
7 changed files with 208 additions and 28 deletions
+2
View File
@@ -56,6 +56,8 @@ token CHAR(36) NOT NULL UNIQUE ,
account_sid CHAR(36),
service_provider_sid CHAR(36),
expires_at TIMESTAMP,
last_used TIMESTAMP ON UPDATE NOW(),
created_at TIMESTAMP DEFAULT NOW(),
PRIMARY KEY (api_key_sid)
) ENGINE=InnoDB COMMENT='An authorization token that is used to access the REST api';