23 lines
705 B
C#
23 lines
705 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; }
|
|
|
|
public bool IsBreeder { get; set; }
|
|
public bool IsReceiver { get; set; }
|
|
}
|
|
}
|