feat(fundamentals): refactor entities, add Yahoo modules scraper, 52W metrics and migrations
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FinlyticFundamentals.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddMoreFundamentalMetrics : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ConsensusRating",
|
||||
table: "FundamentalData",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "FiftyTwoWeekHigh",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "FiftyTwoWeekLow",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "PercentHeldByInsiders",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "PercentHeldByInstitutions",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "PriceTargetHigh",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "PriceTargetLow",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "PriceTargetMean",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "ShortPercentOfFloat",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "ShortRatio",
|
||||
table: "FundamentalData",
|
||||
type: "numeric",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ConsensusRating",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FiftyTwoWeekHigh",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FiftyTwoWeekLow",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PercentHeldByInsiders",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PercentHeldByInstitutions",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PriceTargetHigh",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PriceTargetLow",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PriceTargetMean",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShortPercentOfFloat",
|
||||
table: "FundamentalData");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShortRatio",
|
||||
table: "FundamentalData");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user