CodeLiturgy.Dashboard/CodeLiturgy.Views/Application/Sites/Site.cs

28 lines
710 B
C#
Raw Normal View History

2022-11-17 00:17:44 +03:00
using System;
using System.ComponentModel.DataAnnotations.Schema;
using MapTo;
2022-11-18 01:39:36 +03:00
namespace CodeLiturgy.Data.Application
2022-11-17 00:17:44 +03:00
{
[MapFrom(new []
{
typeof(SiteUnique),
typeof(SiteCreate)
})]
2022-11-22 18:05:35 +03:00
2022-11-17 00:17:44 +03:00
public partial class Site
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
2022-11-18 03:15:53 +03:00
public SiteEnvironment Environment { get; set; }
public string EnvironmentId { get; set; }
2022-11-17 00:17:44 +03:00
public string Domain { get; set; }
2022-11-18 03:15:53 +03:00
public string UrlAddress { get; set; }
2022-11-22 18:05:35 +03:00
public SiteType SiteType { get; set; }
2022-11-17 00:17:44 +03:00
public DateTime CreatedDate { get; set; }
public DateTime LastChanged { get; set; }
}
}