using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Atomx.Common.Entities
{
    /// <summary>
    /// 公司信息
    /// </summary>
    [Table("Corporations")]
    public class Corporation
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [Column(TypeName = "varchar(64)")]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 店铺网点数量
        /// </summary>
        public int StoreCount { get; set; }

        /// <summary>
        /// 产品数量
        /// </summary>
        public int ProductCount { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int GoodsCount { get; set; }

        /// <summary>
        /// 数据状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 数据创建时间
        /// </summary>
        [Column(TypeName = "timestamptz")]
        public DateTime CreateTime { get; set; } = DateTime.UtcNow;

        /// <summary>
        /// 数据更新时间
        /// </summary>
        [Column(TypeName = "timestamptz")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 数据删除时间
        /// </summary>
        [Column(TypeName = "timestamptz")]
        public DateTime? DeleteTime { get; set; }

    }
}
