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