state after adding all of the user stuff and messing around with the wierd brave bug
This commit is contained in:
21
OpenArchival.DataAccess/Models/ArchiveCategory.cs
Normal file
21
OpenArchival.DataAccess/Models/ArchiveCategory.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace OpenArchival.DataAccess;
|
||||
|
||||
public class ArchiveCategory
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[System.ComponentModel.DataAnnotations.Schema.Index(IsUnique =true)]
|
||||
public required string Name { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
public required string FieldSeparator { get; set; } = "-";
|
||||
|
||||
public List<string> FieldNames { get; set; } = [];
|
||||
|
||||
public List<string> FieldDescriptions { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user