using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace JobsMedical.Web.Migrations { /// public partial class AiSettingsAndAutomation : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AppSettings", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), Mode = table.Column(type: "integer", nullable: false), AutoPublishMinConfidence = table.Column(type: "integer", nullable: false), AiEnabled = table.Column(type: "boolean", nullable: false), AiEndpoint = table.Column(type: "character varying(500)", maxLength: 500, nullable: true), AiApiKey = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), AiModel = table.Column(type: "character varying(120)", maxLength: 120, nullable: true), AiSystemPrompt = table.Column(type: "character varying(4000)", maxLength: 4000, nullable: false), AiAutoApprove = table.Column(type: "boolean", nullable: false), UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_AppSettings", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AppSettings"); } } }