43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using Volo.Abp.Application.Dtos;
|
|
using Yi.Framework.CodeGun.Domain.Shared.Enums;
|
|
|
|
namespace Yi.Framework.CodeGun.Application.Contracts.Dtos.Field
|
|
{
|
|
public class FieldDto : EntityDto<Guid>
|
|
{
|
|
/// <summary>
|
|
/// 字段名称
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
public string? Description { get; set; }
|
|
|
|
public int OrderNum { get; set; }
|
|
public int Length { get; set; }
|
|
|
|
public FieldTypeEnum FieldType { get; set; }
|
|
|
|
public Guid TableId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否必填
|
|
/// </summary>
|
|
public bool IsRequired { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否主键
|
|
/// </summary>
|
|
public bool IsKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否自增
|
|
/// </summary>
|
|
public bool IsAutoAdd { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否公共
|
|
/// </summary>
|
|
public bool IsPublic { get; set; }
|
|
public Guid Id { get; set; }
|
|
}
|
|
}
|