41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TrafagSalesExporter.Models;
|
|
|
|
public class Site
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int? HanaServerId { get; set; }
|
|
|
|
[ForeignKey(nameof(HanaServerId))]
|
|
public HanaServer? HanaServer { get; set; }
|
|
|
|
[Required]
|
|
public string Schema { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string TSC { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Land { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string SourceSystem { get; set; } = "SAP";
|
|
|
|
public string UsernameOverride { get; set; } = string.Empty;
|
|
|
|
public string PasswordOverride { get; set; } = string.Empty;
|
|
|
|
public string SapServiceUrl { get; set; } = string.Empty;
|
|
|
|
public string SapEntitySet { get; set; } = string.Empty;
|
|
|
|
public string SapEntitySetsCache { get; set; } = string.Empty;
|
|
|
|
public DateTime? SapEntitySetsRefreshedAtUtc { get; set; }
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
}
|