aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20260202155213_follow.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20260202155213_follow.sql')
-rw-r--r--migrations/20260202155213_follow.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/migrations/20260202155213_follow.sql b/migrations/20260202155213_follow.sql
new file mode 100644
index 0000000..384287f
--- /dev/null
+++ b/migrations/20260202155213_follow.sql
@@ -0,0 +1,6 @@
+create table follow (
+ follower_ap_id text not null references profile(ap_id) on delete cascade,
+ followee_ap_id text not null references profile(ap_id) on delete cascade,
+ followed_at timestamptz not null default now(),
+ primary key (follower_ap_id, followee_ap_id)
+)