[+] Add SchoolVehicle Class for Driving and Flight School
[*] Fixed and Improved Flight School
This commit is contained in:
15
ReallifeGamemode.Database/Entities/SchoolVehicle.cs
Normal file
15
ReallifeGamemode.Database/Entities/SchoolVehicle.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using ReallifeGamemode.Database.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using ReallifeGamemode.Database.Models;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities
|
||||
{
|
||||
public class SchoolVehicle : ServerVehicle
|
||||
{
|
||||
public int SchoolId { get; set; }
|
||||
}
|
||||
}
|
||||
1356
ReallifeGamemode.Database/Migrations/20191101144543_SchoolId.Designer.cs
generated
Normal file
1356
ReallifeGamemode.Database/Migrations/20191101144543_SchoolId.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
public partial class SchoolId : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SchoolId",
|
||||
table: "ServerVehicles",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SchoolId",
|
||||
table: "ServerVehicles");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1118,6 +1118,17 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.HasDiscriminator().HasValue("SavedVehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.SchoolVehicle", b =>
|
||||
{
|
||||
b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle");
|
||||
|
||||
b.Property<int>("SchoolId");
|
||||
|
||||
b.ToTable("SchoolVehicle");
|
||||
|
||||
b.HasDiscriminator().HasValue("SchoolVehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopVehicle", b =>
|
||||
{
|
||||
b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle");
|
||||
|
||||
@@ -118,5 +118,9 @@ namespace ReallifeGamemode.Database.Models
|
||||
// Bus Routes
|
||||
public DbSet<Entities.BusRoute> BusRoutes { get; set; }
|
||||
public DbSet<Entities.BusRoutePoint> BusRoutesPoints { get; set; }
|
||||
|
||||
//Driving/Bike/Flight School
|
||||
public DbSet<Entities.SchoolVehicle> SchoolVehicles { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user