using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace tb320eva.Migrations { public partial class AddLog : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "activity_log_eva", columns: table => new { id = table.Column(nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn), log_name = table.Column(maxLength: 191, nullable: true), description = table.Column(maxLength: 4000, nullable: true), subject_id = table.Column(nullable: true), subject_type = table.Column(maxLength: 191, nullable: true), causer_id = table.Column(nullable: true), causer_type = table.Column(maxLength: 191, nullable: true), properties = table.Column(maxLength: 8000, nullable: true), ip_address = table.Column(maxLength: 191, nullable: true), mac_address = table.Column(maxLength: 191, nullable: true), created_at = table.Column(nullable: true), updated_at = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_activity_log_eva", x => x.id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "activity_log_eva"); } } }