- GerbilStatus += ForSale ("Abzugeben", FEAT-12 sale listing); enum-as-string, no DB change.
- Contact: contactInfo -> structured email/phone/address (FEAT-13 sale contracts); name/notes kept.
- ColorVariety seed 18 -> 73 from Kevin's GEN-2 colorVarietySeed.generated.json (18 frozen first).
- Regenerated InitialCreate migration (Contacts email/phone/address cols, 73 seed rows).
20 lines
615 B
C#
20 lines
615 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace GerbilManagerWebAPI.Models
|
|
{
|
|
/// <summary>
|
|
/// A person/cattery a gerbil came from (Herkunft) or was given to (Abnehmer).
|
|
/// Was "Breeder"; the role is relational (see Gerbil.OriginContactId / ReceiverContactId).
|
|
/// </summary>
|
|
public class Contact
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
public required string Name { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? Notes { get; set; }
|
|
}
|
|
}
|