feat: profile bio

This commit is contained in:
Krispire Admin
2026-08-07 23:47:03 +05:30
parent afcdd7ef19
commit 623935df22
8 changed files with 55 additions and 9 deletions
+2
View File
@@ -0,0 +1,2 @@
ALTER TABLE users
DROP COLUMN IF EXISTS bio;
+13
View File
@@ -0,0 +1,13 @@
-- Profile bio — a short self-introduction shown on the profile header.
--
-- Plain text (never HTML): `@handle` mentions are stored verbatim and linkified
-- at render time by the frontend, so nothing user-supplied is ever trusted as
-- markup. NULL means "no bio set", which is distinct from an empty string —
-- the update path clears to NULL rather than storing ''.
--
-- The 200-character cap is enforced in the service layer (by rune count, so a
-- devotee writing in Devanāgarī gets the same 200 characters a Latin-script
-- writer does). No CHECK constraint here: the column stays permissive so a
-- future cap change doesn't need a migration on a large table.
ALTER TABLE users
ADD COLUMN IF NOT EXISTS bio TEXT;