Files
SecMPS/api_sqlsugar/VolPro.Builder/Services/DataBase/Models/TableColumnDto.cs
2026-05-15 23:22:48 +08:00

26 lines
940 B
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.
namespace VolPro.Builder.Services;
public class TableColumnDto
{
public string ColumnName { get; set; } = string.Empty;
public string DataType { get; set; } = "nvarchar";
public int? Length { get; set; }
// decimal/numeric 的小数位scale
public int? Scale { get; set; }
public bool IsNullable { get; set; } = true;
public bool IsPrimaryKey { get; set; } = false;
public bool IsIdentity { get; set; } = false;
public string Comment { get; set; }
public int Order { get; set; }
public string DefaultValue { get; set; } = string.Empty;
/// <summary>
/// 数据库字段true=来自数据库false=新增)
/// </summary>
public bool IsDbField { get; set; }
/// <summary>
/// 原始字段名(用于区分重命名与删除:重命名时 OriginalColumnName 为旧名)
/// </summary>
public string OriginalColumnName { get; set; } = string.Empty;
}