# events[].sql_query.sql
SELECT "screened_ip_addresses".* FROM "screened_ip_addresses" WHERE ('99.232.23.191' <<= ip_address) LIMIT 1

# events[].sql_query.normalized_sql
SELECT "screened_ip_addresses".* FROM "screened_ip_addresses" WHERE ($1 <<= ip_address) LIMIT $2

# events[].sql_query.sql
SELECT "screened_emails".* FROM "screened_emails" ORDER BY "screened_emails"."created_at" DESC LIMIT 100

# events[].sql_query.normalized_sql
SELECT "screened_emails".* FROM "screened_emails" ORDER BY "screened_emails"."created_at" DESC LIMIT $1

# events[].sql_query.sql
SELECT 1 AS one FROM "user_emails" WHERE (lower(email) = 'bruce365@wayne.com') LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "user_emails" WHERE (lower(email) = $2) LIMIT $3

# events[].sql_query.normalized_sql
INSERT INTO "users" ("username", "created_at", "updated_at", "name", "password_hash", "salt", "active", "username_lower", "trust_level", "ip_address") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"

# events[].sql_query.sql
SELECT "screened_emails".* FROM "screened_emails" ORDER BY "screened_emails"."created_at" DESC LIMIT 100

# events[].sql_query.normalized_sql
SELECT "screened_emails".* FROM "screened_emails" ORDER BY "screened_emails"."created_at" DESC LIMIT $1

# events[].sql_query.sql
SELECT 1 AS one FROM "user_emails" WHERE "user_emails"."primary" = TRUE AND "user_emails"."user_id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "user_emails" WHERE "user_emails"."primary" = $2 AND "user_emails"."user_id" = $3 LIMIT $4

# events[].sql_query.sql
SELECT 1 AS one FROM "user_emails" WHERE (lower(email) = 'bruce365@wayne.com') LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "user_emails" WHERE (lower(email) = $2) LIMIT $3

