-- +goose Up
-- +goose StatementBegin
CREATE TABLE issue_task (
  issue_task_id CHAR(48) PRIMARY KEY,
  issue_id CHAR(32) NOT NULL,
  activity_id CHAR(16) NOT NULL,
  created_time TIMESTAMP NOT NULL,
  updated_time TIMESTAMP NOT NULL,
  due_time TIMESTAMP,
  status_stage INT NOT NULL,
  status_name CHAR(32) NOT NULL,
  name VARCHAR(255) NOT NULL,
  description TEXT NOT NULL,
  estimated_time BIGINT NOT NULL,
  estimated_units INT NOT NULL,
  points_multiplier FLOAT NOT NULL,

  INDEX (issue_id),
  INDEX (activity_id)
);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE issue_task;
-- +goose StatementEnd
