Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

2.6 KB
Raw Blame
/*
 * date:2022-12-21
 * developer:NoNo
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using ModernWMS.Core.Models;
using ModernWMS.Core.Utility;

namespace ModernWMS.WMS.Entities.Models
{
    /// <summary>
    /// spu  entity
    /// </summary>
    [Table("spu")]
    public class SpuEntity : BaseModel
    {

        #region Property

        /// <summary>
        /// spu_code
        /// </summary>
        public string spu_code { get; set; } = string.Empty;

        /// <summary>
        /// spu_name
        /// </summary>
        public string spu_name { get; set; } = string.Empty;

        /// <summary>
        /// category_id
        /// </summary>
        public int category_id { get; set; } = 0;

        /// <summary>
        /// spu_description
        /// </summary>
        public string spu_description { get; set; } = string.Empty;

        /// <summary>
        /// supplier_id
        /// </summary>
        public int supplier_id { get; set; } = 0;

        /// <summary>
        /// supplier_name
        /// </summary>
        public string supplier_name { get; set; } = string.Empty;

        /// <summary>
        /// brand
        /// </summary>
        public string brand { get; set; } = string.Empty;

        /// <summary>
        /// origin
        /// </summary>
        public string origin { get; set; } = string.Empty;

        /// <summary>
        /// length_unit
        /// </summary>
        public byte length_unit { get; set; } = 0;

        /// <summary>
        /// volume_unit
        /// </summary>
        public byte volume_unit { get; set; } = 0;

        /// <summary>
        /// weight_unit
        /// </summary>
        public byte weight_unit { get; set; } = 0;

        /// <summary>
        /// creator
        /// </summary>
        public string creator { get; set; } = string.Empty;

        /// <summary>
        /// create_time
        /// </summary>
        public DateTime create_time { get; set; } = DateTime.Now;

        /// <summary>
        /// last_update_time
        /// </summary>
        public DateTime last_update_time { get; set; } = DateTime.Now;

        /// <summary>
        /// is_valid
        /// </summary>
        public bool is_valid { get; set; } = true;

        /// <summary>
        /// tenant_id
        /// </summary>
        public long tenant_id { get; set; } = 1;


        #endregion

        #region details
        /// <summary>
        /// sku
        /// </summary>
        public List<SkuEntity> detailList { get; set; } = new List<SkuEntity>();
        #endregion
    }
}