mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-01 16:34:17 +02:00
Manga and Chapters are shared across Connectors
This commit is contained in:
11
API/Schema/Identifiable.cs
Normal file
11
API/Schema/Identifiable.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Schema;
|
||||
|
||||
[PrimaryKey("Key")]
|
||||
public abstract class Identifiable(string key)
|
||||
{
|
||||
public string Key { get; init; } = key;
|
||||
|
||||
public override string ToString() => Key;
|
||||
}
|
Reference in New Issue
Block a user