fix api
This commit is contained in:
parent
01b8951dd5
commit
10ebc59ffb
17 changed files with 1087 additions and 238 deletions
|
@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS tokens (
|
|||
counter INTEGER, -- HOTP计数器(可选)
|
||||
period INTEGER NOT NULL, -- TOTP周期(秒)
|
||||
digits INTEGER NOT NULL, -- 验证码位数
|
||||
algo VARCHAR(10) NOT NULL, -- 使用的哈希算法
|
||||
algorithm VARCHAR(10) NOT NULL DEFAULT 'SHA1', -- 使用的哈希算法
|
||||
timestamp BIGINT NOT NULL, -- 最后更新时间戳
|
||||
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
|
||||
|
@ -45,7 +45,7 @@ COMMENT ON COLUMN tokens.type IS '令牌类型(totp/hotp)';
|
|||
COMMENT ON COLUMN tokens.counter IS 'HOTP计数器(可选)';
|
||||
COMMENT ON COLUMN tokens.period IS 'TOTP周期(秒)';
|
||||
COMMENT ON COLUMN tokens.digits IS '验证码位数';
|
||||
COMMENT ON COLUMN tokens.algo IS '使用的哈希算法';
|
||||
COMMENT ON COLUMN tokens.algorithm IS '使用的哈希算法';
|
||||
COMMENT ON COLUMN tokens.timestamp IS '最后更新时间戳';
|
||||
COMMENT ON COLUMN tokens.created_at IS '创建时间';
|
||||
COMMENT ON COLUMN tokens.updated_at IS '最后更新时间';
|
Loading…
Add table
Add a link
Reference in a new issue