using System.ComponentModel.DataAnnotations.Schema;
using LinqToDB.Mapping;
using Mango.Nop.Core.Entities;
using Mango.Nop.Core.Interfaces;
using Nop.Core;
using Nop.Plugin.Misc.AuctionPlugin.Domains.Entities.Interfaces;
using Nop.Plugin.Misc.AuctionPlugin.Domains.Enums;

namespace Nop.Plugin.Misc.AuctionPlugin.Domains.Entities;

public class Auction: MgEntityBase, IAuction
{
    public int StoreId { get; set; }
    public string AuctionName { get; set; }

    //[NotMapped]
    //[NotColumn]
    public AuctionType AuctionType{ get; set; }

    public DateTime StartDateUtc { get; set; }
    public DateTime? EndDateUtc { get; set; }

    public bool Closed { get; set; }
    public int? CategoryId { get; set; }

    [SkipValuesOnUpdate]
    public DateTime Created { get; set; }
    public DateTime Modified { get; set; }
}