添加项目文件。
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Common.Utils;
|
||||
using CommonDomain.BaseModel;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoRepository;
|
||||
using MongoRepository.Attributes;
|
||||
using MongoRepository.Config;
|
||||
|
||||
namespace UserDomain.Entity
|
||||
{
|
||||
[BsonCollection("user_email", ServiceDatabases.User)]
|
||||
[BsonIgnoreExtraElements]
|
||||
public class UserEmail : MongoBaseEntity
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
||||
public long SendTime { get; set; }=DateTime.Now.ToTimeStamp();
|
||||
public long ReadTime { get; set; }=0;
|
||||
public bool IsRead { get; set; }=false;
|
||||
|
||||
public bool IsReward { get; set; }=false;
|
||||
public int RewardDiamond { get; set; }=0;
|
||||
public long RewardGold { get; set; }=0;
|
||||
[Column(TypeName = "jsonb")]
|
||||
public List<BaseProductCount> RewardItems { get; set; } = new List<BaseProductCount>();
|
||||
public long ExpireTime { get; set; } = 0;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user