|
Last change
on this file since 4f5d8fd was 4f5d8fd, checked in by stefansaveski <stefansaveski19@…>, 11 months ago |
|
Add user-related models, services, and JWT validation
Added ContactInfo, EnrollmentInfo, and HighSchool models with relationships to the User entity. Updated AppDbContext and migrations to reflect these changes. Introduced UserService and IUserService for handling user data retrieval via JWT validation. Added UserController with a getUser endpoint to fetch user data based on JWT.
Enhanced IUserRepository and UserRepository with a method to fetch users by ID. Registered UserService in the DI container. Defined enums for EnrollmentInfo and HighSchool. Removed outdated migration files and performed general refactoring and cleanup.
|
-
Property mode
set to
100644
|
|
File size:
380 bytes
|
| Line | |
|---|
| 1 | using System.ComponentModel.DataAnnotations.Schema;
|
|---|
| 2 |
|
|---|
| 3 | namespace iknow_api.Models
|
|---|
| 4 | {
|
|---|
| 5 | public enum type
|
|---|
| 6 | {
|
|---|
| 7 | strucen, gimnazija
|
|---|
| 8 | }
|
|---|
| 9 | public class HighSchool
|
|---|
| 10 | {
|
|---|
| 11 | public int Id { get; set; }
|
|---|
| 12 | public float GPA { get; set; }
|
|---|
| 13 | public type tip { get; set; }
|
|---|
| 14 |
|
|---|
| 15 | public int UserId { get; set; }
|
|---|
| 16 | public User User { get; set; }
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.