feat(profiles): add private notes field per profile, visible only to owner

This commit is contained in:
earthjasonlin committed 2026-07-06 19:36:29 +08:00
1 parent a19f6ccac9
commit 2989837b7d
3 files changed
+19 -1

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
from datetime import datetime, timezone
from sqlalchemy import Boolean, Column, DateTime, ForeignKey, Integer, String
from sqlalchemy import Boolean, Column, DateTime, ForeignKey, Integer, String, Text
from sqlalchemy.orm import relationship, validates
from app.database import Base
@@ -61,6 +61,7 @@ class Profile(Base):
nickname = Column(String(64), nullable=False)
showcase_enabled = Column(default=False, nullable=False)
showcase_visible = Column(String(16), nullable=False, default="both")
notes = Column(Text, nullable=False, default="")
created_at = Column(DateTime, default=_utcnow)
user = relationship("User", back_populates="profiles")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.