feat: Consider business hours while generating the reports (#4330)

* feat: Consider business hours while generating the reports
This commit is contained in:
Aswin Dev P.S
2022-04-08 12:48:18 +05:30
committed by GitHub
parent 57359be37e
commit d5536d65f7
19 changed files with 241 additions and 48 deletions

View File

@@ -0,0 +1,9 @@
class AddValueInBusinessHoursToReportingEvent < ActiveRecord::Migration[6.1]
def change
change_table :reporting_events, bulk: true do |t|
t.float :value_in_business_hours, default: nil
t.datetime :event_start_time, default: nil
t.datetime :event_end_time, default: nil
end
end
end

View File

@@ -657,6 +657,9 @@ ActiveRecord::Schema.define(version: 2022_04_05_092033) do
t.integer "conversation_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.float "value_in_business_hours"
t.datetime "event_start_time"
t.datetime "event_end_time"
t.index ["account_id"], name: "index_reporting_events_on_account_id"
t.index ["created_at"], name: "index_reporting_events_on_created_at"
t.index ["inbox_id"], name: "index_reporting_events_on_inbox_id"