v0.2 - 19 features: comparator, allergies, gamification, shopping list, achievements, stats, profile, share, bottom nav
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import Column, Integer, String, Boolean, DateTime
|
||||
from sqlalchemy import Column, Integer, String, Boolean, DateTime, Text
|
||||
from datetime import datetime, timezone
|
||||
from app.database import Base
|
||||
|
||||
@@ -9,4 +9,6 @@ class User(Base):
|
||||
name = Column(String, nullable=False)
|
||||
password_hash = Column(String, nullable=False)
|
||||
is_premium = Column(Boolean, default=False)
|
||||
allergies = Column(Text, default="[]") # JSON array of allergies
|
||||
health_profile = Column(String, default="normal") # normal, crianca, gestante, diabetico, hipertenso
|
||||
created_at = Column(DateTime(timezone=True), default=lambda: datetime.now(timezone.utc))
|
||||
|
||||
Reference in New Issue
Block a user