using FreeSql.DataAnnotations; using System.Text.Json.Serialization; namespace Store.Modules.CloudProduct.Entities { /// /// 用户收藏分组表实体(对应数据库表 user_goods_favorites_group) /// [Table(Name = "user_goods_favorites_group")] public class UserGoodsFavoriteGroupEntity { /// /// 自增主键,即收藏表 user_goods_favorites.group_id 的取值 /// [Column(Name = "id", IsPrimary = true, IsIdentity = true)] [JsonIgnore] public long Id { get; set; } /// /// 用户名 /// [Column(Name = "user_name", IsNullable = false, StringLength = 50)] public string UserName { get; set; } = string.Empty; /// /// 分组名 /// [Column(Name = "group_name", IsNullable = false, StringLength = 255)] public string GroupName { get; set; } = string.Empty; } }