initial commit
This commit is contained in:
21
Models/Family.cs
Normal file
21
Models/Family.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace weddingapi.Models
|
||||
{
|
||||
public record Family
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
|
||||
public string Name { get; init; }
|
||||
|
||||
public DateTimeOffset CreatedDate { get; set; }
|
||||
|
||||
public IList<Person> Members { get; init; }
|
||||
|
||||
public Family()
|
||||
{
|
||||
this.Members = new List<Person>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user