class LightBox < ApplicationRecord
  has_many :light_box_images
  has_many :images, through: :light_box_images
  belongs_to :user

  scope :for_pixtech, -> { joins(:user).where(users: { roles_mask: [8, 16, 32, 128] }) }
end
