Initial commit
This commit is contained in:
15
application/migrations/20230824180522_conn_logs_table.up.sql
Normal file
15
application/migrations/20230824180522_conn_logs_table.up.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE "conn_log"
|
||||
(
|
||||
"user_id" BIGINT,
|
||||
"ip_addr" VARCHAR(15),
|
||||
"ts" timestamp
|
||||
);
|
||||
--bun:split
|
||||
|
||||
CREATE INDEX "conn_log_user_ip_idx" ON "conn_log" ("ip_addr", "user_id");
|
||||
--bun:split
|
||||
|
||||
CREATE INDEX "conn_log_ip_idx" ON "conn_log" ("ip_addr");
|
||||
--bun:split
|
||||
|
||||
CREATE INDEX "conn_log_ts_idx" ON "conn_log" ("ts");
|
||||
Reference in New Issue
Block a user