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