49 lines
2.0 KiB
C#
49 lines
2.0 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PSTW_CentralSystem.Models
|
|
{
|
|
public class MarineTarball
|
|
{
|
|
public int Id { get; set; } // Maps to 'id'
|
|
public required string ReportID { get; set; } // Maps to 'reportID'
|
|
public required string FirstSampler { get; set; } // Maps to 'firstSampler'
|
|
public required string SecondSampler { get; set; } // Maps to 'secondSampler'
|
|
public DateTime DateSample { get; set; } // Maps to 'dateSample'
|
|
public TimeSpan TimeSample { get; set; } // Maps to 'timeSample'
|
|
public required string StationID { get; set; } // Maps to 'stationID'
|
|
public required string ClassifyID { get; set; } // Maps to 'classifyID'
|
|
public double Latitude { get; set; } // Maps to 'latitude'
|
|
public double Longitude { get; set; } // Maps to 'longitude'
|
|
public double GetLatitude { get; set; } // Maps to 'getLatitude'
|
|
public double GetLongitude { get; set; } // Maps to 'getLongitude'
|
|
public DateTime Timestamp { get; set; } // Maps to 'timestamp'
|
|
|
|
[ForeignKey("StationID")]
|
|
public required TarballStation TarballStation { get; set; }
|
|
}
|
|
|
|
public class TarballStation
|
|
{
|
|
public int Id { get; set; } // Maps to 'id'
|
|
public required string StationID { get; set; } // Maps to 'stationID'
|
|
public required string StateID { get; set; } // Maps to 'stateID'
|
|
public required string CategoryID { get; set; } // Maps to 'categoryID'
|
|
public required string LocationName { get; set; } // Maps to 'locationName'
|
|
public decimal Longitude { get; set; } // Maps to 'longitude'
|
|
public decimal Latitude { get; set; } // Maps to 'latitude'
|
|
|
|
[ForeignKey("StateID")]
|
|
public required State State { get; set; }
|
|
|
|
}
|
|
|
|
public class State
|
|
{
|
|
public int Id { get; set; } // Maps to 'id'
|
|
public required string StateID { get; set; } // Maps to 'stateID'
|
|
public required string StateName { get; set; } // Maps to 'stateName'
|
|
}
|
|
|
|
}
|
|
|