40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using CommonDomain.BaseModel;
|
||
|
|
using CommonDomain.Enum;
|
||
|
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
using MongoRepository;
|
||
|
|
using MongoRepository.Attributes;
|
||
|
|
using MongoRepository.Config;
|
||
|
|
using UserDomain.Enum;
|
||
|
|
|
||
|
|
namespace UserDomain.Entity
|
||
|
|
{
|
||
|
|
[BsonCollection("user_task", ServiceDatabases.User)]
|
||
|
|
[BsonIgnoreExtraElements]
|
||
|
|
public class UserTask : MongoBaseEntity
|
||
|
|
{
|
||
|
|
public string UserId { get; set; }
|
||
|
|
public string Number { get; set; }
|
||
|
|
public string Remark { get; set; }
|
||
|
|
public TaskType TaskType { get; set; }
|
||
|
|
public TaskEvent TaskEvent { get; set; }
|
||
|
|
public int TaskCount { get; set; }
|
||
|
|
public double Count { get; set; }
|
||
|
|
|
||
|
|
public bool IsFinish { get; set; }=false;
|
||
|
|
|
||
|
|
public string OtherId { get; set; }
|
||
|
|
|
||
|
|
public bool IsGet { get; set; }=false;
|
||
|
|
|
||
|
|
public long TaskAddTime { get; set; }
|
||
|
|
public long TaskEndTime { get; set; }=0;
|
||
|
|
|
||
|
|
|
||
|
|
public long TaskFinishTime { get; set; } = 0;
|
||
|
|
|
||
|
|
|
||
|
|
public long Exp { get; set; }
|
||
|
|
}
|
||
|
|
}
|