# events[].sql_query.sql
SELECT "user_auth_tokens".* FROM "user_auth_tokens" WHERE ((auth_token = 'VXfF2j8fAasECe7T1nxUpwGBOfk=' OR
                          prev_auth_token = 'VXfF2j8fAasECe7T1nxUpwGBOfk=') AND rotated_at > '2020-07-20 16:17:30.711293') 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:17:30.718432' WHERE "user_auth_tokens"."id" = 159 AND "user_auth_tokens"."auth_token" = 'VXfF2j8fAasECe7T1nxUpwGBOfk='

# 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" = 110 LIMIT 1

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

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

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

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

# events[].sql_query.normalized_sql
INSERT INTO "api_keys" ("created_by_id", "created_at", "updated_at", "description", "key_hash", "truncated_key") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

# events[].sql_query.normalized_sql
INSERT INTO "user_histories" ("action", "acting_user_id", "created_at", "updated_at", "subject", "new_value") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"

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

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

# events[].sql_query.sql
SELECT "user_histories".* FROM "user_histories" ORDER BY "user_histories"."id" DESC LIMIT 1

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

# events[].sql_query.sql
SELECT "user_histories".* FROM "user_histories" ORDER BY "user_histories"."id" DESC LIMIT 1

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

# metadata.name
Admin::ApiController as an admin #create can create a master key