Files
Api/DouyinApi.Model/Models/BlogArticle.cs
2025-11-04 21:09:16 +08:00

85 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using SqlSugar;
using System;
using System.Collections.Generic;
namespace DouyinApi.Model.Models
{
/// <summary>
/// 博客文章
/// </summary>
public class BlogArticle
{
/// <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>
/// 标题blog
/// </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(BlogArticleComment.bID))]
public List<BlogArticleComment> Comments { get; set; }
}
}