Files
StoreWeb/Plugins/CloudProduct/Entities/UserGoodsFavoriteGroupEntity.cs
T

31 lines
896 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using FreeSql.DataAnnotations;
using System.Text.Json.Serialization;
namespace Store.Modules.CloudProduct.Entities
{
/// <summary>
/// 用户收藏分组表实体(对应数据库表 user_goods_favorites_group)
/// </summary>
[Table(Name = "user_goods_favorites_group")]
public class UserGoodsFavoriteGroupEntity
{
/// <summary>
/// 自增主键,即收藏表 user_goods_favorites.group_id 的取值
/// </summary>
[Column(Name = "id", IsPrimary = true, IsIdentity = true)]
[JsonIgnore]
public long Id { get; set; }
/// <summary>
/// 用户名
/// </summary>
[Column(Name = "user_name", IsNullable = false, StringLength = 50)]
public string UserName { get; set; } = string.Empty;
/// <summary>
/// 分组名
/// </summary>
[Column(Name = "group_name", IsNullable = false, StringLength = 255)]
public string GroupName { get; set; } = string.Empty;
}
}