You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
3.5 KiB

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;
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;
}