[+] Add Bikes to Driving School

//Driving School finished
This commit is contained in:
Lukas Moungos
2019-11-01 21:47:08 +01:00
parent 6947fcbc4e
commit 93e672549b
9 changed files with 1563 additions and 9 deletions

View File

@@ -94,6 +94,8 @@ namespace ReallifeGamemode.Database.Entities
public bool FlyingLicensePlane { get; set; } = false;
public bool DriverLicenseBike { get; set; } = false;
public bool IsAdmin(AdminLevel level) => AdminLevel >= level;
public IBankAccount GetBankAccount(DatabaseContext databaseContext = null)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,23 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace ReallifeGamemode.Database.Migrations
{
public partial class DriverLicenseBike : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "DriverLicenseBike",
table: "Users",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DriverLicenseBike",
table: "Users");
}
}
}

View File

@@ -905,6 +905,8 @@ namespace ReallifeGamemode.Database.Migrations
b.Property<bool>("Dead");
b.Property<bool>("DriverLicenseBike");
b.Property<bool>("DriverLicenseVehicle");
b.Property<string>("Email")