class CreateTranscriptHighlights < ActiveRecord::Migration[7.0]
  def change
    create_table :transcript_highlights do |t|
      t.float :start, null: true
      t.float :end, null: true
      t.string :highlight_color, null: false
      t.string :tag, null: true
      t.jsonb :content, default: {}
      t.references :user, null: false, foreign_key: true
      t.references :respondent, null: false, foreign_key: true

      t.timestamps
    end
  end
end
