43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using SqlSugar;
|
|
using Yitter.IdGenerator;
|
|
namespace WGShare.Domain.Entities
|
|
{
|
|
/// <summary>
|
|
/// 租户表
|
|
///</summary>
|
|
[SugarTable("tenant")]
|
|
public class Tenant
|
|
{
|
|
/// <summary>
|
|
///
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
|
|
public string Id { get; set; } = YitIdHelper.NextId().ToString();
|
|
/// <summary>
|
|
/// 是否删除
|
|
/// 默认值: b'0'
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "is_delete")]
|
|
public bool IsDelete { get; set; }
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// 默认值: CURRENT_TIMESTAMP
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
|
public DateTime CreateTime { get; set; }
|
|
/// <summary>
|
|
/// 修改时间
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "modify_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
|
public DateTime ModifyTime { get; set; }
|
|
/// <summary>
|
|
/// 租户名称
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "tenant_name")]
|
|
public string TenantName { get; set; }
|
|
}
|
|
}
|