ip geolocation + ping analysis

This commit is contained in:
NextJS
2026-06-02 10:24:58 +00:00
parent dc8377177a
commit 4ed4a10eae
21 changed files with 1141 additions and 168 deletions
+11
View File
@@ -0,0 +1,11 @@
create table public.ping_reports (
id bigint generated by default as identity not null,
created_at timestamp with time zone not null default now(),
user_id bigint not null,
match_id bigint not null,
ip_address text null,
ping integer not null,
constraint ping_reports_pkey primary key (id),
constraint ping_reports_user_id_fkey foreign key (user_id) references users (id),
constraint ping_reports_match_id_fkey foreign key (match_id) references matches (id)
) TABLESPACE pg_default;
+2
View File
@@ -2,7 +2,9 @@ create table public.users (
id bigint generated by default as identity not null,
created_at timestamp with time zone not null default now(),
username text null,
email text null,
password text null,
ip_address text null,
cc real null default '0'::real,
rc real null default '0'::real,
last_logged_at timestamp with time zone null default now(),