194 lines
6.7 KiB
C#
194 lines
6.7 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using FinlyticTechnicalAnalysis.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace FinlyticTechnicalAnalysis.Migrations
|
|
{
|
|
[DbContext(typeof(TechnicalAnalysisDbContext))]
|
|
[Migration("20260815183955_AddDynamicSettings")]
|
|
partial class AddDynamicSettings
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.9")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("FinlyticCore.Entities.Settings.SettingEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("character varying(150)");
|
|
|
|
b.Property<DateTime>("LastUpdatedUtc")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ServiceIdentifier")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("character varying(100)");
|
|
|
|
b.Property<string>("ValueJson")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Key")
|
|
.IsUnique();
|
|
|
|
b.ToTable("DynamicSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("FinlyticTechnicalAnalysis.Entities.CachedAnalysisEntity", b =>
|
|
{
|
|
b.Property<string>("Isin")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("character varying(20)");
|
|
|
|
b.Property<string>("AnalysisJson")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<DateTime>("CalculatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Ticker")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("character varying(20)");
|
|
|
|
b.HasKey("Isin");
|
|
|
|
b.HasIndex("Isin");
|
|
|
|
b.ToTable("CachedAnalyses");
|
|
});
|
|
|
|
modelBuilder.Entity("FinlyticTechnicalAnalysis.Entities.MacroDataEntity", b =>
|
|
{
|
|
b.Property<string>("Symbol")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("character varying(20)");
|
|
|
|
b.Property<DateTime>("LastUpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<decimal>("PreviousClose")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<string>("TrendState")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<decimal>("Value")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.HasKey("Symbol");
|
|
|
|
b.ToTable("MacroData");
|
|
});
|
|
|
|
modelBuilder.Entity("FinlyticTechnicalAnalysis.Entities.MarketCandleEntity", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
b.Property<decimal?>("Ask")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<decimal?>("Bid")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<decimal>("Close")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<decimal>("High")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<string>("Interval")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("character varying(10)");
|
|
|
|
b.Property<decimal>("Low")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<decimal>("Open")
|
|
.HasColumnType("decimal(18, 6)");
|
|
|
|
b.Property<string>("Symbol")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("character varying(20)");
|
|
|
|
b.Property<DateTime>("Timestamp")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<long>("Volume")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Symbol", "Interval", "Timestamp")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MarketCandles");
|
|
});
|
|
|
|
modelBuilder.Entity("FinlyticTechnicalAnalysis.Entities.TaSettingsEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("EmaShortPeriod")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<double>("RsiOverboughtLimit")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<double>("RsiOversoldLimit")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<int>("SmaLongPeriod")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("SmaMediumPeriod")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<double>("SupertrendMultiplier")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Settings");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|