class CreateGekanatorAiRuns < ActiveRecord::Migration[8.0]
  def change
    create_table :gekanator_ai_runs do |t|
      t.string :model, null: false
      t.integer :input_tokens, null: false, default: 0
      t.integer :output_tokens, null: false, default: 0
      t.decimal :estimated_cost_jpy, precision: 8, scale: 3, null: false, default: 0
      t.string :status, null: false, default: 'pending'
      t.references :gekanator_question_suggestion, null: false, foreign_key: true
      t.timestamps
    end
  end
end
