26 lines
707 B
C#
26 lines
707 B
C#
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();
|
||
|
|
}
|
||
|
|
}
|