diff --git a/ReallifeGamemode.Database/Entities/User.cs b/ReallifeGamemode.Database/Entities/User.cs index 60404d7b..9918ee69 100644 --- a/ReallifeGamemode.Database/Entities/User.cs +++ b/ReallifeGamemode.Database/Entities/User.cs @@ -88,8 +88,9 @@ namespace ReallifeGamemode.Database.Entities public House House { get; set; } public int? JobId { get; set; } - public int? BusSkill { get; set; } - public int? PilotSkill { get; set; } + + public int BusSkill { get; set; } + public int PilotSkill { get; set; } public int Wanteds diff --git a/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs b/ReallifeGamemode.Database/Migrations/20200427131454_UserJobSkillBusPilot.Designer.cs similarity index 99% rename from ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs rename to ReallifeGamemode.Database/Migrations/20200427131454_UserJobSkillBusPilot.Designer.cs index c31f015c..19735cfa 100644 --- a/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs +++ b/ReallifeGamemode.Database/Migrations/20200427131454_UserJobSkillBusPilot.Designer.cs @@ -9,7 +9,7 @@ using ReallifeGamemode.Database.Models; namespace ReallifeGamemode.Database.Migrations { [DbContext(typeof(DatabaseContext))] - [Migration("20200427130648_UserJobSkillBusPilot")] + [Migration("20200427131454_UserJobSkillBusPilot")] partial class UserJobSkillBusPilot { protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -1310,7 +1310,7 @@ namespace ReallifeGamemode.Database.Migrations b.Property("BankAccountId") .HasColumnType("int"); - b.Property("BusSkill") + b.Property("BusSkill") .HasColumnType("int"); b.Property("BusinessId") @@ -1376,7 +1376,7 @@ namespace ReallifeGamemode.Database.Migrations b.Property("PaydayTimer") .HasColumnType("int"); - b.Property("PilotSkill") + b.Property("PilotSkill") .HasColumnType("int"); b.Property("PlayedMinutes") diff --git a/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs b/ReallifeGamemode.Database/Migrations/20200427131454_UserJobSkillBusPilot.cs similarity index 85% rename from ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs rename to ReallifeGamemode.Database/Migrations/20200427131454_UserJobSkillBusPilot.cs index 4c6b39ae..ea75a465 100644 --- a/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs +++ b/ReallifeGamemode.Database/Migrations/20200427131454_UserJobSkillBusPilot.cs @@ -9,12 +9,14 @@ namespace ReallifeGamemode.Database.Migrations migrationBuilder.AddColumn( name: "BusSkill", table: "Users", - nullable: true); + nullable: false, + defaultValue: 0); migrationBuilder.AddColumn( name: "PilotSkill", table: "Users", - nullable: true); + nullable: false, + defaultValue: 0); } protected override void Down(MigrationBuilder migrationBuilder) diff --git a/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs b/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs index a6cfde7f..bfe9dde6 100644 --- a/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs +++ b/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs @@ -1308,7 +1308,7 @@ namespace ReallifeGamemode.Database.Migrations b.Property("BankAccountId") .HasColumnType("int"); - b.Property("BusSkill") + b.Property("BusSkill") .HasColumnType("int"); b.Property("BusinessId") @@ -1374,7 +1374,7 @@ namespace ReallifeGamemode.Database.Migrations b.Property("PaydayTimer") .HasColumnType("int"); - b.Property("PilotSkill") + b.Property("PilotSkill") .HasColumnType("int"); b.Property("PlayedMinutes")