class CreateInvPhotographerPaymentAmounts < ActiveRecord::Migration[6.0]
  def change
    create_table :inv_photographer_payment_amounts do |t|
      t.integer :photographer_payment_id, null: false
      t.decimal :vat_rate, precision: 10, scale: 3, default: "0.0", null: false
      t.decimal :vat, precision: 10, scale: 3, default: "0.0", null: false
      t.decimal :total_ht, precision: 10, scale: 3, default: "0.0", null: false
      t.index :photographer_payment_id, name: "index_photographer_payment_id"
    end
  end
end
