diff --git a/Backend/app/db/seed.py b/Backend/app/db/seed.py index 9b8936a..23a31e6 100644 --- a/Backend/app/db/seed.py +++ b/Backend/app/db/seed.py @@ -9,7 +9,6 @@ async def seed_db(): "id": "aabb1fd8-ba93-4e8c-976e-35e5c40b809c", "username": "creator1", "email": "creator1@example.com", - "password": "password123", "role": "creator", "bio": "Lifestyle and travel content creator", }, @@ -17,7 +16,6 @@ async def seed_db(): "id": "6dbfcdd5-795f-49c1-8f7a-a5538b8c6f6f", "username": "brand1", "email": "brand1@example.com", - "password": "password123", "role": "brand", "bio": "Sustainable fashion brand looking for influencers", }, @@ -40,9 +38,6 @@ async def seed_db(): id=user_data["id"], username=user_data["username"], email=user_data["email"], - password_hash=user_data[ - "password" - ], # Using plain password directly role=user_data["role"], bio=user_data["bio"], ) diff --git a/Backend/app/models/models.py b/Backend/app/models/models.py index 6a232a2..4063127 100644 --- a/Backend/app/models/models.py +++ b/Backend/app/models/models.py @@ -27,7 +27,6 @@ class User(Base): id = Column(String, primary_key=True, default=generate_uuid) username = Column(String, unique=True, nullable=False) email = Column(String, unique=True, nullable=False) - password_hash = Column(Text, nullable=False) role = Column(String, nullable=False) # 'creator' or 'brand' profile_image = Column(Text, nullable=True) bio = Column(Text, nullable=True) diff --git a/Backend/app/routes/post.py b/Backend/app/routes/post.py index ce669d2..66b5bda 100644 --- a/Backend/app/routes/post.py +++ b/Backend/app/routes/post.py @@ -44,7 +44,6 @@ async def create_user(user: UserCreate): "id": user_id, "username": user.username, "email": user.email, - "password_hash": user.password_hash, "role": user.role, "profile_image": user.profile_image, "bio": user.bio, diff --git a/Backend/app/schemas/schema.py b/Backend/app/schemas/schema.py index 3bd1e8c..2143edb 100644 --- a/Backend/app/schemas/schema.py +++ b/Backend/app/schemas/schema.py @@ -5,7 +5,7 @@ class UserCreate(BaseModel): username: str email: str - password_hash: str + # password_hash: str # Removed: managed by Supabase Auth role: str profile_image: Optional[str] = None bio: Optional[str] = None