添加项目文件。
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using CommonDomain.BaseModel;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoRepository;
|
||||
using MongoRepository.Attributes;
|
||||
using MongoRepository.Config;
|
||||
|
||||
namespace UserDomain.Entity
|
||||
{
|
||||
[BsonCollection("scratch_card_record", ServiceDatabases.User)]
|
||||
[BsonIgnoreExtraElements]
|
||||
public class ScratchCardRecord : MongoBaseEntity
|
||||
{
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
public int PrizeType { get; set; }
|
||||
|
||||
public string PrizeName { get; set; } = string.Empty;
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public BaseProduct? BaseProduct { get; set; }
|
||||
|
||||
public long DrawTime { get; set; } = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user