almost ready
This commit is contained in:
@@ -8,7 +8,8 @@ public class InventoryItemConfiguration : IEntityTypeConfiguration<InventoryItem
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<InventoryItem> entity)
|
||||
{
|
||||
entity.HasIndex(e => e.AssetId);
|
||||
// A Steam asset id identifies one physical copy; never store it twice.
|
||||
entity.HasIndex(e => e.AssetId).IsUnique();
|
||||
|
||||
entity.HasOne(e => e.User)
|
||||
.WithMany(u => u.InventoryItems)
|
||||
|
||||
Reference in New Issue
Block a user