0b357e1e13
Removed strongly typed inventory objects Added EAV inventory types Added EAV object handling philosophy Added controllers Added EF Core migration integration Reviewed-on: #1
16 lines
567 B
C#
16 lines
567 B
C#
namespace WyvernInventory.Core.Models;
|
|
|
|
public record InventoryAttributeValue
|
|
{
|
|
public int? Id { get; set; }
|
|
public int? ItemId { get; set; }
|
|
public InventoryItem? Item { get; set; } = null!;
|
|
public int? AttributeDefinitionId { get; set; }
|
|
public InventoryAttributeDefinition? AttributeDefinition { get; set; } = null!;
|
|
|
|
public string? StringValue { get; set; }
|
|
public int? IntValue { get; set; }
|
|
public decimal? DecimalValue { get; set; }
|
|
public bool? BoolValue { get; set; }
|
|
public DateTime? DateTimeValue { get; set; }
|
|
} |