using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using SqlSugar;
|
|
namespace WIDESEA_Model.Models
|
{
|
/// <summary>
|
/// 激活码表
|
/// </summary>
|
[SugarTable(nameof(Dt_ActivationCode), TableDescription = "激活码表")]
|
public class Dt_ActivationCode
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 激活码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "激活码")]
|
public string ActivationCode { get; set; } = null!;
|
|
/// <summary>
|
/// 映射的随机码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "映射的随机码")]
|
public string MappedRandom { get; set; } = null!;
|
|
/// <summary>
|
/// 激活时间
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "激活时间")]
|
public DateTime? ExpiresTime { get; set; }
|
|
/// <summary>
|
/// 是否已使用
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "是否已使用")]
|
public bool IsUsed { get; set; }
|
|
/// <summary>
|
/// 使用时间
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "使用时间")]
|
public DateTime? UsedTime { get; set; }
|
|
/// <summary>
|
/// 运行时代码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "运行时代码")]
|
public string RuntimeCode { get; set; } = null!;
|
|
/// <summary>
|
/// 设备唯一标识
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备唯一标识")]
|
public string DeviceId { get; set; } = null!;
|
|
/// <summary>
|
/// 产品主键
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "产品主键")]
|
public int ProductId { get; set; }
|
}
|
}
|