module Vhcs
  class GenLookupTables < VhcsRecord

    self.table_name = 'GEN_LookupTables'

    alias_attribute :record_id, :RecordID
    alias_attribute :table_id, :TableID
    alias_attribute :value_id, :ValueID
    alias_attribute :company_pb_entity_key, :CompanyPBEntityKey
    alias_attribute :short_desc, :ShortDesc
    alias_attribute :long_desc, :LongDesc
    alias_attribute :is_active, :IsActive
    alias_attribute :is_default, :IsDefault
    alias_attribute :is_bit_flag, :IsBitFlag
    alias_attribute :is_company_specific, :IsCompanySpecific
    alias_attribute :is_editable, :IsEditable
    alias_attribute :long_description, :LongDescription
    alias_attribute :sort_value, :SortValue
    alias_attribute :system_id_bit_mask, :SystemIDBitMask

    def attributes
      rails_like = {
          record_id: self.record_id,
          table_id: self.table_id,
          value_id: self.value_id,
          company_pb_entity_key: self.company_pb_entity_key,
          short_desc: self.short_desc,
          long_desc: self.long_desc,
          is_active: self.is_active,
          is_default: self.is_default,
          is_bit_flag: self.is_bit_flag,
          is_company_specific: self.is_company_specific,
          is_editable: self.is_editable,
          long_description: self.long_description,
          sort_value: self.sort_value,
          system_id_bit_mask: self.system_id_bit_mask,
      }
      super.merge(rails_like)
    end


  end
end