namespace OASystem.Domain.Entities.System
{
///
/// 公司表
///
[SugarTable("Sys_Company")]
public class Sys_Company: EntityBase
{
///
/// 公司Code
///
[SugarColumn(IsNullable =true,ColumnDataType ="varchar(20)")]
public string CompanyCode { get; set; }
///
/// 公司名称
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
public string CompanyName { get; set; }
///
/// 公司所在地
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
public string Address { get; set; }
///
/// 负责人Id
///
[SugarColumn(IsNullable =true, ColumnDataType = "int")]
public int ContactUserId { get; set; }
///
/// 联系方式
///
[SugarColumn(IsNullable =true, ColumnDataType = "varchar(30)")]
public string Tel { get; set; }
///
/// 父级公司Id
///
[SugarColumn(IsNullable =true, ColumnDataType = "int")]
public int ParentCompanyId { get; set; }
}
///
/// 添加公司表数据
///
public class AddCompany
{
///
/// 公司Code
///
public string CompanyCode { get; set; }
///
/// 公司名称
///
public string CompanyName { get; set; }
///
/// 公司所在地
///
public string Address { get; set; }
///
/// 负责人Id
///
public int ContactUserId { get; set; }
///
/// 联系方式
///
public string Tel { get; set; }
///
/// 父级公司Id
///
public int ParentCompanyId { get; set; }
///
/// 创建者Id
///
public int CreateUserId { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 删除者Id
///
public int? DeleteUserId { get; set; }
///
/// 删除时间
///
public string DeleteTime { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 是否删除
///
public int IsDel { get; set; }
}
}