Haus erweiterungen
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using GTANetworkAPI;
|
||||
|
||||
@@ -22,6 +23,8 @@ namespace ReallifeGamemode.Database.Entities
|
||||
|
||||
public bool CanRentIn { get; set; }
|
||||
|
||||
public DateTime LastRentSetTime { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public Vector3 Position => new Vector3(X, Y, Z);
|
||||
|
||||
|
||||
1428
ReallifeGamemode.Database/Migrations/20200324175347_HouseWeeklyRentalFee.Designer.cs
generated
Normal file
1428
ReallifeGamemode.Database/Migrations/20200324175347_HouseWeeklyRentalFee.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
public partial class HouseWeeklyRentalFee : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "LastRentSetTime",
|
||||
table: "Houses",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LastRentSetTime",
|
||||
table: "Houses");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -483,6 +483,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
|
||||
b.Property<bool>("CanRentIn");
|
||||
|
||||
b.Property<DateTime>("LastRentSetTime");
|
||||
|
||||
b.Property<int?>("OwnerId");
|
||||
|
||||
b.Property<int>("Price");
|
||||
|
||||
Reference in New Issue
Block a user