using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace IWS5.DatabaseAccess.IwsDataModels;

[Table("ATExportEvent")]
[Index("EventId", "TemplateId", "Order", Name = "UK_ATExportEvent_EventId_TemplateId_Order", IsUnique = true)]
public partial class AtexportEvent
{
    [Key]
    public int Id { get; set; }

    public int EventId { get; set; }

    public int TemplateId { get; set; }

    public int Order { get; set; }

    [StringLength(500)]
    public string Description { get; set; } = null!;

    [ForeignKey("EventId")]
    [InverseProperty("AtexportEvents")]
    public virtual AteventDefinition Event { get; set; } = null!;

    [ForeignKey("TemplateId")]
    [InverseProperty("AtexportEvents")]
    public virtual Attemplate Template { get; set; } = null!;
}
