price-point-api/app/models/product.rb

19 lines
405 B
Ruby
Raw Permalink Normal View History

2026-05-25 16:15:06 +00:00
# == Schema Information
#
# Table name: products
#
# id :bigint not null, primary key
# barcode :string
# name :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_products_on_barcode (barcode) UNIQUE
#
2026-05-17 11:12:43 +00:00
class Product < ApplicationRecord
has_one_attached :image
has_many :price_reports, dependent: :destroy
2026-05-17 11:12:43 +00:00
end