Class: ViewCoupon

Inherits:
ApplicationViewRecord show all
Includes:
Models::SearchableView, PgSearch::Model
Defined in:
app/models/view_coupon.rb

Overview

== Schema Information

Table name: view_coupons
Database name: primary

id :integer primary key
allow_non_domestic_shipping :boolean
allow_oversized_items :boolean
amount_goods :string(100)
amount_services :string(100)
amount_services_ar :float is an Array
amount_shipping :string(100)
auto_apply :boolean
auto_buying_group_exclude :boolean
buying_group_ids_exclude :boolean
calculation_type_goods :string(5)
calculation_type_services :string(5)
calculation_type_shipping :string(5)
code :string(255)
customer_filter_buying_group_ids :integer is an Array
customer_filter_catalog_ids :integer is an Array
customer_filter_customer_states :string(255) is an Array
customer_filter_exclude_buying_group_ids :boolean
customer_filter_exclude_catalog_ids :boolean
customer_filter_exclude_parties :boolean
customer_filter_exclude_profile_ids :boolean
customer_filter_exclude_report_groupings :boolean
customer_filter_exclude_source_ids :boolean
customer_filter_exclude_tier2_program_pricing_ids :boolean
customer_filter_name :string(120)
customer_filter_profile_ids :integer is an Array
customer_filter_program_pricing_ids :integer is an Array
customer_filter_report_groupings :string is an Array
customer_filter_source_ids :integer is an Array
details :text
effective_date :date
exclude_opportunity_reception_types_filters :boolean
exclude_opportunity_types_filters :boolean
exclude_order_reception_types_filters :boolean
exclude_order_types_filters :boolean
exclude_state_codes :boolean
exclusion_level :integer
expiration_date :date
first_time_customers_only :boolean
is_inactive :boolean
last_used_at :datetime
opportunity_reception_types_filter :string is an Array
opportunity_types_filter :string is an Array
order_reception_types_filter :string(255) is an Array
order_types_filter :string(255) is an Array
p5 :string(100)
p6 :string(100)
position :integer
profile_ids_exclude :boolean
role_ids_restriction :integer is an Array
serial_numbers_only :boolean
state_codes :string(255) is an Array
status :text
store_id_restriction :integer
tier :integer
title :text
type :string(50)
created_at :datetime
updated_at :datetime
auto_apply_customer_filter_id :integer
creator_id :integer
customer_filter_id :integer
customer_filter_store_id :integer
publication_id :integer
source_id :integer
updater_id :integer

Method Summary

Methods included from Models::SearchableView

#crm_link, #crm_link_subtitle, #has_columns?, #main_resource, #readonly?

Methods inherited from ApplicationViewRecord

create, create!, #readonly?

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event