class CreateInvPhotographerClosingAmounts < ActiveRecord::Migration[6.0]
  def change
    create_table :inv_photographer_closing_amounts do |t|
      t.integer :photographer_closing_id, null: false
      t.decimal :vat_rate, precision: 10, scale: 3, null: false
      t.decimal :grand_vat_total, precision: 10, scale: 3, null: false
      t.decimal :perpetual_vat_total, precision: 10, scale: 3, null: false
      t.string :hash_string
      t.string :previous_hash_string
      t.timestamps
      t.index :photographer_closing_id, name: "index_photographer_closing_id"
    end
  end
end
