修改图片表

This commit is contained in:
zpc 2024-07-27 04:25:40 +08:00
parent 2d9f36182e
commit 117d913198
2 changed files with 9 additions and 3 deletions

View File

@ -464,20 +464,21 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
entity.ToTable(tb => tb.HasComment("图片表"));
entity.Property(e => e.Bucket)
.HasMaxLength(100)
.HasMaxLength(30)
.HasComment("存储桶");
entity.Property(e => e.CreateAt)
.HasComment("创建时间")
.HasColumnType("datetime");
entity.Property(e => e.ImageId).HasComment("图片Id");
entity.Property(e => e.ImageType).HasComment("图片类型");
entity.Property(e => e.Name)
.HasMaxLength(50)
.HasComment("图片名称");
entity.Property(e => e.OssPath)
.HasMaxLength(200)
.HasMaxLength(300)
.HasComment("oss存放路径");
entity.Property(e => e.Region)
.HasMaxLength(100)
.HasMaxLength(50)
.HasComment("地域");
entity.Property(e => e.TenantId).HasComment("租户");
entity.Property(e => e.UpdateAt)

View File

@ -49,4 +49,9 @@ public partial class T_Image_Config: MultiTenantEntity
/// 地域
/// </summary>
public string? Region { get; set; }
/// <summary>
/// 图片类型
/// </summary>
public int ImageType { get; set; }
}