43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
|
|
using SqlSugar;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Models.ModelItems
|
|||
|
|
{
|
|||
|
|
//[Table("HotelGroups")]
|
|||
|
|
public class HotelGroups
|
|||
|
|
{
|
|||
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|||
|
|
public int Id { get; set; }
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, IsPrimaryKey = false)]
|
|||
|
|
|
|||
|
|
public string Name { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "int",IsPrimaryKey = false)]
|
|||
|
|
|
|||
|
|
public int ParentId { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, IsPrimaryKey = false)]
|
|||
|
|
|
|||
|
|
public string Desc { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true, IsPrimaryKey = false)]
|
|||
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|||
|
|
|
|||
|
|
public int IsDel { get; set; } = 0;
|
|||
|
|
|
|||
|
|
|
|||
|
|
//public string ParenetName { get; set; }
|
|||
|
|
//public int Sort { get; set; }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|