class CreateInvPhotographerBillingCompanies < ActiveRecord::Migration[6.0]
  def change
    create_table :inv_photographer_billing_companies do |t|
      t.integer "user_id", null: false
      t.string "billing_company"
      t.string "billing_address"
      t.string "billing_zip_code"
      t.string "billing_city"
      t.integer "billing_country_id"
      t.string "billing_email"
      t.datetime "created_at", null: false
      t.datetime "updated_at", null: false
      t.string "billing_phone"
      t.string "billing_complement"
      t.integer "discount"
      t.integer "vat_id"
      t.string "vat_number"
      t.boolean "distributor", default: false, null: false
      t.string "bank_account"
      t.integer "payment_type_id"
      t.integer "time_limit"
      t.boolean "end_of_month", default: false, null: false
      t.string "siret"
      t.index "user_id"
    end
  end
end
