chore(billing): drop unrelated schema.rb changes, keep only migration version bump
This commit is contained in:
+3
-34
@@ -73,10 +73,6 @@ ActiveRecord::Schema[7.1].define(version: 2026_06_15_000000) do
|
||||
t.integer "status", default: 0
|
||||
t.jsonb "internal_attributes", default: {}, null: false
|
||||
t.jsonb "settings", default: {}
|
||||
t.integer "open_conversations_count", default: 0, null: false
|
||||
t.integer "resolved_conversations_count", default: 0, null: false
|
||||
t.integer "pending_conversations_count", default: 0, null: false
|
||||
t.integer "snoozed_conversations_count", default: 0, null: false
|
||||
t.index ["status"], name: "index_accounts_on_status"
|
||||
end
|
||||
|
||||
@@ -204,8 +200,8 @@ ActiveRecord::Schema[7.1].define(version: 2026_06_15_000000) do
|
||||
t.text "description"
|
||||
t.integer "assignment_order", default: 0, null: false
|
||||
t.integer "conversation_priority", default: 0, null: false
|
||||
t.integer "fair_distribution_limit", default: 1, null: false
|
||||
t.integer "fair_distribution_window", default: 60, null: false
|
||||
t.integer "fair_distribution_limit", default: 100, null: false
|
||||
t.integer "fair_distribution_window", default: 3600, null: false
|
||||
t.boolean "enabled", default: true, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
@@ -283,11 +279,8 @@ ActiveRecord::Schema[7.1].define(version: 2026_06_15_000000) do
|
||||
t.text "transcript"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "media_session_id"
|
||||
t.index ["accepted_by_agent_id", "status"], name: "index_calls_on_accepted_by_agent_id_and_status"
|
||||
t.index ["account_id", "contact_id"], name: "index_calls_on_account_id_and_contact_id"
|
||||
t.index ["account_id", "conversation_id"], name: "index_calls_on_account_id_and_conversation_id"
|
||||
t.index ["media_session_id"], name: "index_calls_on_media_session_id", unique: true
|
||||
t.index ["message_id"], name: "index_calls_on_message_id"
|
||||
t.index ["provider", "provider_call_id"], name: "index_calls_on_provider_and_provider_call_id", unique: true
|
||||
end
|
||||
@@ -480,10 +473,8 @@ ActiveRecord::Schema[7.1].define(version: 2026_06_15_000000) do
|
||||
t.boolean "smtp_enable_ssl_tls", default: false
|
||||
t.jsonb "provider_config", default: {}
|
||||
t.string "provider"
|
||||
t.boolean "verified_for_sending", default: false, null: false
|
||||
t.integer "imap_retry_count", default: 0, null: false
|
||||
t.datetime "imap_retry_after"
|
||||
t.string "imap_authentication", default: "plain"
|
||||
t.boolean "verified_for_sending", default: false, null: false
|
||||
t.index ["email"], name: "index_channel_email_on_email", unique: true
|
||||
t.index ["forward_to_email"], name: "index_channel_email_on_forward_to_email", unique: true
|
||||
end
|
||||
@@ -1335,27 +1326,6 @@ ActiveRecord::Schema[7.1].define(version: 2026_06_15_000000) do
|
||||
t.index ["account_id", "url"], name: "index_webhooks_on_account_id_and_url", unique: true
|
||||
end
|
||||
|
||||
create_table "whatsapp_calls", force: :cascade do |t|
|
||||
t.bigint "account_id", null: false
|
||||
t.bigint "inbox_id", null: false
|
||||
t.bigint "conversation_id", null: false
|
||||
t.bigint "accepted_by_agent_id"
|
||||
t.string "call_id", null: false
|
||||
t.string "direction", null: false
|
||||
t.string "status", default: "ringing", null: false
|
||||
t.integer "duration_seconds"
|
||||
t.string "end_reason"
|
||||
t.jsonb "meta", default: {}, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.bigint "message_id"
|
||||
t.text "transcript"
|
||||
t.index ["account_id", "conversation_id"], name: "index_whatsapp_calls_on_account_id_and_conversation_id"
|
||||
t.index ["call_id"], name: "index_whatsapp_calls_on_call_id", unique: true
|
||||
t.index ["inbox_id", "status"], name: "index_whatsapp_calls_on_inbox_id_and_status"
|
||||
t.index ["message_id"], name: "index_whatsapp_calls_on_message_id"
|
||||
end
|
||||
|
||||
create_table "working_hours", force: :cascade do |t|
|
||||
t.bigint "inbox_id"
|
||||
t.bigint "account_id"
|
||||
@@ -1376,7 +1346,6 @@ ActiveRecord::Schema[7.1].define(version: 2026_06_15_000000) do
|
||||
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "inboxes", "portals"
|
||||
add_foreign_key "user_sessions", "users"
|
||||
add_foreign_key "whatsapp_calls", "messages"
|
||||
create_trigger("accounts_after_insert_row_tr", :generated => true, :compatibility => 1).
|
||||
on("accounts").
|
||||
after(:insert).
|
||||
|
||||
Reference in New Issue
Block a user