🎉 Initial commit
This commit is contained in:
0
migrations/.diesel_lock
Normal file
0
migrations/.diesel_lock
Normal file
0
migrations/.keep
Normal file
0
migrations/.keep
Normal file
@@ -0,0 +1,4 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
|
||||
DROP TABLE "trackers";
|
||||
DROP TABLE "hits";
|
||||
16
migrations/2025-10-05-145847-0000_create_trackers/up.sql
Normal file
16
migrations/2025-10-05-145847-0000_create_trackers/up.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE "trackers"
|
||||
(
|
||||
"id" UUID PRIMARY KEY NOT NULL UNIQUE,
|
||||
"created_at" TIMESTAMP NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE "hits"
|
||||
(
|
||||
"id" UUID PRIMARY KEY NOT NULL UNIQUE,
|
||||
"tracker_id" UUID REFERENCES trackers (id) NOT NULL,
|
||||
"ip" TEXT NOT NULL,
|
||||
"agent" TEXT,
|
||||
"language" TEXT,
|
||||
"created_at" TIMESTAMP NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user