53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Models.ModelItems
|
|
{
|
|
|
|
//[Table("OrgUser")]
|
|
public class OrgUsers
|
|
{
|
|
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// 用户组ID
|
|
/// </summary>
|
|
//[ForeignKey("OrgId")]
|
|
//public Organization organization { get; set; }
|
|
|
|
[SugarColumn(ColumnDataType = "int")]
|
|
public int OrgId { get; set; }
|
|
//[ForeignKey("UserId")]
|
|
//public UserInfo user { get; set; }
|
|
/// <summary>
|
|
/// 用户ID
|
|
/// </summary>
|
|
//[Key, Column(Order = 1)]
|
|
|
|
[SugarColumn(ColumnDataType = "int")]
|
|
|
|
public int UserId { get; set; }
|
|
/// <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; } = "系统";
|
|
|
|
}
|
|
}
|