Tidy up homepage and navigation

This commit is contained in:
Dan Milne
2025-11-09 20:58:13 +11:00
parent c9e2992fe0
commit 1f4428348d
56 changed files with 2822 additions and 955 deletions

View File

@@ -10,10 +10,19 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 7) do
ActiveRecord::Schema[8.1].define(version: 2025_11_08_042936) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
create_table "dsns", force: :cascade do |t|
t.datetime "created_at", null: false
t.boolean "enabled", default: true, null: false
t.string "key"
t.string "name"
t.datetime "updated_at", null: false
t.index ["key"], name: "index_dsns_on_key", unique: true
end
create_table "events", force: :cascade do |t|
t.string "agent_name"
t.string "agent_version"
@@ -25,7 +34,6 @@ ActiveRecord::Schema[8.1].define(version: 7) do
t.string "event_id", null: false
t.inet "ip_address"
t.json "payload"
t.bigint "project_id", null: false
t.bigint "request_host_id"
t.integer "request_method", default: 0
t.string "request_path"
@@ -42,10 +50,6 @@ ActiveRecord::Schema[8.1].define(version: 7) do
t.integer "waf_action", default: 0, null: false
t.index ["event_id"], name: "index_events_on_event_id", unique: true
t.index ["ip_address"], name: "index_events_on_ip_address"
t.index ["project_id", "ip_address"], name: "idx_events_project_ip"
t.index ["project_id", "timestamp"], name: "idx_events_project_time"
t.index ["project_id", "waf_action"], name: "idx_events_project_action"
t.index ["project_id"], name: "index_events_on_project_id"
t.index ["request_host_id", "request_method", "request_segment_ids"], name: "idx_events_host_method_path"
t.index ["request_host_id"], name: "index_events_on_request_host_id"
t.index ["request_segment_ids"], name: "index_events_on_request_segment_ids"
@@ -62,6 +66,7 @@ ActiveRecord::Schema[8.1].define(version: 7) do
t.string "country"
t.datetime "created_at", null: false
t.text "creation_reason"
t.integer "events_count"
t.boolean "is_datacenter", default: false
t.boolean "is_proxy", default: false
t.boolean "is_vpn", default: false
@@ -91,23 +96,6 @@ ActiveRecord::Schema[8.1].define(version: 7) do
t.index ["segment"], name: "index_path_segments_on_segment", unique: true
end
create_table "projects", force: :cascade do |t|
t.integer "blocked_ip_count", default: 0, null: false
t.datetime "created_at", null: false
t.text "custom_rules", default: "{}", null: false
t.boolean "enabled", default: true, null: false
t.string "name", null: false
t.string "public_key", null: false
t.integer "rate_limit_threshold", default: 100, null: false
t.text "settings", default: "{}", null: false
t.string "slug", null: false
t.datetime "updated_at", null: false
t.index ["enabled"], name: "index_projects_on_enabled"
t.index ["name"], name: "index_projects_on_name"
t.index ["public_key"], name: "index_projects_on_public_key", unique: true
t.index ["slug"], name: "index_projects_on_slug", unique: true
end
create_table "request_actions", force: :cascade do |t|
t.string "action", null: false
t.datetime "created_at", null: false
@@ -182,7 +170,6 @@ ActiveRecord::Schema[8.1].define(version: 7) do
t.index ["email_address"], name: "index_users_on_email_address", unique: true
end
add_foreign_key "events", "projects"
add_foreign_key "events", "request_hosts"
add_foreign_key "network_ranges", "users"
add_foreign_key "rules", "network_ranges"