Got most of admin panel working. Data issues fixed
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -10,7 +11,9 @@ namespace OpenArchival.DataAccess;
|
||||
public class ArtifactDefect
|
||||
{
|
||||
[Key]
|
||||
public required int Id { get; set; }
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Index(IsUnique = true)]
|
||||
public required string Description { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user