using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DugunSalonu.Migrations { /// public partial class mig2 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "salon", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), adi = table.Column(type: "text", nullable: false), adres = table.Column(type: "text", nullable: false), il = table.Column(type: "integer", nullable: false), ilce = table.Column(type: "integer", nullable: false), eposta = table.Column(type: "text", nullable: false), vergidairesi = table.Column(type: "text", nullable: false), verginumarasi = table.Column(type: "text", nullable: false), telefon = table.Column(type: "text", nullable: false), ceptel = table.Column(type: "character varying(10)", maxLength: 10, nullable: false), mail = table.Column(type: "text", nullable: false), webadres = table.Column(type: "text", nullable: false) }, constraints: table => { table.PrimaryKey("PK_salon", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "salon"); } } }