using SqlSugar;
using System;
namespace New_College.Model.Models
{
///
/// 博客文章
///
public class BlogArticle
{
///
/// 主键
///
/// 这里之所以没用RootEntity,是想保持和之前的数据库一致,主键是bID,不是Id
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int bID { get; set; }
///
/// 创建人
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 60, IsNullable = true)]
public string bsubmitter { get; set; }
///
/// 标题blog
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 256, IsNullable = true)]
public string btitle { get; set; }
///
/// 类别
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string bcategory { get; set; }
///
/// 内容
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string bcontent { get; set; }
///
/// 访问量
///
public int btraffic { get; set; }
///
/// 评论数量
///
public int bcommentNum { get; set; }
///
/// 修改时间
///
public DateTime bUpdateTime { get; set; }
///
/// 创建时间
///
public System.DateTime bCreateTime { get; set; }
///
/// 备注
///
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string bRemark { get; set; }
///
/// 逻辑删除
///
[SugarColumn(IsNullable = true)]
public bool? IsDeleted { get; set; }
}
}