chore
This commit is contained in:
60
Atomx.Common/Entities/ServiceProvider.cs
Normal file
60
Atomx.Common/Entities/ServiceProvider.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user