-- +migrate Up
CREATE TABLE balance_adjustments (
  id           TEXT PRIMARY KEY,
  delta_ms     INTEGER NOT NULL,
  note         TEXT NOT NULL DEFAULT '',
  effective_at INTEGER NOT NULL,
  created_at   INTEGER NOT NULL,
  updated_at   INTEGER NOT NULL
);
CREATE INDEX idx_balance_adjustments_effective_at ON balance_adjustments(effective_at);

-- +migrate Down
DROP INDEX IF EXISTS idx_balance_adjustments_effective_at;
DROP TABLE IF EXISTS balance_adjustments;
