18 lines
570 B
Ruby
18 lines
570 B
Ruby
module Baclight
|
|
class IdCardPlan < BaclightRecord
|
|
|
|
self.table_name = 'id_card_plans'
|
|
|
|
has_many :baclight_id_card_plan_benefits, class_name: "Baclight::IdCardPlanBenefit", foreign_key: "plan_id", primary_key: "id"
|
|
|
|
alias_attribute :id, :id
|
|
alias_attribute :title, :title
|
|
alias_attribute :pb_product_key, :pb_product_key
|
|
alias_attribute :pl_plan_key, :pl_plan_key
|
|
alias_attribute :template, :template
|
|
alias_attribute :setup_id, :setup_id
|
|
alias_attribute :created_at, :created_at
|
|
alias_attribute :updated_at, :updated_at
|
|
|
|
end
|
|
end |