Learn.Archives/Learn.Archives.Core/Model/Student.cs

82 lines
2.2 KiB
C#

using Learn.Archives.Core.Model.Enum;
using Learn.Archives.Core.Model.Interface;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.Net;
using System.Text.Json;
using UserCenter.Model;
using UserCenter.Model.Enum;
namespace Learn.Archives.Core.Model
{
/// <summary>
/// 用户
/// <para>数据中心拓展学生</para>
/// </summary>
[SugarTable("student")]
public class Student : EntityBaseId, IDB
{
/// <summary>
/// 用户中心的id
/// <see cref="UserCenter.Model.User.Id"/>
/// </summary>
public long UserCenterId { get; set; }
/// <summary>
/// 减免金额
/// </summary>
[SugarColumn(DecimalDigits =2)]
public decimal AmountRelief { get; set; }
/// <summary>
/// 减免是否申请
/// </summary>
public bool ReliefApplication { get; set; }
/// <summary>
/// 减免申请类型
/// </summary>
[SugarColumn(IsNullable = true, Length = 20)]
public string? ReliefType { get; set; }
/// <summary>
/// 学生类型
/// </summary>
[SugarColumn(IsNullable = true)]
public StudentTypeEnum? StudentType { get; set; }
/// <summary>
/// 减免申请时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ReliefSubTime { get; set; }
/// <summary>
/// 学生状态
/// </summary>
public UserStatusEnum Status { get; set; }
/// <summary>
/// 备注
/// <para></para>
/// </summary>
[SugarColumn(IsNullable = true,Length = 500)]
public string? Remark { get; set; }
/// <summary>
/// 退出时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ExitTime { get; set; } = DateTime.Now;
/// <summary>
/// 退出时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? JoinTime { get; set; } = DateTime.Now;
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; } = DateTime.Now;
}
}