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

14 lines
381 B
Ruby

# == Schema Information
#
# Table name: guests
#
# id :bigint not null, primary key
# name :string
# username :string
# created_at :datetime not null
# updated_at :datetime not null
#
class Guest < ApplicationRecord
has_many :price_reports, dependent: :destroy
has_many :moderation_logs, as: :moderatable, dependent: :destroy
end