Database: Change bins once again...
This commit is contained in:
@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Elwig.Models {
|
||||
[Table("delivery_part_bin"), PrimaryKey("Year", "DId", "DPNr")]
|
||||
[Table("delivery_part_bin"), PrimaryKey("Year", "DId", "DPNr", "BinNr")]
|
||||
public class DeliveryPartBin {
|
||||
[Column("year")]
|
||||
public int Year { get; set; }
|
||||
@ -13,34 +13,16 @@ namespace Elwig.Models {
|
||||
[Column("dpnr")]
|
||||
public int DPNr { get; set; }
|
||||
|
||||
[Column("binnr")]
|
||||
public int BinNr { get; set; }
|
||||
|
||||
[Column("discr")]
|
||||
public string Discr { get; set; }
|
||||
|
||||
[Column("value")]
|
||||
public int Value { get; set; }
|
||||
|
||||
[ForeignKey("Year, DId, DPNr")]
|
||||
public virtual DeliveryPart Part { get; private set; }
|
||||
|
||||
[Column("bin_1")]
|
||||
public int? Bin1 { get; set; }
|
||||
|
||||
[Column("bin_2")]
|
||||
public int? Bin2 { get; set; }
|
||||
|
||||
[Column("bin_3")]
|
||||
public int? Bin3 { get; set; }
|
||||
|
||||
[Column("bin_4")]
|
||||
public int? Bin4 { get; set; }
|
||||
|
||||
[Column("bin_5")]
|
||||
public int? Bin5 { get; set; }
|
||||
|
||||
[Column("bin_6")]
|
||||
public int? Bin6 { get; set; }
|
||||
|
||||
[Column("bin_7")]
|
||||
public int? Bin7 { get; set; }
|
||||
|
||||
[Column("bin_8")]
|
||||
public int? Bin8 { get; set; }
|
||||
|
||||
[Column("bin_9")]
|
||||
public int? Bin9 { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user