feat(ee): Captain custom http tools (#12584)
To test this out, use the following PR: https://github.com/chatwoot/chatwoot/pull/12585 --------- Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
22
db/migrate/20251003091242_create_captain_custom_tools.rb
Normal file
22
db/migrate/20251003091242_create_captain_custom_tools.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class CreateCaptainCustomTools < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :captain_custom_tools do |t|
|
||||
t.references :account, null: false, index: true
|
||||
t.string :slug, null: false
|
||||
t.string :title, null: false
|
||||
t.text :description
|
||||
t.string :http_method, null: false, default: 'GET'
|
||||
t.text :endpoint_url, null: false
|
||||
t.text :request_template
|
||||
t.text :response_template
|
||||
t.string :auth_type, default: 'none'
|
||||
t.jsonb :auth_config, default: {}
|
||||
t.jsonb :param_schema, default: []
|
||||
t.boolean :enabled, default: true, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :captain_custom_tools, [:account_id, :slug], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user