This repository contains Django ORM model definitions for a comprehensive health, fitness, and corporate wellness platform. The platform supports user accounts, workouts, scheduling, gamification, facilities, billing, challenges, and more.
This project includes the following models and their purposes:
- FosUserUser: Central user model with extended fields for social profiles, contact, business info, and settings.
- UserEmergency: Stores emergency contact information.
- UserDocuments: Manages uploaded and verified documents.
- UserCompany: Links users with companies and roles.
- UserSaveCardTracking: Tracks saved payment card metadata.
- UserProfileCategory: Connects users with specific profile categories.
- Workout, WorkoutLevel, WorkoutType: Define fitness workouts and levels.
- Exercise: Describes each exercise including media and metadata.
- MemberWorkout: Tracks user workout history and favorites.
- UserHealthAnalytic: Monitors health metrics like steps, calories, and heart rate.
- MemberMeasurement: Captures body measurements (waist, weight, chest, etc.).
- FacilityActivity / Amenity / Gallery / CheckinHistory: Manages facility features, images, check-ins.
- FacilityPackage: Maps packages available for facilities.
- MemberScheduleActivity: Tracks class schedules and check-ins.
- ManualCheckinHistory: Logs manual member check-ins.
- MemberPackage: Represents user subscriptions and promotions.
- MemberBilling: Logs payments and billing history.
- UserSaveCardTracking: Stores card information.
- UserAwardPoint: Tracks points rewarded to users.
- CorporateKey / Department / Domains: Corporate access, departments, and domain settings.
- ProfileKey: Unique keys and settings per corporate profile.
- Challenge / GamificationChallenge: Defines individual or group challenges.
- GamificationPoint / Type / Record: Points and progress tracking for gamification.
- UserGamificationChallenge: Participation tracking in challenges.
- Groups: User groups and communities.
- GroupInvites: Invitation system for groups.
- UserGroups: Tracks user status in groups.
- Most models reference
FosUserUser
viaForeignKey
for tracking ownership and audit. - Many-to-many relationships are used for challenges and groups to track participation.
- Audit fields like
created_date
,updated_date
,modifiedby
, andis_deleted
are included across models.