mirror of
https://github.com/Ikatono/ComiServ.git
synced 2025-10-28 20:45:35 -05:00
17 lines
492 B
C#
17 lines
492 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Swashbuckle.AspNetCore.Annotations;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
//using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ComiServ.Entities;
|
|
|
|
[Index(nameof(Name), IsUnique = true)]
|
|
public class Author
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public string Name { get; set; } = null!;
|
|
public ICollection<ComicAuthor> ComicAuthors { get; set; } = null!;
|
|
}
|