From 4f30128feb0715f05c103fec20aa6cba61e60984 Mon Sep 17 00:00:00 2001
From: rtkay123 <dev@kanjala.com>
Date: Tue, 10 Feb 2026 23:38:02 +0200
Subject: feat: db create account

---
 migrations/20260210193544_profile.sql | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 migrations/20260210193544_profile.sql

(limited to 'migrations/20260210193544_profile.sql')

diff --git a/migrations/20260210193544_profile.sql b/migrations/20260210193544_profile.sql
new file mode 100644
index 0000000..f47d034
--- /dev/null
+++ b/migrations/20260210193544_profile.sql
@@ -0,0 +1,26 @@
+create type actor_kind as enum (
+  'application',
+  'group',
+  'organization',
+  'person',
+  'service'
+);
+
+create table profile (
+  ap_id text primary key,
+  username varchar(15),
+  description varchar(255),
+  inbox text not null,
+  role actor_kind not null default 'person',
+  outbox text,
+  picture text,
+  public_key text not null,
+  private_key text,
+  created_at timestamptz not null default now(),
+  last_refreshed_at timestamptz not null default now()
+);
+
+create index user_inbox_idx on profile (inbox);
+create index user_outbox_idx on profile (outbox);
+create index user_role_idx on profile (role);
+create index user_username_idx on profile (username);
-- 
cgit v1.2.3

