58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using SqlSugar;
|
|||
|
|
|
|||
|
|
namespace Models.ModelItems
|
|||
|
|
{
|
|||
|
|
#region 用户组表
|
|||
|
|
[Table("Organization")]
|
|||
|
|
public class Organization
|
|||
|
|
{
|
|||
|
|
//[Key]
|
|||
|
|
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
|||
|
|
public int Id { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 用户组名
|
|||
|
|
/// </summary>
|
|||
|
|
///
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
|||
|
|
|
|||
|
|
public string OrganizationName { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 说明
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
|||
|
|
|
|||
|
|
public string Desc { get; set; }
|
|||
|
|
[SugarColumn(ColumnDataType = "int")]
|
|||
|
|
|
|||
|
|
public int IsDefault { get; set; } = 0;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 创建时间
|
|||
|
|
/// </summary>
|
|||
|
|
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
|||
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")]
|
|||
|
|
|
|||
|
|
public string CreatedBy { get; set; } = "系统";
|
|||
|
|
|
|||
|
|
[SugarColumn(ColumnDataType = "int")]
|
|||
|
|
public int IsValid { get; set; } = 0;
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
}
|