NewGaoKaoApi/New_College.Model/Models/Guestbook.cs

58 lines
1.6 KiB
C#

using SqlSugar;
using System;
namespace New_College.Model.Models
{
public class Guestbook
{
/// <summary>
/// 留言表
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int id { get; set; }
/// <summary>博客ID
///
/// </summary>
public int? blogId { get; set; }
/// <summary>创建时间
///
/// </summary>
public DateTime createdate { get; set; }
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string username { get; set; }
/// <summary>手机
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string phone { get; set; }
/// <summary>qq
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string QQ { get; set; }
/// <summary>留言内容
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string body { get; set; }
/// <summary>ip地址
///
/// </summary>
[SugarColumn(ColumnDataType = "nvarchar", Length = int.MaxValue, IsNullable = true)]
public string ip { get; set; }
/// <summary>是否显示在前台,0否1是
///
/// </summary>
public bool isshow { get; set; }
[SugarColumn(IsIgnore = true)]
public BlogArticle blogarticle { get; set; }
}
}