Files
api/app/models/baclight/carrier.rb
T

20 lines
582 B
Ruby
Raw Normal View History

2026-07-23 10:41:46 -04:00
module Baclight
class Carrier < BaclightRecord
self.table_name = 'Carriers'
has_many :baclight_brokers, class_name: "Baclight::Broker", foreign_key: "carrier_id", primary_key: "id"
has_many :baclight_employers,
through: :baclight_brokers,
2026-09-16 12:41:44 -04:00
source: :baclight_employers
2026-07-23 10:41:46 -04:00
has_many :baclight_members,
through: :baclight_employers,
2026-09-16 12:41:44 -04:00
source: :baclight_members
2026-07-23 10:41:46 -04:00
alias_attribute :id, :id
alias_attribute :name, :name
alias_attribute :created_at, :created_at
alias_attribute :updated_at, :updated_at
end
end