first things

This commit is contained in:
Roland Fieger
2021-09-22 12:37:40 +02:00
parent 074df0adec
commit 5e15db793b
53 changed files with 2065 additions and 229 deletions

View File

@@ -0,0 +1,18 @@
using System;
using Datamodels.Lookups;
namespace Datamodels.DatabaseModels
{
public class Address: IEntityClass
{
public long Id { get; set; }
public string StreetName { get; set; }
public int StreetNumber { get; set; }
public string Zip { get; set; }
public string City { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ChangedAt { get; set; }
public LookupValue AddressType { get; set; } //something like "Job" or "Private"
public Person Person { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using Datamodels.Lookups;
namespace Datamodels.DatabaseModels
{
public class Communication
{
public long Id { get; set; }
public string CommunicationValue { get; set; } //mobile phone, home phone, job mail, etc.
public LookupValue CommunicationType { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ChangedAt { get; set; }
public Person Person { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Datamodels.DatabaseModels
{
public interface IEntityClass
{
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using Datamodels.Lookups;
namespace Datamodels.DatabaseModels
{
public class Person
{
public long Id { get; set; }
public string LastName { get; set; }
public string FirstName { get; set; }
public DateTime? Birthday { get; set; }
public bool IsActive { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ChangedAt { get; set; }
public LookupValue Gender { get; set; }
public List<Address> Addresses { get; set; }
public List<Communication> Communications { get; set; }
}
}