You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
768 B
C#
40 lines
768 B
C#
|
|
using System;
|
|
using SqlSugar;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Admin.Core.Model.Sys
|
|
{
|
|
///<summary>
|
|
///用户与岗位关联表实体类
|
|
///</summary>
|
|
[Table("SysUserPost")]
|
|
[SugarTable("SysUserPost", "admin_sqlite")]
|
|
public class SysUserPost
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
[Key]
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
[Required]
|
|
public int ID { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 用户ID
|
|
/// </summary>
|
|
public int? UserID { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 岗位ID
|
|
/// </summary>
|
|
public int? PostID { get; set; }
|
|
|
|
}
|
|
}
|