From 1150330188021b3a8a2f55de09bad725478422e8 Mon Sep 17 00:00:00 2001 From: Saahi30 Date: Thu, 5 Jun 2025 05:35:09 +0530 Subject: [PATCH 1/4] refactor: remove password_hash from users model, schema, and route (managed by Supabase Auth) --- Backend/app/models/models.py | 1 - Backend/app/routes/post.py | 1 - Backend/app/schemas/schema.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) 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 From cc13afb1bea193977e7ed8e4e24abef7db926d48 Mon Sep 17 00:00:00 2001 From: Saahi30 Date: Thu, 5 Jun 2025 06:05:39 +0530 Subject: [PATCH 2/4] fix: remove password and password_hash logic from seed script (Supabase Auth handles authentication) --- Backend/app/db/seed.py | 5 ----- 1 file changed, 5 deletions(-) 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"], ) From 8308f57824822a112fc3b75d3d6a0ccac9646864 Mon Sep 17 00:00:00 2001 From: Saahi30 Date: Fri, 6 Jun 2025 01:36:19 +0530 Subject: [PATCH 3/4] Added the landing page to be live until project deployment --- LandingPage | 1 + 1 file changed, 1 insertion(+) create mode 160000 LandingPage diff --git a/LandingPage b/LandingPage new file mode 160000 index 0000000..72dffba --- /dev/null +++ b/LandingPage @@ -0,0 +1 @@ +Subproject commit 72dffbae02c41acf6c3f854380045b4d2a6f9f63 From 88ed9327ef0c34df3d6c3d4127d181d180807aa5 Mon Sep 17 00:00:00 2001 From: Saahi30 Date: Fri, 6 Jun 2025 01:45:14 +0530 Subject: [PATCH 4/4] Initial works: just cloned the folder and files inside the main repo --- LandingPage | 1 - 1 file changed, 1 deletion(-) delete mode 160000 LandingPage diff --git a/LandingPage b/LandingPage deleted file mode 160000 index 72dffba..0000000 --- a/LandingPage +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 72dffbae02c41acf6c3f854380045b4d2a6f9f63