feat: initial stuff for federation

this might all change completely but this is at least somewhat whats needed for federation
This commit is contained in:
Radical 2025-06-04 20:11:24 +02:00
parent 419f37b108
commit 4972aa37c4
14 changed files with 207 additions and 3 deletions

View file

@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE federated_users;
DROP TABLE instances;

View file

@ -0,0 +1,10 @@
-- Your SQL goes here
CREATE TABLE instances (
instance_url VARCHAR(8000) PRIMARY KEY NOT NULL,
public_key VARCHAR(500) UNIQUE NOT NULL
);
CREATE TABLE federated_users (
uuid UUID PRIMARY KEY NOT NULL,
instance_url VARCHAR(8000) NOT NULL REFERENCES instances(instance_url)
);