-- +goose Up
-- +goose StatementBegin
ALTER TABLE admin_users
  ADD COLUMN IF NOT EXISTS token_version BIGINT NOT NULL DEFAULT 1 COMMENT '后台凭证版本，递增后旧 token 失效'
  AFTER support_status;

ALTER TABLE admin_users
  ADD COLUMN IF NOT EXISTS password_must_change TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否必须先修改密码'
  AFTER token_version;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE admin_users
  DROP COLUMN IF EXISTS password_must_change;

ALTER TABLE admin_users
  DROP COLUMN IF EXISTS token_version;
-- +goose StatementEnd
