39 lines
759 B
C#
39 lines
759 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoRepository;
|
|
using MongoRepository.Attributes;
|
|
using MongoRepository.Config;
|
|
|
|
namespace UserDomain.Entity
|
|
{
|
|
[BsonCollection("order", ServiceDatabases.User)]
|
|
[BsonIgnoreExtraElements]
|
|
public class Order : MongoBaseEntity
|
|
{
|
|
public string UserId { get; set; } = "";
|
|
|
|
public int Type { get; set; }
|
|
|
|
public string ProductId { get; set; } = "";
|
|
|
|
public string ProductName { get; set; } = "";
|
|
|
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
public int State { get; set; } = 1;
|
|
|
|
public long PayTime { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|