weaponschein fertig

This commit is contained in:
hydrant
2020-03-13 22:51:30 +01:00
parent 6467615a32
commit 359762965d
16 changed files with 1574 additions and 14 deletions

View File

@@ -94,6 +94,8 @@ namespace ReallifeGamemode.Database.Entities
public bool DriverLicenseBike { get; set; } = false;
public bool WeaponLicense { 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 UserWeaponLicense : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "WeaponLicense",
table: "Users",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "WeaponLicense",
table: "Users");
}
}
}

View File

@@ -1026,6 +1026,8 @@ namespace ReallifeGamemode.Database.Migrations
b.Property<int>("Wanteds");
b.Property<bool>("WeaponLicense");
b.HasKey("Id");
b.HasIndex("BanId");