2026-05-25 16:15:06 +00:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: price_reports
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# discount_price :decimal(, )
|
|
|
|
|
# price :decimal(, )
|
|
|
|
|
# reported_at :datetime
|
|
|
|
|
# created_at :datetime not null
|
|
|
|
|
# updated_at :datetime not null
|
|
|
|
|
# product_id :integer not null
|
|
|
|
|
# store_id :integer not null
|
2026-05-30 16:15:24 +00:00
|
|
|
# user_id :bigint not null
|
2026-05-25 16:15:06 +00:00
|
|
|
#
|
|
|
|
|
# Indexes
|
|
|
|
|
#
|
|
|
|
|
# index_price_reports_on_product_id (product_id)
|
|
|
|
|
# index_price_reports_on_store_id (store_id)
|
2026-05-30 16:15:24 +00:00
|
|
|
# index_price_reports_on_user_id (user_id)
|
2026-05-25 16:15:06 +00:00
|
|
|
#
|
|
|
|
|
# Foreign Keys
|
|
|
|
|
#
|
|
|
|
|
# fk_rails_... (product_id => products.id)
|
|
|
|
|
# fk_rails_... (store_id => stores.id)
|
2026-05-30 16:15:24 +00:00
|
|
|
# fk_rails_... (user_id => users.id)
|
2026-05-25 16:15:06 +00:00
|
|
|
#
|
2026-05-17 11:12:43 +00:00
|
|
|
require "test_helper"
|
|
|
|
|
|
|
|
|
|
class PriceReportTest < ActiveSupport::TestCase
|
|
|
|
|
# test "the truth" do
|
|
|
|
|
# assert true
|
|
|
|
|
# end
|
|
|
|
|
end
|