using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AyCode.Interfaces.Entities;
using AyCode.Interfaces.TimeStampInfo;
using TIAM.Entities.Products;
using TIAM.Entities.ServiceProviders;

namespace TIAM.Entities.Users;

[Table("UserServiceProviderMapping")]
public class UserServiceProviderMapping : IEntityGuid, ITimeStampInfo
{
    [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public Guid Id { get; set; }

    public Guid UserId { get; set; }
    public Guid ServiceProviderId { get; set; }

    public virtual User User { get; set; }
    public virtual TiamServiceProvider ServiceProvider { get; set; }

    public DateTime Created { get; set; }
    public DateTime Modified { get; set; }

    public UserServiceProviderMapping() { }
}