Phase 3.1: Add remaining local files

This commit is contained in:
2026-02-05 16:04:20 +11:00
26 changed files with 1780 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
"""User model."""
<<<<<<< HEAD
from sqlalchemy import Boolean, Column, Integer, String, DateTime, Date
=======
from sqlalchemy import Boolean, Column, Integer, String, DateTime
>>>>>>> 65c71b3d67d462fe9ecc01a1c2aa17e54b626fe2
from sqlalchemy.orm import relationship
from datetime import datetime
from app.core.database import Base
@@ -15,8 +19,11 @@ class User(Base):
hashed_password = Column(String(200), nullable=False)
discord_id = Column(String(100)) # For Discord integration
profile_picture = Column(String(500)) # URL to profile picture
<<<<<<< HEAD
avatar_url = Column(String(500)) # URL to uploaded avatar
birthday = Column(Date, nullable=True) # Birthday for chore logic
=======
>>>>>>> 65c71b3d67d462fe9ecc01a1c2aa17e54b626fe2
is_active = Column(Boolean, default=True)
is_admin = Column(Boolean, default=False)
created_at = Column(DateTime, default=datetime.utcnow)
@@ -24,5 +31,8 @@ class User(Base):
# Relationships (lazy loaded to avoid circular imports)
chores = relationship("Chore", back_populates="assigned_user", lazy="select")
<<<<<<< HEAD
chore_assignments = relationship("ChoreAssignment", back_populates="user", lazy="select")
chore_completion_logs = relationship("ChoreCompletionLog", foreign_keys="[ChoreCompletionLog.user_id]", back_populates="user", lazy="select")
=======
>>>>>>> 65c71b3d67d462fe9ecc01a1c2aa17e54b626fe2