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:
parent
419f37b108
commit
4972aa37c4
14 changed files with 207 additions and 3 deletions
|
@ -0,0 +1,3 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE federated_users;
|
||||
DROP TABLE instances;
|
10
migrations/2025-06-03-123458_federated_instances/up.sql
Normal file
10
migrations/2025-06-03-123458_federated_instances/up.sql
Normal 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)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue