2023-02-22 13:47:14 +08:00

54 lines
1.5 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;
using System.Text;
namespace ZR.Model.System
{
/// <summary>
/// 文章表
/// </summary>
[SugarTable("article")]
[Tenant("0")]
public class Article
{
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
public int Cid { get; set; }
public string Title { get; set; }
public DateTime? CreateTime { get; set; }
[SugarColumn(IsOnlyIgnoreInsert = true)]
public DateTime UpdateTime { get; set; }
/// <summary>
/// 文章内容
/// </summary>
public string Content { get; set; }
/// <summary>
/// 作者名
/// </summary>
public string AuthorName { get; set; }
public long UserId { get; set; }
///// <summary>
/////
///// </summary>
//public string Type { get; set; }
/// <summary>
/// 文章状态 1、发布 2、草稿
/// </summary>
public string Status { get; set; }
/// <summary>
/// 编辑器类型 markdown,html
/// </summary>
public string Fmt_type { get; set; }
/// <summary>
/// 文章标签egNet5,java
/// </summary>
public string Tags { get; set; }
public int Hits { get; set; }
public int Category_Id { get; set; }
/// <summary>
/// 封面地址
/// </summary>
public string CoverUrl { get; set; }
}
}