40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FinlyticSentiment.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class InitialSentimentSettings : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "sentiment_settings",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
MinConfidenceScore = table.Column<double>(type: "double precision", nullable: false),
|
|
MaxBatchSize = table.Column<int>(type: "integer", nullable: false),
|
|
SweepIntervalMinutes = table.Column<int>(type: "integer", nullable: false),
|
|
GermanWebhookUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
|
EnglishWebhookUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
|
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_sentiment_settings", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "sentiment_settings");
|
|
}
|
|
}
|
|
}
|