This commit is contained in:
yxw
2026-01-07 18:33:35 +08:00
parent 54c6fc43ef
commit 3398b535de
4 changed files with 92 additions and 1 deletions

View File

@@ -0,0 +1,60 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Common.Entities
{
/// <summary>
/// 服务供应商
/// </summary>
[Table("ServiceProviders")]
public class ServiceProvider
{
/// <summary>
/// 数据ID
/// </summary>
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
/// <summary>
/// 供应商类型1邮件2短信
/// </summary>
public int Type { get; set; }
/// <summary>
/// 供应商名称
/// </summary>
[Column(TypeName = "varchar(64)")]
public string Name { get; set; }=string.Empty;
/// <summary>
/// 说明介绍
/// </summary>
[Column(TypeName = "varchar(512)")]
public string Description { get; set; }=string.Empty;
/// <summary>
/// 服务配置
/// </summary>
[Column(TypeName = "text")]
public string Config { get; set; }= string.Empty;
/// <summary>
/// 是否启用
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(TypeName = "timestamptz")]
public DateTime CreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[Column(TypeName = "timestamptz")]
public DateTime? UpdateTime { get; set; }
}
}