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.
 
 
 

85 lines
2.2 KiB

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