Class: StaffPackage

Inherits:
ApplicationRecord show all
Defined in:
app/models/staff_package.rb

Overview

Schema Information

Table name: staff_packages

id                    :bigint           not null, primary key
created_at            :datetime         not null
updated_at            :datetime         not null
restaurant_package_id :integer
staff_id              :integer

Indexes

index_staff_packages_on_restaurant_package_id  (restaurant_package_id)
index_staff_packages_on_staff_id               (staff_id)

Foreign Keys

fk_rails_...  (restaurant_package_id => hh_package_restaurant_packages.id)
fk_rails_...  (staff_id => staffs.id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url