YD_WeChatApplet.Api/WeChatApplet/Entitys/WCA_UserPreference.cs

77 lines
2.0 KiB
C#
Raw Normal View History

2025-06-06 14:57:20 +08:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace YD_WeChatApplet.Api.Entitys
{
/// <summary>
/// 用户偏好表
/// </summary>
[Table("WCA_UserPreference")]
public class WCA_UserPreference
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
/// <summary>
///用户Id
/// </summary>
[Display(Name = "用户Id")]
[Comment("用户Id")]
[Column(TypeName = "int")]
public int UserId { get; set; }
/// <summary>
/// 资源Id
/// </summary>
[Display(Name = "资源Id")]
[Comment("资源Id")]
[Column(TypeName = "int")]
public int ResourceId { get; set; }
/// <summary>
/// 倒计时
/// </summary>
[Display(Name = "倒计时")]
[Comment("倒计时")]
[Column(TypeName = "int")]
public int Countdown { get; set; }
/// <summary>
/// 间隔
/// </summary>
[Display(Name = "间隔")]
[Comment("间隔")]
[Column(TypeName = "int")]
public int Interval { get; set; }
/// <summary>
/// 是否是音乐
/// </summary>
[Display(Name = "是否是音乐")]
[Comment("是否是音乐")]
[Column(TypeName = "bit")]
public bool IsMusic { get; set; }
/// <summary>
/// 节拍
/// </summary>
[Display(Name = "节拍")]
[Comment("节拍")]
[Column(TypeName = "int")]
public int Bpm { get; set; }
/// <summary>
///创建时间
/// </summary>
[Display(Name = "创建时间")]
[Comment("创建时间")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime CreateTime { get; set; }
}
}