You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Entity/SysOrg.cs

64 lines
1.2 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Entity;
/// <summary>
/// 组织机构表
/// </summary>
[SugarTable("sys_org")]
[Description("组织机构表")]
public class SysOrg : DBEntityTenant
{
/// <summary>
/// 父Id
/// </summary>
public long Pid { get; set; }
/// <summary>
/// 父Ids
/// </summary>
public string Pids { get; set; }
/// <summary>
/// 名称
/// </summary>
[Required, MaxLength(30)]
public string Name { get; set; }
/// <summary>
/// 编码
/// </summary>
[Required, MaxLength(50)]
public string Code { get; set; }
/// <summary>
/// 联系人
/// </summary>
[MaxLength(20)]
public string Contacts { get; set; }
/// <summary>
/// 电话
/// </summary>
[MaxLength(20)]
public string Tel { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 备注
/// </summary>
[MaxLength(100)]
public string Remark { get; set; }
/// <summary>
/// 状态(字典 0正常 1停用 2删除
/// </summary>
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
}