using SqlSugar;
using System;
using System.Collections.Generic;
namespace Tiobon.Core.Model.Models
{
///
/// 博客文章
///
public class TiobonArticle
{
///
/// 主键
///
/// 这里之所以没用RootEntity,是想保持和之前的数据库一致,主键是bID,不是Id
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
public long bID { get; set; }
///
/// 创建人
///
[SugarColumn(Length = 600, IsNullable = true)]
public string bsubmitter { get; set; }
[Navigate(NavigateType.OneToOne, nameof(bsubmitter))]
public SysUserInfo User { get; set; }
///
/// 标题Tiobon
///
[SugarColumn(Length = 256, IsNullable = true)]
public string btitle { get; set; }
///
/// 类别
///
[SugarColumn(Length = 2000, IsNullable = true)]
public string bcategory { get; set; }
///
/// 内容
///
[SugarColumn(Length = 2000, 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(Length = 2000, IsNullable = true)]
public string bRemark { get; set; }
///
/// 逻辑删除
///
[SugarColumn(IsNullable = true)]
public bool? IsDeleted { get; set; }
///
/// 评论
///
[Navigate(NavigateType.OneToMany, nameof(TiobonArticleComment.bID))]
public List Comments { get; set; }
}
}