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