Changeset 2d64b2e
- Timestamp:
- 12/09/25 14:54:20 (10 months ago)
- Branches:
- master
- Children:
- 33c69d6, 691f152
- Parents:
- 22439d3
- Location:
- iknow-api
- Files:
-
- 10 edited
- 2 moved
-
DTOs/UserDTO.cs (modified) (2 diffs)
-
Migrations/20251209133847_InitalCreate.Designer.cs (moved) (moved from iknow-api/Migrations/20251209115716_InitialCreate.Designer.cs ) (8 diffs)
-
Migrations/20251209133847_InitalCreate.cs (moved) (moved from iknow-api/Migrations/20251209115716_InitialCreate.cs ) (7 diffs)
-
Migrations/AppDbContextModelSnapshot.cs (modified) (7 diffs)
-
Models/ContactInfo.cs (modified) (1 diff)
-
Models/Documents.cs (modified) (1 diff)
-
Models/EnrollmentInfo.cs (modified) (3 diffs)
-
Models/HighSchool.cs (modified) (2 diffs)
-
Models/MajorSubjects.cs (modified) (1 diff)
-
Models/RefreshToken.cs (modified) (1 diff)
-
Models/User.cs (modified) (1 diff)
-
Services/Implementations/AuthService.cs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/DTOs/UserDTO.cs
r22439d3 r2d64b2e 19 19 { 20 20 public string Name { get; set; } = string.Empty; 21 public string? MiddleName { get; set; } 21 22 public string Surname { get; set; } = string.Empty; 22 23 public string EMBG { get; set; } = string.Empty; … … 36 37 public Quota quotaType { get; set; } 37 38 public int majorType { get; set; } 38 39 public string? gender { get; set; } 40 public string? nationality { get; set; } 41 public string? citizenship { get; set; } 42 public string? studyType { get; set; } 43 public string? studyStatus { get; set; } 39 44 } 40 45 -
iknow-api/Migrations/20251209133847_InitalCreate.Designer.cs
r22439d3 r2d64b2e 13 13 { 14 14 [DbContext(typeof(AppDbContext))] 15 [Migration("202512091 15716_InitialCreate")]16 partial class Init ialCreate15 [Migration("20251209133847_InitalCreate")] 16 partial class InitalCreate 17 17 { 18 18 /// <inheritdoc /> … … 34 34 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 35 35 36 b.Property< int>("UserId")37 .HasColumnType(" integer");38 39 b.Property<string>(" address")40 .HasColumnType("text"); 41 42 b.Property<string>(" city")43 .HasColumnType("text"); 44 45 b.Property<string>(" microsoftEmail")46 .HasColumnType("text"); 47 48 b.Property<string>(" municipality")49 .HasColumnType("text"); 50 51 b.Property< string>("phoneNumber")52 .HasColumnType(" text");36 b.Property<string>("Address") 37 .HasColumnType("text"); 38 39 b.Property<string>("City") 40 .HasColumnType("text"); 41 42 b.Property<string>("MicrosoftEmail") 43 .HasColumnType("text"); 44 45 b.Property<string>("Municipality") 46 .HasColumnType("text"); 47 48 b.Property<string>("PhoneNumber") 49 .HasColumnType("text"); 50 51 b.Property<int>("UserId") 52 .HasColumnType("integer"); 53 53 54 54 b.HasKey("Id"); … … 83 83 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 84 84 85 b.Property<string>(" body")86 .HasColumnType("text"); 87 88 b.Property<int>(" cost")89 .HasColumnType("integer"); 90 91 b.Property<string>(" name")85 b.Property<string>("Body") 86 .HasColumnType("text"); 87 88 b.Property<int>("Cost") 89 .HasColumnType("integer"); 90 91 b.Property<string>("Name") 92 92 .HasColumnType("text"); 93 93 … … 139 139 b.Property<int>("MajorId") 140 140 .HasColumnType("integer"); 141 142 b.Property<string>("StudyStatus") 143 .HasColumnType("text"); 144 145 b.Property<string>("StudyType") 146 .HasColumnType("text"); 141 147 142 148 b.Property<int>("UserId") … … 170 176 .HasColumnType("real"); 171 177 172 b.Property<int>("UserId") 173 .HasColumnType("integer"); 174 175 b.Property<int>("tip") 178 b.Property<int>("HighSchoolType") 179 .HasColumnType("integer"); 180 181 b.Property<string>("StudyLanguage") 182 .HasColumnType("text"); 183 184 b.Property<int>("UserId") 176 185 .HasColumnType("integer"); 177 186 … … 230 239 .HasColumnType("integer"); 231 240 232 b.Property<int>("A kreditacija")241 b.Property<int>("Accreditation") 233 242 .HasColumnType("integer"); 234 243 … … 382 391 .HasColumnType("timestamp with time zone"); 383 392 393 b.Property<string>("Citizenship") 394 .HasColumnType("text"); 395 384 396 b.Property<DateTime>("CreatedAt") 385 397 .HasColumnType("timestamp with time zone"); … … 391 403 .HasColumnType("text"); 392 404 405 b.Property<string>("Gender") 406 .HasColumnType("text"); 407 393 408 b.Property<string>("Index") 394 409 .HasColumnType("text"); 395 410 411 b.Property<string>("MiddleName") 412 .HasColumnType("text"); 413 396 414 b.Property<string>("Name") 415 .HasColumnType("text"); 416 417 b.Property<string>("Nationality") 397 418 .HasColumnType("text"); 398 419 -
iknow-api/Migrations/20251209133847_InitalCreate.cs
r22439d3 r2d64b2e 10 10 { 11 11 /// <inheritdoc /> 12 public partial class Init ialCreate : Migration12 public partial class InitalCreate : Migration 13 13 { 14 14 /// <inheritdoc /> … … 21 21 Id = table.Column<int>(type: "integer", nullable: false) 22 22 .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), 23 name = table.Column<string>(type: "text", nullable: true),24 body = table.Column<string>(type: "text", nullable: true),25 cost = table.Column<int>(type: "integer", nullable: false)23 Name = table.Column<string>(type: "text", nullable: true), 24 Body = table.Column<string>(type: "text", nullable: true), 25 Cost = table.Column<int>(type: "integer", nullable: false) 26 26 }, 27 27 constraints: table => … … 71 71 Email = table.Column<string>(type: "text", nullable: true), 72 72 PasswordHash = table.Column<string>(type: "text", nullable: true), 73 MiddleName = table.Column<string>(type: "text", nullable: true), 74 Gender = table.Column<string>(type: "text", nullable: true), 75 Nationality = table.Column<string>(type: "text", nullable: true), 76 Citizenship = table.Column<string>(type: "text", nullable: true), 73 77 Bday = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), 74 78 CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false), … … 111 115 SubjectId = table.Column<int>(type: "integer", nullable: false), 112 116 MandatorySemester = table.Column<int>(type: "integer", nullable: false), 113 A kreditacija= table.Column<int>(type: "integer", nullable: false)117 Accreditation = table.Column<int>(type: "integer", nullable: false) 114 118 }, 115 119 constraints: table => … … 136 140 Id = table.Column<int>(type: "integer", nullable: false) 137 141 .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), 138 city = table.Column<string>(type: "text", nullable: true),139 address = table.Column<string>(type: "text", nullable: true),140 municipality = table.Column<string>(type: "text", nullable: true),141 phoneNumber = table.Column<string>(type: "text", nullable: true),142 microsoftEmail = table.Column<string>(type: "text", nullable: true),142 City = table.Column<string>(type: "text", nullable: true), 143 Address = table.Column<string>(type: "text", nullable: true), 144 Municipality = table.Column<string>(type: "text", nullable: true), 145 PhoneNumber = table.Column<string>(type: "text", nullable: true), 146 MicrosoftEmail = table.Column<string>(type: "text", nullable: true), 143 147 UserId = table.Column<int>(type: "integer", nullable: false) 144 148 }, … … 192 196 quota = table.Column<int>(type: "integer", nullable: false), 193 197 MajorId = table.Column<int>(type: "integer", nullable: false), 194 UserId = table.Column<int>(type: "integer", nullable: false) 198 UserId = table.Column<int>(type: "integer", nullable: false), 199 StudyType = table.Column<string>(type: "text", nullable: true), 200 StudyStatus = table.Column<string>(type: "text", nullable: true) 195 201 }, 196 202 constraints: table => … … 218 224 .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), 219 225 GPA = table.Column<float>(type: "real", nullable: false), 220 tip = table.Column<int>(type: "integer", nullable: false), 221 UserId = table.Column<int>(type: "integer", nullable: false) 226 HighSchoolType = table.Column<int>(type: "integer", nullable: false), 227 UserId = table.Column<int>(type: "integer", nullable: false), 228 StudyLanguage = table.Column<string>(type: "text", nullable: true) 222 229 }, 223 230 constraints: table => -
iknow-api/Migrations/AppDbContextModelSnapshot.cs
r22439d3 r2d64b2e 31 31 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 32 32 33 b.Property< int>("UserId")34 .HasColumnType(" integer");35 36 b.Property<string>(" address")37 .HasColumnType("text"); 38 39 b.Property<string>(" city")40 .HasColumnType("text"); 41 42 b.Property<string>(" microsoftEmail")43 .HasColumnType("text"); 44 45 b.Property<string>(" municipality")46 .HasColumnType("text"); 47 48 b.Property< string>("phoneNumber")49 .HasColumnType(" text");33 b.Property<string>("Address") 34 .HasColumnType("text"); 35 36 b.Property<string>("City") 37 .HasColumnType("text"); 38 39 b.Property<string>("MicrosoftEmail") 40 .HasColumnType("text"); 41 42 b.Property<string>("Municipality") 43 .HasColumnType("text"); 44 45 b.Property<string>("PhoneNumber") 46 .HasColumnType("text"); 47 48 b.Property<int>("UserId") 49 .HasColumnType("integer"); 50 50 51 51 b.HasKey("Id"); … … 80 80 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 81 81 82 b.Property<string>(" body")83 .HasColumnType("text"); 84 85 b.Property<int>(" cost")86 .HasColumnType("integer"); 87 88 b.Property<string>(" name")82 b.Property<string>("Body") 83 .HasColumnType("text"); 84 85 b.Property<int>("Cost") 86 .HasColumnType("integer"); 87 88 b.Property<string>("Name") 89 89 .HasColumnType("text"); 90 90 … … 136 136 b.Property<int>("MajorId") 137 137 .HasColumnType("integer"); 138 139 b.Property<string>("StudyStatus") 140 .HasColumnType("text"); 141 142 b.Property<string>("StudyType") 143 .HasColumnType("text"); 138 144 139 145 b.Property<int>("UserId") … … 167 173 .HasColumnType("real"); 168 174 169 b.Property<int>("UserId") 170 .HasColumnType("integer"); 171 172 b.Property<int>("tip") 175 b.Property<int>("HighSchoolType") 176 .HasColumnType("integer"); 177 178 b.Property<string>("StudyLanguage") 179 .HasColumnType("text"); 180 181 b.Property<int>("UserId") 173 182 .HasColumnType("integer"); 174 183 … … 227 236 .HasColumnType("integer"); 228 237 229 b.Property<int>("A kreditacija")238 b.Property<int>("Accreditation") 230 239 .HasColumnType("integer"); 231 240 … … 379 388 .HasColumnType("timestamp with time zone"); 380 389 390 b.Property<string>("Citizenship") 391 .HasColumnType("text"); 392 381 393 b.Property<DateTime>("CreatedAt") 382 394 .HasColumnType("timestamp with time zone"); … … 388 400 .HasColumnType("text"); 389 401 402 b.Property<string>("Gender") 403 .HasColumnType("text"); 404 390 405 b.Property<string>("Index") 391 406 .HasColumnType("text"); 392 407 408 b.Property<string>("MiddleName") 409 .HasColumnType("text"); 410 393 411 b.Property<string>("Name") 412 .HasColumnType("text"); 413 414 b.Property<string>("Nationality") 394 415 .HasColumnType("text"); 395 416 -
iknow-api/Models/ContactInfo.cs
r22439d3 r2d64b2e 6 6 { 7 7 public int Id { get; set; } 8 public string? city { get; set; }9 public string? address { get; set; }10 public string? municipality { get; set; }11 public string? phoneNumber { get; set; }12 public string? microsoftEmail { get; set; }8 public string? City { get; set; } 9 public string? Address { get; set; } 10 public string? Municipality { get; set; } 11 public string? PhoneNumber { get; set; } 12 public string? MicrosoftEmail { get; set; } 13 13 14 14 public int UserId { get; set; } -
iknow-api/Models/Documents.cs
r22439d3 r2d64b2e 4 4 { 5 5 public int Id { get; set; } 6 public string? name { get; set; }7 public string? body { get; set; }8 public int cost { get; set; }6 public string? Name { get; set; } 7 public string? Body { get; set; } 8 public int Cost { get; set; } 9 9 public ICollection<UserDocuments>? User { get; set; } 10 10 } -
iknow-api/Models/EnrollmentInfo.cs
r22439d3 r2d64b2e 1 1 using System.ComponentModel.DataAnnotations.Schema; 2 using Microsoft.AspNetCore.SignalR; 3 using Microsoft.Net.Http.Headers; 2 4 3 5 namespace iknow_api.Models … … 11 13 public int Id { get; set; } 12 14 public int enrollmentYear { get; set; } 13 // CS1597 fix: no semicolon after accessor block14 15 public Quota quota { get; set; } 15 16 public int MajorId { get; set; } … … 17 18 public int UserId { get; set; } 18 19 public User? User { get; set; } 20 public string? StudyType { get; set; } 21 public string? StudyStatus { get; set; } 19 22 20 23 } -
iknow-api/Models/HighSchool.cs
r22439d3 r2d64b2e 3 3 namespace iknow_api.Models 4 4 { 5 public enum type5 public enum HighSchoolType 6 6 { 7 strucen, gimnazija7 Strucen, Gimnazija 8 8 } 9 9 public class HighSchool … … 11 11 public int Id { get; set; } 12 12 public float GPA { get; set; } 13 public type tip { get; set; } 14 13 public HighSchoolType HighSchoolType { get; set; } 15 14 public int UserId { get; set; } 16 public User User { get; set; } 15 public User? User { get; set; } 16 public string? StudyLanguage { get; set; } 17 17 } 18 18 } -
iknow-api/Models/MajorSubjects.cs
r22439d3 r2d64b2e 6 6 public int SubjectId { get; set; } 7 7 public int MandatorySemester { get; set; } 8 public int A kreditacija{ get; set; }8 public int Accreditation { get; set; } 9 9 public Major? Majors { get; set; } 10 10 public Subject? Subjects { get; set; } -
iknow-api/Models/RefreshToken.cs
r22439d3 r2d64b2e 7 7 public int Id { get; set; } 8 8 public int UserId { get; set; } 9 public User User { get; set; }9 public User? User { get; set; } 10 10 public string? Token { get; set; } 11 11 public DateTime ExpiresAt { get; set; } -
iknow-api/Models/User.cs
r22439d3 r2d64b2e 19 19 public string? Email { get; set; } 20 20 public string? PasswordHash { get; set; } 21 public string? MiddleName { get; set; } 22 public string? Gender { get; set; } 23 public string? Nationality { get; set; } 24 public string? Citizenship { get; set; } 21 25 public DateTime Bday { get; set; } 22 26 public DateTime CreatedAt { get; set; } -
iknow-api/Services/Implementations/AuthService.cs
r22439d3 r2d64b2e 56 56 { 57 57 Name = registerDto.Name, 58 MiddleName = registerDto.MiddleName, 58 59 Surname = registerDto.Surname, 59 60 Index = registerDto.Index, … … 63 64 CreatedAt = DateTime.UtcNow, 64 65 Role = (Models.UserRole)registerDto.Role, 65 EMBG = registerDto.EMBG 66 EMBG = registerDto.EMBG, 67 Nationality = registerDto.nationality, 68 Citizenship = registerDto.citizenship, 69 Gender = registerDto.gender 66 70 }; 67 71 … … 74 78 { 75 79 UserId = userId, 76 city = registerDto.city,77 address = registerDto.address,78 municipality = registerDto.municipality,79 phoneNumber = registerDto.phoneNumber,80 microsoftEmail = registerDto.microsoftEmail80 City = registerDto.city, 81 Address = registerDto.address, 82 Municipality = registerDto.municipality, 83 PhoneNumber = registerDto.phoneNumber, 84 MicrosoftEmail = registerDto.microsoftEmail 81 85 }; 82 86 … … 86 90 enrollmentYear = registerDto.enrollmentYear, 87 91 quota = (Models.Quota)registerDto.quotaType, 88 MajorId = registerDto.majorType 92 MajorId = registerDto.majorType, 93 StudyStatus = registerDto.studyStatus, 94 StudyType = registerDto.studyType 89 95 }; 90 96 … … 93 99 UserId = userId, 94 100 GPA = registerDto.gpa, 95 tip = (Models.type)registerDto.tip101 HighSchoolType = (Models.HighSchoolType)registerDto.tip 96 102 }; 97 103
Note:
See TracChangeset
for help on using the changeset viewer.
