Added Thumbnail Mirgration
This commit is contained in:
@@ -11,8 +11,8 @@ public class Content
|
||||
public Guid? DeletedBy { get; set; }
|
||||
public DateTimeOffset? DeletedAt { get; set; }
|
||||
[MaxLength(128)] public required string Title { get; set; }
|
||||
|
||||
[MaxLength(512)]public string? ThumbnailUrl { get; init; }
|
||||
|
||||
[MaxLength(512)] public string? ThumbnailUrl { get; set; } = "";
|
||||
[MaxLength(2048)] public string Description { get; set; } = "";
|
||||
[MaxLength(2048)] public string? HtmlFileUrl { get; set; } = "";
|
||||
public IList<ContentReaction> Reactions { get; set; } = new List<ContentReaction>();
|
||||
|
||||
@@ -52,6 +52,10 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations
|
||||
.HasMaxLength(2048)
|
||||
.HasColumnType("character varying(2048)");
|
||||
|
||||
b.Property<string>("ThumbnailUrl")
|
||||
.HasMaxLength(512)
|
||||
.HasColumnType("character varying(512)");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
<Folder Include="Features\Contents\Data\Migrations\" />
|
||||
<Folder Include="Features\Memberships\Data\Migrations\" />
|
||||
<Folder Include="Features\Users\Data\Migrations\" />
|
||||
<Folder Include="Migrations\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user