Class: VendorReservation
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- VendorReservation
- Extended by:
- Enumerize
- Defined in:
- app/models/vendor_reservation.rb
Overview
Schema Information
Table name: vendor_reservations
id :bigint not null, primary key
journal_entry :json
reseller_name :string(191)
supplier_memo_payment_status :integer default("pending"), not null
web_v2_host :string(191)
webhook_arrived_sent_at :datetime
webhook_cancel_modified_sent_at :datetime
webhook_pending_arrival_sent_at :datetime
webhook_reservation_status :string(191)
webhook_sent_at :datetime
created_at :datetime not null
updated_at :datetime not null
inventory_source_id :bigint
reference_id :string(191)
reseller_reference_id :string(191)
reservation_id :bigint
supplier_reservation_id :string(191)
vendor_id :integer
vendor_user_id :bigint
Indexes
index_vendor_reservations_on_inventory_source_id (inventory_source_id)
index_vendor_reservations_on_reference_id (reference_id)
index_vendor_reservations_on_reseller_reference_id (reseller_reference_id)
index_vendor_reservations_on_reservation_id (reservation_id)
index_vendor_reservations_on_supplier_reservation_id (supplier_reservation_id)
index_vendor_reservations_on_vendor_id (vendor_id)
Foreign Keys
fk_rails_... (inventory_source_id => inventory_sources.id)