# events[].sql_query.normalized_sql
INSERT INTO "user_emails" ("user_id", "email", "primary", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "email_tokens" ("user_id", "email", "token", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"

# events[].sql_query.sql
UPDATE "email_tokens" SET "expired" = TRUE WHERE "email_tokens"."user_id" = 438 AND (id != 477)

# events[].sql_query.normalized_sql
UPDATE "email_tokens" SET "expired" = $1 WHERE "email_tokens"."user_id" = $2 AND (id != $3)

# events[].sql_query.normalized_sql
INSERT INTO "user_stats" ("user_id", "new_since") VALUES ($1, $2) RETURNING "user_id"

# events[].sql_query.sql
SELECT "users".* FROM "users" WHERE "users"."id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2

# events[].sql_query.sql
UPDATE "topic_users" SET notification_level = CASE WHEN total_msecs_viewed < 240000 THEN 1 ELSE 2 END WHERE "topic_users"."notifications_reason_id" IS NULL AND "topic_users"."user_id" = 438

# events[].sql_query.normalized_sql
UPDATE "topic_users" SET notification_level = CASE WHEN total_msecs_viewed < $1 THEN $2 ELSE $3 END WHERE "topic_users"."notifications_reason_id" IS NULL AND "topic_users"."user_id" = $4

# events[].sql_query.sql
SELECT "users".* FROM "users" WHERE "users"."id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2

# events[].sql_query.sql
INSERT INTO "user_profiles" ("user_id") VALUES (438) RETURNING "user_id"

# events[].sql_query.normalized_sql
INSERT INTO "user_profiles" ("user_id") VALUES ($1) RETURNING "user_id"

# events[].parameters[].value
{:user=>#<UserProfile user_id: 438, location: nil, website: nil, bio_raw: nil, bio_cooked: nil, dism

# events[].sql_query.sql
SELECT "tags"."id" FROM "tags" WHERE 1=0

# events[].sql_query.normalized_sql
SELECT "tags"."id" FROM "tags" WHERE $1=$2

# events[].sql_query.sql
SELECT "tags"."id" FROM "tags" WHERE 1=0

# events[].sql_query.normalized_sql
SELECT "tags"."id" FROM "tags" WHERE $1=$2

# events[].sql_query.sql
SELECT "tags"."id" FROM "tags" WHERE 1=0

# events[].sql_query.normalized_sql
SELECT "tags"."id" FROM "tags" WHERE $1=$2

# events[].sql_query.sql
SELECT "tags"."id" FROM "tags" WHERE 1=0

# events[].sql_query.normalized_sql
SELECT "tags"."id" FROM "tags" WHERE $1=$2

# events[].sql_query.sql
SELECT "user_avatars".* FROM "user_avatars" WHERE "user_avatars"."user_id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "user_avatars".* FROM "user_avatars" WHERE "user_avatars"."user_id" = $1 LIMIT $2

# events[].sql_query.normalized_sql
INSERT INTO "user_avatars" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"

# events[].sql_query.sql
SELECT 1 AS one FROM "web_hooks" INNER JOIN "web_hook_event_types_hooks" ON "web_hook_event_types_hooks"."web_hook_id" = "web_hooks"."id" INNER JOIN "web_hook_event_types" ON "web_hook_event_types"."id" = "web_hook_event_types_hooks"."web_hook_event_type_id" WHERE "web_hooks"."active" = TRUE AND (web_hooks.wildcard_web_hook = TRUE OR web_hook_event_types.name = 'user') LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "web_hooks" INNER JOIN "web_hook_event_types_hooks" ON "web_hook_event_types_hooks"."web_hook_id" = "web_hooks"."id" INNER JOIN "web_hook_event_types" ON "web_hook_event_types"."id" = "web_hook_event_types_hooks"."web_hook_event_type_id" WHERE "web_hooks"."active" = $2 AND (web_hooks.wildcard_web_hook = $3 OR web_hook_event_types.name = $4) LIMIT $5

# events[].sql_query.sql
SELECT COUNT(*) FROM (SELECT 1 AS one FROM "topics" WHERE ("topics"."deleted_at" IS NULL) LIMIT 16) subquery_for_count

# events[].sql_query.normalized_sql
SELECT COUNT(*) FROM (SELECT $1 AS one FROM "topics" WHERE ("topics"."deleted_at" IS NULL) LIMIT $2) subquery_for_count

# events[].sql_query.sql
SELECT "users"."id" FROM "users" INNER JOIN "user_auth_tokens" ON "user_auth_tokens"."user_id" = "users"."id" WHERE "users"."admin" = TRUE AND (users.id > 0) ORDER BY user_auth_tokens.created_at LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users"."id" FROM "users" INNER JOIN "user_auth_tokens" ON "user_auth_tokens"."user_id" = "users"."id" WHERE "users"."admin" = $1 AND (users.id > $2) ORDER BY user_auth_tokens.created_at LIMIT $3

# events[].sql_query.sql
SELECT categories.*, t.slug topic_slug FROM "categories" LEFT JOIN topics t on t.id = categories.topic_id WHERE (NOT categories.read_restricted) ORDER BY "categories"."position" ASC

# events[].sql_query.normalized_sql
SELECT categories.*, t.slug topic_slug FROM "categories" LEFT JOIN topics t on t.id = categories.topic_id WHERE (NOT categories.read_restricted) ORDER BY "categories"."position" ASC

# events[].return_value.value
[#<Category id: 1, name: "Uncategorized", color: "0088CC", topic_id: nil, topic_count: 0, created_at

# events[].return_value.value
Topics that don't need a category, or don't fit into any other existing category.

# events[].return_value.value
Topics that don't need a category, or don't fit into any other existing category.

# events[].return_value.value
Topics that don't need a category, or don't fit into any other existing category.

# events[].sql_query.sql
SELECT "user_fields".* FROM "user_fields" ORDER BY "user_fields"."position" ASC

# events[].sql_query.normalized_sql
SELECT "user_fields".* FROM "user_fields" ORDER BY "user_fields"."position" ASC

# events[].sql_query.sql
SELECT "users".* FROM "users" WHERE "users"."username_lower" = 'bruce395' LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users".* FROM "users" WHERE "users"."username_lower" = $1 LIMIT $2

# events[].sql_query.normalized_sql
INSERT INTO "user_auth_tokens" ("user_id", "auth_token", "prev_auth_token", "client_ip", "rotated_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "user_auth_token_logs" ("action", "user_auth_token_id", "user_id", "client_ip", "auth_token", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

# events[].sql_query.sql
DELETE FROM "user_auth_tokens" WHERE "user_auth_tokens"."id" IN (SELECT "user_auth_tokens"."id" FROM "user_auth_tokens" WHERE "user_auth_tokens"."user_id" = 438 AND (rotated_at > '2020-07-20 16:22:05.366936') ORDER BY rotated_at DESC OFFSET 60)

# events[].sql_query.normalized_sql
DELETE FROM "user_auth_tokens" WHERE "user_auth_tokens"."id" IN (SELECT "user_auth_tokens"."id" FROM "user_auth_tokens" WHERE "user_auth_tokens"."user_id" = $1 AND (rotated_at > $2) ORDER BY rotated_at DESC OFFSET $3)

# events[].sql_query.sql
SELECT 1 AS one FROM "web_hooks" INNER JOIN "web_hook_event_types_hooks" ON "web_hook_event_types_hooks"."web_hook_id" = "web_hooks"."id" INNER JOIN "web_hook_event_types" ON "web_hook_event_types"."id" = "web_hook_event_types_hooks"."web_hook_event_type_id" WHERE "web_hooks"."active" = TRUE AND (web_hooks.wildcard_web_hook = TRUE OR web_hook_event_types.name = 'user') LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "web_hooks" INNER JOIN "web_hook_event_types_hooks" ON "web_hook_event_types_hooks"."web_hook_id" = "web_hooks"."id" INNER JOIN "web_hook_event_types" ON "web_hook_event_types"."id" = "web_hook_event_types_hooks"."web_hook_event_type_id" WHERE "web_hooks"."active" = $2 AND (web_hooks.wildcard_web_hook = $3 OR web_hook_event_types.name = $4) LIMIT $5

# events[].return_value.value
You are being redirected.

# events[].sql_query.sql
SELECT "users".* FROM "users" WHERE "users"."id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2

# events[].sql_query.sql
SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = 'Nt1mU1clE/f4vZul3/i+oTFMEoc=' OR
                          prev_auth_token = 'Nt1mU1clE/f4vZul3/i+oTFMEoc=') AND rotated_at > '2020-07-20 16:22:05.394660') LIMIT 1

# events[].sql_query.normalized_sql
SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = $1 OR
                          prev_auth_token = $2) AND rotated_at > $3) LIMIT $4

# events[].sql_query.sql
UPDATE "user_auth_tokens" SET "auth_token_seen" = TRUE, "seen_at" = '2020-09-18 16:22:05.400584' WHERE "user_auth_tokens"."id" = 399 AND "user_auth_tokens"."auth_token" = 'Nt1mU1clE/f4vZul3/i+oTFMEoc='

# events[].sql_query.normalized_sql
UPDATE "user_auth_tokens" SET "auth_token_seen" = $1, "seen_at" = $2 WHERE "user_auth_tokens"."id" = $3 AND "user_auth_tokens"."auth_token" = $4

# events[].sql_query.normalized_sql
INSERT INTO "user_auth_token_logs" ("action", "user_auth_token_id", "user_id", "client_ip", "auth_token", "created_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

# events[].sql_query.sql
SELECT "users".* FROM "users" WHERE "users"."id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2

# events[].sql_query.sql
SELECT "user_visits".* FROM "user_visits" WHERE "user_visits"."user_id" = 438 AND "user_visits"."visited_at" = '2020-09-18' LIMIT 1

# events[].sql_query.normalized_sql
SELECT "user_visits".* FROM "user_visits" WHERE "user_visits"."user_id" = $1 AND "user_visits"."visited_at" = $2 LIMIT $3

# events[].sql_query.sql
UPDATE "user_stats" SET "days_visited" = 1 WHERE "user_stats"."user_id" = 438

# events[].sql_query.normalized_sql
UPDATE "user_stats" SET "days_visited" = $1 WHERE "user_stats"."user_id" = $2

# events[].sql_query.sql
INSERT INTO "user_visits" ("user_id", "visited_at") VALUES (438, '2020-09-18') RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "user_visits" ("user_id", "visited_at") VALUES ($1, $2) RETURNING "id"

# events[].sql_query.normalized_sql
UPDATE "users" SET "last_seen_at" = $1 WHERE "users"."id" = $2

# events[].sql_query.normalized_sql
UPDATE "users" SET "first_seen_at" = $1 WHERE "users"."id" = $2

# events[].sql_query.normalized_sql
UPDATE "users" SET "ip_address" = $1 WHERE "users"."id" = $2

# events[].sql_query.sql
SELECT 1 AS one FROM "permalinks" WHERE "permalinks"."url" = 'admin?api_key=asdiasiduga' LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "permalinks" WHERE "permalinks"."url" = $2 LIMIT $3

# events[].parameters[].value
  
ActionController::RoutingError (No route matches [GET] "/admin"):
  
config/initializers/100-quie

# events[].sql_query.sql
SELECT "user_options".* FROM "user_options" WHERE "user_options"."user_id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "user_options".* FROM "user_options" WHERE "user_options"."user_id" = $1 LIMIT $2

# events[].return_value.value
Discourse

# events[].sql_query.sql
SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = 'Nt1mU1clE/f4vZul3/i+oTFMEoc=' OR
                          prev_auth_token = 'Nt1mU1clE/f4vZul3/i+oTFMEoc=') AND rotated_at > '2020-07-20 16:22:06.144769') LIMIT 1

# events[].sql_query.normalized_sql
SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = $1 OR
                          prev_auth_token = $2) AND rotated_at > $3) LIMIT $4

# events[].sql_query.sql
SELECT "users".* FROM "users" WHERE "users"."id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2

# events[].sql_query.sql
SELECT 1 AS one FROM "permalinks" WHERE "permalinks"."url" = 'admin' LIMIT 1

# events[].sql_query.normalized_sql
SELECT $1 AS one FROM "permalinks" WHERE "permalinks"."url" = $2 LIMIT $3

# events[].parameters[].value
  
ActionController::RoutingError (No route matches [GET] "/admin"):
  
config/initializers/100-quie

# events[].sql_query.sql
SELECT "user_options".* FROM "user_options" WHERE "user_options"."user_id" = 438 LIMIT 1

# events[].sql_query.normalized_sql
SELECT "user_options".* FROM "user_options" WHERE "user_options"."user_id" = $1 LIMIT $2

# events[].return_value.value
Discourse

# metadata.name
Admin::AdminController #index should return the right response if user isn't a staff