初始化项目
This commit is contained in:
42
Models/ModelItems/HotelGroups.cs
Normal file
42
Models/ModelItems/HotelGroups.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user