Commit Graph

20 Commits

Author SHA1 Message Date
Yoga Pangestu
5772a3948d Remove 'code' field from BusinessType model, schemas, factory, and service; update related tests 2026-07-24 12:09:06 +07:00
Yoga Pangestu
f1c3f28f95 Add toggle status functionality for business types and update listing filter 2026-07-24 11:47:45 +07:00
Yoga Pangestu
104a58e6e7 Add password reset functionality with email notifications
- Implemented endpoints for forgot password and reset password
- Added PasswordResetToken model and relationships
- Integrated email service using Resend for sending reset links
- Updated configuration for email and frontend URL
- Enhanced user model to include password reset tokens
- Added necessary schemas for password reset requests
- Updated requirements to include Resend SDK
- Created comprehensive documentation for the new feature
2026-07-22 20:22:58 +07:00
Yoga Pangestu
579f8a3f21 Add API documentation for Google authentication endpoint 2026-07-22 16:50:20 +07:00
Yoga Pangestu
08cc2bebbe Add Google login functionality and update requirements
- Implement Google login endpoint with credential verification
- Add GoogleLoginRequest schema for handling login requests
- Update Settings class to include GOOGLE_CLIENT_ID
- Add google-auth package to requirements
2026-07-22 16:50:11 +07:00
Yoga Pangestu
4fa2db2a3c Update user status default to INACTIVE, add email verification check in login, and set email_verified_at for admin user in seeder 2026-07-19 23:57:43 +07:00
Yoga Pangestu
4458d352a2 Add authentication endpoints and JWT handling for user login 2026-07-19 23:51:50 +07:00
Yoga Pangestu
7bbe4e7295 Implement subscription, tenant, and user services with CRUD operations and associated tests
- Added subscription_service.py for managing subscriptions with functions to create, read, update, and delete subscriptions.
- Added tenant_service.py for managing tenants with functions to create, read, update, delete tenants, and assign users to tenants.
- Added user_service.py for managing users with functions to create, read, update, and delete users.
- Created tests for business types, plans, subscriptions, tenants, and users, ensuring proper functionality and error handling.
- Implemented pagination in user listing and included user profiles in responses.
- Established fixtures for database setup and teardown in tests.
2026-07-17 23:36:31 +07:00
Yoga Pangestu
717ec1e061 Refactor database seeder to improve error handling and maintainability 2026-07-17 23:22:09 +07:00
Yoga Pangestu
172f035d77 Add password hashing and verification functions using bcrypt 2026-07-17 23:15:11 +07:00
Yoga Pangestu
ce71aa3ad8 Add factories and seeders for business types, plans, subscriptions, tenants, and users 2026-07-17 23:15:05 +07:00
Yoga Pangestu
affe5187fc Add response utility functions and HTTP exception handler to improve API responses 2026-07-17 22:11:25 +07:00
Yoga Pangestu
74253f0d4a Add REST API response format documentation based on best practices 2026-07-17 22:10:48 +07:00
Yoga Pangestu
3393170fe5 Fix database URL construction to properly encode the password 2026-07-17 22:01:10 +07:00
Yoga Pangestu
8553971981 Add models and schemas for users, tenants, subscriptions, plans, and business types 2026-07-17 21:24:55 +07:00
Yoga Pangestu
e805f86563 Remove compiled Python bytecode file from repository 2026-07-17 21:10:18 +07:00
Yoga Pangestu
57fb0c193e Add configuration and database setup for Profitra API 2026-07-17 21:06:13 +07:00
Yoga Pangestu
0b6cb085e3 Enhance DBML schema by adding relationships and constraints for users, tenants, and subscriptions 2026-07-14 15:54:26 +07:00
Yoga Pangestu
1c09246d29 Add DBML schema for users, tenants, subscriptions, and related entities 2026-07-14 15:43:57 +07:00
Yoga Pangestu
ae351f67fa initial commit 2026-07-12 23:48:51 +07:00