Class: StaffRole
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- StaffRole
- Extended by:
- Enumerize
- Defined in:
- app/models/staff_role.rb
Overview
typed: ignore
Schema Information
Table name: staff_roles
id :integer not null, primary key
role :string(191) default("staff"), not null
restaurant_id :integer
staff_id :integer
Indexes
index_staff_roles_on_restaurant_id (restaurant_id)
index_staff_roles_on_staff_id (staff_id)
index_staff_roles_on_staff_id_and_restaurant_id (staff_id,restaurant_id) UNIQUE