Ignore:
Timestamp:
12/09/25 14:54:20 (10 months ago)
Author:
imbrsk <boris696boris@…>
Branches:
master
Children:
33c69d6, 691f152
Parents:
22439d3
Message:

Refactor model properties for consistency and clarity

File:
1 moved

Legend:

Unmodified
Added
Removed
  • iknow-api/Migrations/20251209133847_InitalCreate.cs

    r22439d3 r2d64b2e  
    1010{
    1111    /// <inheritdoc />
    12     public partial class InitialCreate : Migration
     12    public partial class InitalCreate : Migration
    1313    {
    1414        /// <inheritdoc />
     
    2121                    Id = table.Column<int>(type: "integer", nullable: false)
    2222                        .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)
    2626                },
    2727                constraints: table =>
     
    7171                    Email = table.Column<string>(type: "text", nullable: true),
    7272                    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),
    7377                    Bday = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
    7478                    CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
     
    111115                    SubjectId = table.Column<int>(type: "integer", nullable: false),
    112116                    MandatorySemester = table.Column<int>(type: "integer", nullable: false),
    113                     Akreditacija = table.Column<int>(type: "integer", nullable: false)
     117                    Accreditation = table.Column<int>(type: "integer", nullable: false)
    114118                },
    115119                constraints: table =>
     
    136140                    Id = table.Column<int>(type: "integer", nullable: false)
    137141                        .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),
    143147                    UserId = table.Column<int>(type: "integer", nullable: false)
    144148                },
     
    192196                    quota = table.Column<int>(type: "integer", nullable: false),
    193197                    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)
    195201                },
    196202                constraints: table =>
     
    218224                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
    219225                    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)
    222229                },
    223230                constraints: table =>
Note: See TracChangeset for help on using the changeset viewer.