Ignore:
Timestamp:
10/27/25 21:50:02 (11 months ago)
Author:
stefansaveski <stefansaveski19@…>
Branches:
master
Children:
ff202cf
Parents:
cab02ad
Message:

Add user-related entities and enforce one-to-one mappings

Enhanced the User model with new entities: ContactInfo,
EnrollmentInfo, and HighSchool, establishing one-to-one
relationships. Updated UserDTO with additional fields and
introduced enums for type, quota, and major. Modified
UserRepository and AuthService to handle new entities.

Updated database schema with unique constraints on UserId
for related tables and added EF Core migration
20251027191028_dbRelations. Adjusted JSON serialization
to prevent circular references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Controllers/UserController.cs

    rcab02ad rb38c39c  
    2626                var userData = await _userService.GetUserData(token);
    2727                if (userData == null) return Ok(new { info = "can't get info" });
    28                 return Ok(new { Token = userData });
     28                return Ok(new { User = userData });
    2929            }
    3030            return null;
Note: See TracChangeset for help on using the changeset viewer.