mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
22 lines
568 B
C#
22 lines
568 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public class SettingData
|
|
{
|
|
public string Id { get; set; }
|
|
|
|
public string Value { get; set; }
|
|
|
|
public static void OnModelCreating(ModelBuilder builder, DatabaseFacade databaseFacade)
|
|
{
|
|
if (databaseFacade.IsNpgsql())
|
|
{
|
|
builder.Entity<SettingData>()
|
|
.Property(o => o.Value)
|
|
.HasColumnType("JSONB");
|
|
}
|
|
}
|
|
}
|
|
}
|