Open
Description
Implement User Model
Description
Create a User model with secure authentication capabilities including email, password with hashing, and timestamp tracking.
User Model Requirements
- Create User model with the following fields:
- Email (unique identifier)
- Password
- Created at timestamp
- Updated at timestamp
- Add email validation
- Ensure timestamps are automatically managed
Acceptance Criteria
- User model exists with all required fields
- Email validation is in place
- Timestamps are automatically set and updated
Implement Trip Model
Description
Create a Trip model to store travel information with user relationships and location data.
Trip Model Requirements
- Create Trip model with the following fields:
- Destination
- Start date
- End date
- Coordinates (latitude/longitude)
- Itinerary
- User relationship (foreign key)
- Implement proper relationship with User model
Acceptance Criteria
- Trip model exists with all required fields
- User relationship is properly established
- Date fields handle timezones correctly
- Coordinates store location data accurately
- Itinerary field supports travel plan data