Skip to content

Commit

Permalink
fix and refactor categories
Browse files Browse the repository at this point in the history
  • Loading branch information
abubakrmirgiyasov committed Apr 17, 2024
1 parent e320a79 commit ff42a58
Show file tree
Hide file tree
Showing 40 changed files with 3,229 additions and 261 deletions.
4 changes: 2 additions & 2 deletions src/Mint.Domain/Models/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Mint.Domain.Models;

public class Photo : Entity<Guid>
{
[StringLength(4000, ErrorMessage = "Превышено макс. длина строки (2000).")]
[StringLength(2000, ErrorMessage = "Превышено макс. длина строки (2000).")]
public string FileName { get; set; } = null!;

[MaxLength(30, ErrorMessage = "Превышено макс. длина строки (30).")]
Expand All @@ -23,7 +23,7 @@ public class Photo : Entity<Guid>
/// Bucket
/// </summary>
[MaxLength(60, ErrorMessage = "Превышено макс. длина строки (60).")]
public string FileType { get; set; } = null!;
public string Bucket { get; set; } = null!;

public long FileSize { get; set; }

Expand Down
5 changes: 5 additions & 0 deletions src/Mint.Infrastructure/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ DbContextOptions<ApplicationDbContext> options
/// </summary>
public DbSet<StoreReview> StoreReviews => Set<StoreReview>();

/// <summary>
/// Store Category Table
/// </summary>
public DbSet<StoreCategory> StoreCategories => Set<StoreCategory>();

/// <summary>
/// Manufactures Table
/// </summary>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit ff42a58

Please sign in to comment.