[CHANGE] Updated string maxsize on entities. Setup lib dbcontext
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Manager.Data.Models.LibraryContext;
|
||||
|
||||
public class ChannelEntity
|
||||
public class ChannelEntity : DateTimeBase
|
||||
{
|
||||
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
||||
public required string Id { get; set; }
|
||||
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
|
||||
public string? Name { get; set; }
|
||||
[MaxLength(DataConstants.DbContext.DefaultDbDescriptionStringSize)]
|
||||
public string? Description { get; set; }
|
||||
public DateTime JoinedDate { get; set; }
|
||||
public long Subscribers { get; set; }
|
||||
public long TotalVideos { get; set; }
|
||||
public long TotalViews { get; set; }
|
||||
|
||||
public DateTime AddedDate { get; set; }
|
||||
public DateTime ModifiedDate { get; set; }
|
||||
}
|
Reference in New Issue
Block a user