|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace Entity.DbModel.System.App;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 车队
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("car_team")]
|
|
|
|
|
public class CarTeam
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自增
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = true)]
|
|
|
|
|
public virtual long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 客户id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "customer_id", ColumnDescription = "客户id")]
|
|
|
|
|
public virtual long? CustomerId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 车队编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "team_code", ColumnDescription = "车队编码", Length = 50)]
|
|
|
|
|
public virtual string TeamCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 车队名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "team_name", ColumnDescription = "车队名称", Length = 30, IsNullable = false)]
|
|
|
|
|
public virtual string TeamName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 负责人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "principal", ColumnDescription = "负责人", Length = 50)]
|
|
|
|
|
public virtual string Principal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 联系方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "contact_way", ColumnDescription = "联系方式", Length = 300)]
|
|
|
|
|
public virtual string ContactWay { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否打折:0:否;1是
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "is_discount", ColumnDescription = "是否打折:0:否;1是")]
|
|
|
|
|
public virtual int? IsDiscount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 折扣比例:1-100
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "discount_percent", ColumnDescription = "折扣比例:1-100")]
|
|
|
|
|
public virtual int? DiscountPercent { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 折扣范围:0全部折扣;1:计费模型折扣;3电价折扣
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "discount_scope", ColumnDescription = "折扣范围:0全部折扣;1:计费模型折扣;3电价折扣")]
|
|
|
|
|
public virtual int? DiscountScope { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 舍入模式:0.向下取整;1.四舍五入;2.向上取整
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "rounding_mode", ColumnDescription = "舍入模式:0.向下取整;1.四舍五入;2.向上取整", IsNullable = false)]
|
|
|
|
|
public virtual int RoundingMode { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 额度限制,小于此额度则认证失败,提示余额不足
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "limit", ColumnDescription = "额度限制,小于此额度则认证失败,提示余额不足", DecimalDigits = 2)]
|
|
|
|
|
public virtual decimal? Limit { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "created_by", ColumnDescription = "创建人", Length = 32)]
|
|
|
|
|
public virtual string CreatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "created_time", ColumnDescription = "创建时间", IsNullable = true, IsOnlyIgnoreUpdate = true)]
|
|
|
|
|
public virtual DateTime? CreatedTime { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "updated_by", ColumnDescription = "更新人", Length = 32)]
|
|
|
|
|
public virtual string UpdatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "updated_time", ColumnDescription = "更新时间", IsNullable = true)]
|
|
|
|
|
public virtual DateTime? UpdatedTime { get; set; } = DateTime.Now;
|
|
|
|
|
}
|