/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email: 34161541@qq.com
* CreateTime: 2024-03-01 22:14:58
* Description: 暂无
***********************************************************************/
using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace CoreCms.Net.Model.Entities
{
///
/// 广告表
///
[SugarTable("CoreCmsAdvertisement", TableDescription = "广告表")]
public partial class CoreCmsAdvertisement
{
///
/// 广告表
///
public CoreCmsAdvertisement()
{
}
///
/// 序列
///
[Display(Name = "序列")]
[SugarColumn(ColumnDescription = "序列", IsPrimaryKey = true, IsIdentity = true)]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 id { get; set; }
///
/// 位置序列
///
[Display(Name = "位置序列")]
[SugarColumn(ColumnDescription = "位置序列")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 positionId { get; set; }
///
/// 广告名称
///
[Display(Name = "广告名称")]
[SugarColumn(ColumnDescription = "广告名称")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
public System.String name { get; set; }
///
/// 广告图片id
///
[Display(Name = "广告图片id")]
[SugarColumn(ColumnDescription = "广告图片id")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
public System.String imageUrl { get; set; }
///
/// 属性值
///
[Display(Name = "属性值")]
[SugarColumn(ColumnDescription = "属性值")]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
public System.String val { get; set; }
///
/// 属性值说明
///
[Display(Name = "属性值说明")]
[SugarColumn(ColumnDescription = "属性值说明", IsNullable = true)]
[StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
public System.String valDes { get; set; }
///
/// 排序
///
[Display(Name = "排序")]
[SugarColumn(ColumnDescription = "排序")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 sort { get; set; }
///
/// 添加时间
///
[Display(Name = "添加时间")]
[SugarColumn(ColumnDescription = "添加时间", IsNullable = true)]
public System.DateTime? createTime { get; set; }
///
/// 更新时间
///
[Display(Name = "更新时间")]
[SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
public System.DateTime? updateTime { get; set; }
///
/// 广告位置编码
///
[Display(Name = "广告位置编码")]
[SugarColumn(ColumnDescription = "广告位置编码", IsNullable = true)]
[StringLength(32, ErrorMessage = "【{0}】不能超过{1}字符长度")]
public System.String code { get; set; }
///
/// 类型
///
[Display(Name = "类型")]
[SugarColumn(ColumnDescription = "类型")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 type { get; set; }
}
}