平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
700 B

  1. namespace SafeCampus.System;
  2. [SugarTable("ClassTeacher", TableDescription = "班主任表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class ClassTeacher : PrimaryKeyEntity
  8. {
  9. /// <summary>
  10. /// 班主任用户id
  11. /// </summary>
  12. [SugarColumn(ColumnName = "UserId", ColumnDescription = "班主任用户id", IsNullable = false)]
  13. public long UserId { get; set; }
  14. /// <summary>
  15. /// 班级id
  16. /// </summary>
  17. public string PersonSetId { get; set; }
  18. /// <summary>
  19. /// 班主任信息
  20. /// </summary>
  21. [Navigate(NavigateType.OneToOne, nameof(UserId), nameof(SysUser.Id))]
  22. public SysUser SysUserItem { get; set; }
  23. }