initial commit

This commit is contained in:
Julian
2022-01-23 19:20:13 +01:00
parent d4508520d4
commit 0e1b585db6
25 changed files with 758 additions and 0 deletions

21
Models/Family.cs Normal file
View 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>();
}
}
}

11
Models/Person.cs Normal file
View File

@@ -0,0 +1,11 @@
using System;
namespace weddingapi.Models
{
public record Person
{
public string Name { get; init; }
public bool IsChild { get; set; }
}
}