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; } /// /// 用户组名 /// /// [SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)] public string OrganizationName { get; set; } /// /// 说明 /// [SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)] public string Desc { get; set; } [SugarColumn(ColumnDataType = "int")] public int IsDefault { get; set; } = 0; /// /// 创建时间 /// [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 }