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