mirror of
https://github.com/Ikatono/ComiServ.git
synced 2025-10-28 20:45:35 -05:00
16 lines
390 B
C#
16 lines
390 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ComiServ.Entities;
|
|
|
|
[PrimaryKey(nameof(UserId), nameof(ComicId))]
|
|
[Index(nameof(UserId))]
|
|
[Index(nameof(ComicId))]
|
|
public class ComicRead
|
|
{
|
|
public int UserId { get; set; }
|
|
public User User { get; set; }
|
|
public int ComicId { get; set; }
|
|
public Comic Comic { get; set; }
|
|
}
|