chore: Add the support for list and checkbox in custom attribute model (#3400)
ref: #3399
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
# Table name: custom_attribute_definitions
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# attribute_description :text
|
||||
# attribute_display_name :string
|
||||
# attribute_display_type :integer default("text")
|
||||
# attribute_description :text
|
||||
# attribute_key :string
|
||||
# attribute_model :integer default("conversation_attribute")
|
||||
# default_value :integer
|
||||
# values :jsonb
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# account_id :bigint
|
||||
@@ -30,7 +31,7 @@ class CustomAttributeDefinition < ApplicationRecord
|
||||
validates :attribute_model, presence: true
|
||||
|
||||
enum attribute_model: { conversation_attribute: 0, contact_attribute: 1 }
|
||||
enum attribute_display_type: { text: 0, number: 1, currency: 2, percent: 3, link: 4, date: 5 }
|
||||
enum attribute_display_type: { text: 0, number: 1, currency: 2, percent: 3, link: 4, date: 5, list: 6, checkbox: 7 }
|
||||
|
||||
belongs_to :account
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user