using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

#nullable disable

namespace Ropin.Inspection.Model.Entities
{
    public partial class TISP_Spot
    {
        public TISP_Spot()
        {
            TISP_Records = new HashSet<TISP_Record>();
            TISP_SpotContents = new HashSet<TISP_SpotContent>();
            TISP_SpotUsers = new HashSet<TISP_SpotUser>();
            TPRD_Products = new HashSet<TPRD_Product>();
        }
        [Key]
        public Guid C_Code { get; set; } = Guid.NewGuid();
        public string C_StoreCode { get; set; }
        public string C_Number { get; set; }
        public string C_Name { get; set; }
        public string C_Position { get; set; }
        public string C_QRCode { get; set; }
        public string C_AreaCode { get; set; }
        public decimal? F_Map_X { get; set; }
        public decimal? F_Map_Y { get; set; }
        public string C_GPS { get; set; }
        public int? I_Offset { get; set; }
        public string C_ImageUrl { get; set; }
        public string C_Remark { get; set; }
        public Guid C_CreateBy { get; set; }
        public DateTime D_CreateOn { get; set; }
        public Guid? C_LastUpdatedBy { get; set; }
        public DateTime? D_LastUpdatedOn { get; set; }
        public string C_Status { get; set; }

        public virtual TPNT_Area C_AreaCodeNavigation { get; set; }
        public virtual TSYS_User C_CreateByNavigation { get; set; }
        public virtual TSYS_User C_LastUpdatedByNavigation { get; set; }
        public virtual TPNT_Store C_StoreCodeNavigation { get; set; }
        public virtual ICollection<TISP_Record> TISP_Records { get; set; }
        public virtual ICollection<TISP_SpotContent> TISP_SpotContents { get; set; }
        public virtual ICollection<TISP_SpotUser> TISP_SpotUsers { get; set; }
        public virtual ICollection<TPRD_Product> TPRD_Products { get; set; }
    }
}