Files
Atomx/Atomx.Common/Entities/ServiceProvider.cs
2026-01-07 18:33:35 +08:00

61 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}
}