feat: Add APIs for custom attribute definitions (#2689)
This commit is contained in:
15
db/schema.rb
15
db/schema.rb
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_07_21_182458) do
|
||||
ActiveRecord::Schema.define(version: 2021_07_22_095814) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
@@ -292,6 +292,19 @@ ActiveRecord::Schema.define(version: 2021_07_21_182458) do
|
||||
t.index ["message_id"], name: "index_csat_survey_responses_on_message_id", unique: true
|
||||
end
|
||||
|
||||
create_table "custom_attribute_definitions", force: :cascade do |t|
|
||||
t.string "attribute_display_name"
|
||||
t.string "attribute_key"
|
||||
t.integer "attribute_display_type", default: 0
|
||||
t.integer "default_value"
|
||||
t.integer "attribute_model", default: 0
|
||||
t.bigint "account_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["account_id"], name: "index_custom_attribute_definitions_on_account_id"
|
||||
t.index ["attribute_key", "attribute_model"], name: "attribute_key_model_index", unique: true
|
||||
end
|
||||
|
||||
create_table "custom_filters", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.integer "filter_type", default: 0, null: false
|
||||
|
||||
Reference in New Issue
Block a user