weaponschein fertig
This commit is contained in:
@@ -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)
|
||||
|
||||
1428
ReallifeGamemode.Database/Migrations/20200313203304_UserWeaponLicense.Designer.cs
generated
Normal file
1428
ReallifeGamemode.Database/Migrations/20200313203304_UserWeaponLicense.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1026,6 +1026,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
|
||||
b.Property<int>("Wanteds");
|
||||
|
||||
b.Property<bool>("WeaponLicense");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BanId");
|
||||
|
||||
Reference in New Issue
Block a user