2022-11-28 20:36:18 +09:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
2017-09-27 14:18:09 +09:00
|
|
|
namespace BTCPayServer.Data
|
|
|
|
{
|
|
|
|
public class SettingData
|
|
|
|
{
|
2020-12-28 14:57:21 -06:00
|
|
|
public string Id { get; set; }
|
2017-09-27 14:18:09 +09:00
|
|
|
|
2020-12-28 14:57:21 -06:00
|
|
|
public string Value { get; set; }
|
2022-11-28 20:36:18 +09:00
|
|
|
|
|
|
|
public static void OnModelCreating(ModelBuilder builder, DatabaseFacade databaseFacade)
|
|
|
|
{
|
2024-04-15 19:08:25 +09:00
|
|
|
builder.Entity<SettingData>()
|
|
|
|
.Property(o => o.Value)
|
|
|
|
.HasColumnType("JSONB");
|
2022-11-28 20:36:18 +09:00
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-09-27 14:18:09 +09:00
|
|
|
}
|