feat: Audit log APIs (#6434)
- Adds the appropriate APIs for Audit Logs. ref: #6015
This commit is contained in:
22
db/schema.rb
22
db/schema.rb
@@ -153,6 +153,28 @@ ActiveRecord::Schema.define(version: 2023_02_24_124632) do
|
||||
t.index ["message_id"], name: "index_attachments_on_message_id"
|
||||
end
|
||||
|
||||
create_table 'audits', force: :cascade do |t|
|
||||
t.bigint 'auditable_id'
|
||||
t.string 'auditable_type'
|
||||
t.bigint 'associated_id'
|
||||
t.string 'associated_type'
|
||||
t.bigint 'user_id'
|
||||
t.string 'user_type'
|
||||
t.string 'username'
|
||||
t.string 'action'
|
||||
t.jsonb 'audited_changes'
|
||||
t.integer 'version', default: 0
|
||||
t.string 'comment'
|
||||
t.string 'remote_address'
|
||||
t.string 'request_uuid'
|
||||
t.datetime 'created_at'
|
||||
t.index %w[associated_type associated_id], name: 'associated_index'
|
||||
t.index %w[auditable_type auditable_id version], name: 'auditable_index'
|
||||
t.index ['created_at'], name: 'index_audits_on_created_at'
|
||||
t.index ['request_uuid'], name: 'index_audits_on_request_uuid'
|
||||
t.index %w[user_id user_type], name: 'user_index'
|
||||
end
|
||||
|
||||
create_table "automation_rules", force: :cascade do |t|
|
||||
t.bigint "account_id", null: false
|
||||
t.string "name", null: false
|
||||
|
||||
Reference in New Issue
Block a user