Renames StoredDataUrls to Images

This commit is contained in:
Jonathan Bourdon
2024-08-06 01:04:15 -04:00
parent db740c161c
commit d370c2a151
12 changed files with 33 additions and 737 deletions

View File

@@ -54,7 +54,7 @@ public class ContentDbContext(
modelBuilder
.Entity<Creator>()
.OwnsOne<StoredDataUrls>(x => x.StoredDataUrls)
.ToTable(nameof(StoredDataUrls));
.OwnsOne<Images>(x => x.Images)
.ToTable(nameof(Images));
}
}

View File

@@ -12,7 +12,7 @@ public class Creator
public About About { get; set; } = new();
public Socials Socials { get; set; } = new();
public ProfileColors ProfileColors { get; set; } = new();
public StoredDataUrls StoredDataUrls { get; set; } = new();
public Images Images { get; set; } = new();
}
public class About
@@ -41,8 +41,8 @@ public class Socials
[MaxLength(255)] public string? WebsiteUrl { get; set; }
}
public class StoredDataUrls
public class Images
{
[MaxLength(255)] public string? BannerPictureUrl { get; set; }
[MaxLength(255)] public string? ProfilePictureUrl { get; set; }
[MaxLength(255)] public string? Banner { get; set; }
[MaxLength(255)] public string? Logo { get; set; }
}