17 lines
No EOL
445 B
C#
17 lines
No EOL
445 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Iceshrimp.Backend.Core.Database.Tables;
|
|
|
|
[Table("meta_store")]
|
|
[Index(nameof(Key), nameof(Value))]
|
|
public class MetaStoreEntry
|
|
{
|
|
[Key]
|
|
[Column("key")]
|
|
[StringLength(128)]
|
|
public string Key { get; set; } = null!;
|
|
|
|
[Column("value")] public string? Value { get; set; } = null!;
|
|
} |