mirror of
https://github.com/azaion/missions.git
synced 2026-06-21 06:41:07 +00:00
4f226e91d5
Added new project structure for Azaion.Missions, including the MissionsController and VehiclesController for handling mission and vehicle management. Implemented DTOs for mission and vehicle creation and updates, along with service classes for business logic. Introduced database entities for Mission and Vehicle, and established relationships for data handling. Configured project dependencies and set up initial project properties.
28 lines
691 B
C#
28 lines
691 B
C#
using LinqToDB.Mapping;
|
|
using Azaion.Flights.Enums;
|
|
|
|
namespace Azaion.Flights.Database.Entities;
|
|
|
|
[Table("flights")]
|
|
public class Flight
|
|
{
|
|
[PrimaryKey]
|
|
[Column("id")]
|
|
public Guid Id { get; set; }
|
|
|
|
[Column("created_date")]
|
|
public DateTime CreatedDate { get; set; }
|
|
|
|
[Column("name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Column("aircraft_id")]
|
|
public Guid AircraftId { get; set; }
|
|
|
|
[Association(ThisKey = nameof(AircraftId), OtherKey = nameof(Aircraft.Id))]
|
|
public Aircraft? Aircraft { get; set; }
|
|
|
|
[Association(ThisKey = nameof(Id), OtherKey = nameof(Waypoint.FlightId))]
|
|
public List<Waypoint> Waypoints { get; set; } = [];
|
|
}
|