Set a max length for BookmarkContainer.title

This commit is contained in:
Neil Brommer 2021-11-13 20:27:24 -08:00
parent 6ec00b7d06
commit 00136bc11b
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@ namespace Start.Server.Data.Migrations
{
BookmarkContainerId = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Title = table.Column<string>(type: "TEXT", nullable: false),
Title = table.Column<string>(type: "TEXT", maxLength: 300, nullable: false),
ApplicationUserId = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>

View file

@ -9,6 +9,7 @@ namespace Start.Server.Models {
[Key]
public int BookmarkContainerId { get; set; }
[MaxLength(300)]
public string Title { get; set; }
/// <summary>The unique ID of the user that this container belongs to</summary>